cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TomT
Level: Powered On

ODATA filter using baseenum

Hello,

 

I am having trouble getting a flow process to recognize a baseenum value from Dynamics 365 for operations.  I have setup a flow that uses a method to query a D365O data entity that I found online.  The filter looks like the line below:

 

PurchaseOrderLineStatus eq Microsoft.Dynamics.DataEntities.PurchStatus'Backorder'

 

The flow execution doesn't create an error message, but the process does not return any results.  If I remove the line, the process will return all the records from the purchase order line entity including the ones with purchStatus = 'Backorder'  What am I mssing in this setup?

1 REPLY 1
Super User
Super User

Re: ODATA filter using baseenum

Hi @TomT 

 

Your OData query is not correct. If the PurchaseOrderLineStatus is a string then you can compare it just by doing:

PurchaseOrderLineStatus eq 'Backorder'

Otherwise, you can add a compose and add the "Backorder" and filter it by using:

 

PurchaseOrderLineStatus eq outputs('<Name of the compose field>')

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

 

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (6,126)