Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 7A7exl3b12giZ0upQGe+Sp
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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started