web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Cloud flow: Filter on lookup field not working .

(0) ShareShare
ReportReport
Posted on by 20

i need to filter related data of lookup filed. I have custom entity Asset checklist . Asset and asset checklist have 1:N relationship. I have lookup of asset on work order. I am trying to fetch asset checklist related to asset in work order (On create ). But filter is not working.

Error : A binary operator with incompatible types was detected. Found operand types 'Edm.Guid' and 'Edm.String' for operator kind 'Equal'.

pastedimage1619445995166v1.png

 created new thread. As i checked i am not using primary incident asset lookup in work order. its labeled Asset .

I have tried removing quotes, ended in syntax error. checked if asset value is null, it wasn't. Please suggest something.

I have the same question (0)
  • Nya Profile Picture
    29,060 on at

    Hi,

    As the image you provided is a bit blurry, would you please to change it to a sharper one.

    You can either take a screenshot and paste it or upload a saved image.

     

    Looking forward to your reply.

    Best Regards,

    Nya

  • Sayali Profile Picture
    20 on at

    pastedimage1619506053938v1.png

    is it better now?

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    I have tried to reproduce your issue so I created a similar Flow based on Contact and Account entity. There is also an N: 1 relationship between them.

    For example, I listed all the contacts whose company name (which can be an account) has been updated.

    Here are the steps:

     pastedimage1619516476892v1.png

    Using the steps in my screenshot, all contacts can be listed with or without quotes.

    So the problem should be with your choice of dynamic content.

     

    According to your request, the Asset here must be the id of an Asset but when I set the table to Customer Asset or Work Order in Step1, I don't find a value like the one in your screenshot in the Dynamic content list in Step2.

     pastedimage1619516489051v2.pngpastedimage1619516496290v3.png

    So you need to check which entity you are using to get the Asset(Value) from, whether it is from the custom entity and what is the data type of it.

     

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

  • Sayali Profile Picture
    20 on at

    HI,

    thank you for your reply. I have checked which value is taken in filter, and both fields are asset lookups so used _asset_value to match with guid.

    still not working. :|

  • Verified answer
    Nya Profile Picture
    29,060 on at

    Hi,

    It is recommended to replace the “Asset(Value)” to a fixed id of the Asset according to your pre-steps. This allows you to troubleshoot which part of your expression has gone wrong. The id can be found in the URL of the asset. (id = xxxxxxxxx)

     

    After finding the id, change your expression into “_cfm_asset_value eq xxxxxxxxx” or “_asset_value eq xxxxxxxxx”. If this form can list the results you want, then the problem is that the dynamic content Asset(Value) is a wrong choice, and if it still does not list, then there is a problem with the first half of the expression.

     

    The image below is still an example of Contact and Account.

     pastedimage1619577463720v1.png

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

  • Sayali Profile Picture
    20 on at

    Thanks for the help, actually the issue was not in filter but in trigger, when i changed trigger from ' create' to create or update then flow worked fine. now problem is flow is running multiple times whenever work order is updated, i need to stop that. can you help?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans