How to use a "contains" similar function with Power FX within Power Automate Desktop - Stack Overflow

admin2025-04-28  2

I need to perform a validation with Power FX within Power Automate Desktop that verifies if the variable "LinePDF" contains a value such as "Issue Date" and then assigns that value to a new variable called "Date"

I've been looking through the functions that Power FX brings but there is none like "Contains".

So far I have tried with the "StartsWith" function but I get the following error:

Invalid argument type (Record). Expecting a Text value instead. The function 'StartsWith' has some invalid arguments.

The code I have tried so far is the following:

Example code

It's important to note that I have Power FX enabled.

If you have any suggestions or would like to tell me what I am doing wrong, I would appreciate it.

转载请注明原文地址:http://anycun.com/QandA/1745779499a91180.html