cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Trouble with Dynamics Get List with ODATA query

I'm trying to use Flow to extract an email address from the body of a calendar event, identify the matching client, and create a new appointment record in Dynamics under that client's account. I managed to parse the calendar object and am able to extract the email address. However, I can't seem to make "List Records" to accept my ODATA query. It works if I type a specific email address between single quotes. However, when I use the string function (either inside the query or as dynamic content defined by a previous Compose step) I get no results. If I don't use single quotes around the dynamic content then I get an error. I spent several hours on this and couldn't make it work, would really appreciate any help I can get at this point.

 

 

 

Flow1.pngFlow2.png

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: Trouble with Dynamics Get List with ODATA query

Thank you for the detailed reply. The field is there and there were single quotes around the function. I eventually figured out the issue: The single quotes should NOT be added after the function is inserted into the query. Instead, I needed to type two single quotes without any space between them, then place the cursor between the quotes and then insert the function. Now it works!

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Trouble with Dynamics Get List with ODATA query

Hi @MD789,

 

Could you provide the details of the email address from the body of a calendar event?

Could you provide details of  substring() function and output of it?

I did a simple test on my side, although I don't know how you extract the email address from the body, but as long as it is a standard email address, it should not be the cause of this issue.

I think you could test from these aspects, you may know the cause of the problem.

 

1. First, the content format filled in Filter Query is roughly similar to: emailaddress1 eq ‘Dynamic content’, single quotes must be added, otherwise it does not meet the specifications.

Please make sure that the content format enclosed in single quotes is the correct message format, and there are no additional symbols, such as semicolons.

The content of the correct Filter Query output should look like this:

23.PNG

 

2.Please make sure that there is a matching emailaddress1 in your Entity, otherwise there will be no value output even if the Flow configuration is correct.

Or you can use Filter Query first to determine whether the emailaddress1 contains a matching email, or it may be another field.

This is my simple test and it works fine.

22.PNG

24.PNG

Please take a try and let me know if issue still exist.

 

Best Regards,

Barry

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.
New Member

Re: Trouble with Dynamics Get List with ODATA query

Thank you for the detailed reply. The field is there and there were single quotes around the function. I eventually figured out the issue: The single quotes should NOT be added after the function is inserted into the query. Instead, I needed to type two single quotes without any space between them, then place the cursor between the quotes and then insert the function. Now it works!

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (3,807)