cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarceloBarroso
Helper I
Helper I

List of records - AND operator

Hi everyone,

 

Thanks in advance for the help. I am struggling with something that I thought would be easy....  unfortunately this CDS connector in Power Automate is just horrible to use.

 

I am trying to get a record from an entity filtering 02 fields: a related entity (using the GUID data) and a option set field (using the integer number). I have already tried both filters individually (first one, then the other)...   both worked fine. However, I cannot combine them in any way.

 

I have tried several ways to do this, following the documentation page for expression operators, community member tutorials, even youtube videos. Nothing seems to work.

I tried these alternatives:

@And(field_1 eq <guid from dynamic data>, field_2 eq 123456789)

@And(equals(field_1,@{triggerBody()['text_1']}),equals(field_2,123456789))

- field_1 eq <guid from dynamic data> and field_2 eq 123456789

 

In all of them, I get an error message (see images below).

I'd appreciate very much if someone could help me.

 

Thank you very much.

Best regards.

 

 

List records stepList records steperrorerror

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @MarceloBarroso ,

 

Please try to add single quotes around the parameter value and replace AND with lowercase.

 

field1 eq 'value' and field2 eq 'value'

 

 

Best Regards, 

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

Hi @MarceloBarroso ,

 

Please try to add single quotes around the parameter value and replace AND with lowercase.

 

field1 eq 'value' and field2 eq 'value'

 

 

Best Regards, 

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (44,732)