Skip to main content

Notifications

Community site session details

Community site session details

Session Id : LbUlJKd0hC2EFat3kDxqoo
Power Automate - Building Flows
Answered

Common Data Service Trigger Filter

Like (0) ShareShare
ReportReport
Posted on 2 Sep 2020 23:38:00 by 1,104

Hi,

 

I am using a Common Data Service Current Environment Connector. I have a trigger for each time a new lead is created. For the filter on the trigger, I want to get records created by a certain owner. So Filter expression I have:

ownerid eq "guid" where guid is the userid for the user I want to filter for.

Annotation 2020-09-02 173251.png

 

The error I get back is:

Exception parsing ownerid eq \"guid\" submitted for attribute filterexpression of callback registration. Target entity: lead. Exception: Microsoft.OData.ODataException: Syntax error: character '\"' is not valid at position 11 in 'ownerid eq \"guid\"'
 
I don't get why it's complaining about a \ that clearly isn't there.
 
Any ideas? Thanks.
  • Verified answer
    SeanHenderson Profile Picture
    1,104 on 03 Sep 2020 at 17:27:54
    Re: Common Data Service Trigger Filter

    I figured it out. Don't wrap it in anything.

    _ownerid_value eq ec12345-abc134-e1234-789e-e01234b6aa0c1

    or whatever your guid is.

  • SeanHenderson Profile Picture
    1,104 on 03 Sep 2020 at 17:04:50
    Re: Common Data Service Trigger Filter

    @mequan 

     

    I switched to single quotes and got the error:

    "Exception parsing _ownerid_value eq 'guid' submitted for attribute filterexpression of callback registration. Target entity: lead. Exception: Microsoft.OData.ODataException: A binary operator with incompatible types was detected. Found operand types 'Edm.Guid' and 'Edm.String' for operator kind 'Equal'.
  • SeanHenderson Profile Picture
    1,104 on 03 Sep 2020 at 16:34:12
    Re: Common Data Service Trigger Filter

    I still get the same error:

    "Exception parsing _ownerid_value eq \"guid\" submitted for attribute filterexpression of callback registration. Target entity: lead. Exception: Microsoft.OData.ODataException: Syntax error: character '\"' is not valid at position 18 in '_ownerid_value eq \"guid\"'.
     
    There is no \ in my expression so I don't know where it's getting that from.
  • mequan Profile Picture
    on 03 Sep 2020 at 02:34:09
    Re: Common Data Service Trigger Filter

    Hi @SeanHenderson ,

     

    I think you may need field name '_ownerid_value' instead as https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/lead?view=dynamics-ce-odata-9.

    CDS filter is same as CRM API filter.So you may try using CRM link to test filter first as https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/query-data-web-api#filter-results.

     

    Thanks

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 123

#2
David_MA Profile Picture

David_MA 104 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 90 Super User 2025 Season 1

Overall leaderboard
Loading started