Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

flow: unable to make filter query for list records

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

My app has the three entities Pharmacy_Contact, Pharmacy_History, and Pharmacy_Action. When a history record has been created or updated I need to cycle through all history records for the contact, get the action record associated with the history record, then finally update a status in the contact record with a computed value. In list records I'm unable to construct the filter query correctly. The schema name for the field is dhs_Contact and the display name is Contact. It is a look up field. In the dynamic content list the history fields are enumerated. I assume I should choose Contact and have it place that in filter query, follow with eq, then whatever value is passed from the trigger event. I can't figure out how to get the value to put after eq. All history records returned will have the same contact value, and, it will be the same contact value of the history record changed by the user. See attached screen snapshot.

2018_2D00_11_2D00_01-14_5F00_55_5F00_39_2D00_Microsoft-Store.png

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: flow: unable to make filter query for list records

    The correct syntax for Filter Query in the List Records control is:

          dhs_Contact/dhs_pharmacycontactid eq (Contact from Dynamic Content)

    This will create a list of all Pharmacy_History records having the same Pharmacy_Contact as the history record updated or created.

    The forward slash allows a field within the entity record to be specified, and dhs_pharmacycontactid is the name of the field.

  • Wouter Madou Profile Picture
    Wouter Madou 3,392 on at
    RE: flow: unable to make filter query for list records

    Filter query should be set to

    _dhs_contactid_value eq <contact>

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: flow: unable to make filter query for list records

    Hi,

    You should get better responses/ suggestion on Flow community. Try asking this @ community.flow.microsoft.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans