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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ODATA Filter Query wit...
Power Automate
Unanswered

ODATA Filter Query with Dataverse Trigger

(0) ShareShare
ReportReport
Posted on by 14

Hello Team,

 

I am working on a flow that creates an MDA in-app notification when there is a new email created in Dataverse that is regarding another record. Here's the trigger:

 

AbleAmazing_0-1673548617338.png

 

The goal is to ensure that this flow only triggers on the creation of email records wherein the regarding column of the email contains data and the the email is regarding a record in a custom table with a schema name of rgg_dctickets.

 

Here's the raw output of the trigger with no filter query

 

{
 "notifications": 0,
 "_notifications_label": "None",
 "isunsafe": 0,
 "correlationmethod": 0,
 "_correlationmethod_label": "None",
 "statuscode": 1,
 "_statuscode_label": "Draft",
 "description": "<div></div><div style=\"direction:ltr\"><div id=\"signature\">\n\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n\n\n<div>\n<div data-wrapper=\"true\" style=\"font-size:9pt; font-family:\" segoe=\"\" ui\",\"helvetica=\"\" neue\",sans-serif;=\"\" direction:ltr\"=\"\">\n<div>\n<p dir=\"LTR\" style=\"\" align=\"LEFT\"><font class=\"x_keyboardFocusClass\" style=\"display:inline\" size=\"2\"><span class=\"x_keyboardFocusClass\" style=\"\" lang=\"EN\">Thanks,<br>\n<br>\nfirst last<br>\n<font style=\"\" size=\"2\"><font style=\"\" size=\"2\"><font class=\"x_keyboardFocusClass\" style=\"\" size=\"2\"><span style=\"color:rgb(31,73,125)\"><b style=\"font-family:Arial\">Quotation Specialist</b></span></font></font></font><br>\n<font style=\"\" size=\"2\" color=\"#1f497d\"><font style=\"\" size=\"2\" color=\"#1f497d\"><font class=\"x_keyboardFocusClass\" style=\"\" size=\"2\" color=\"#1f497d\"><font style=\"\" face=\"Arial\"><b>Microsoft 365 | Power Platform Administrator</b></font></font></font></font></span></font><br>\n<font class=\"x_keyboardFocusClass\" style=\"display:inline\" size=\"2\"><span class=\"x_keyboardFocusClass\" style=\"\" lang=\"EN\"><font style=\"\" size=\"2\" color=\"#1f497d\"><font style=\"\" size=\"2\" color=\"#1f497d\"><font class=\"x_keyboardFocusClass\" style=\"\" size=\"2\" color=\"#1f497d\"><font style=\"font-family:Helvetica\" face=\"Tahoma, Verdana, Arial\"> </font></font></font></font><br>\n<font size=\"2\" face=\"Arial\" color=\"#6c6c6c\"><font size=\"2\" face=\"Arial\" color=\"#6c6c6c\"><font size=\"2\" face=\"Arial\" color=\"#6c6c6c\"><b>Email:</b></font></font></font><font size=\"2\" face=\"Arial\" color=\"#1f497d\"><font class=\"x_keyboardFocusClass\" size=\"2\" face=\"Arial\" color=\"#1f497d\"><font size=\"2\" face=\"Arial\" color=\"#1f497d\">\n customer.service@example.com<br>\nBusiness Hours: Monday - Wednesday (7:30am - 4:30pm)</font></font></font></span></font></p>\n<p dir=\"LTR\" style=\"\" align=\"LEFT\"><font class=\"x_keyboardFocusClass\" style=\"display:inline\" size=\"2\"><span class=\"x_keyboardFocusClass\" style=\"\" lang=\"EN\"><font style=\"\" size=\"2\" face=\"Arial\"><font style=\"\" size=\"2\" face=\"Arial\"><font style=\"\" size=\"2\" face=\"Arial\"><span style=\"\" lang=\"EN\"><a href=\"http://www.example.com/\" style=\"color:rgb(15,111,3); font-weight:bold\">www.example.com</a></span></font></font></font></span></font></p>\n</div>\n</div>\n</div>\n\n\n</div></div>",
 "compressed": false,
 "createdon": "2023-01-12T17:49:15Z",
 "attachmentcount": 0,
 "followemailuserpreference": false,
 "statecode": 0,
 "_statecode_label": "Open",
 "isbilled": false,
 "isemailfollowed": false,
 "deliveryreceiptrequested": false,
 "directioncode": true,
 "_ownerid_value": "a5816a23-f87c-eb11-a812-000d3a3bd8f6",
 "_ownerid_value@Microsoft.Dynamics.CRM.lookuplogicalname": "systemuser",
 "_ownerid_type": "systemusers",
 "modifiedon": "2023-01-12T17:49:15Z",
 "emailremindertype": 0,
 "_emailremindertype_label": "If I do not receive a reply by",
 "prioritycode": 1,
 "_prioritycode_label": "Normal",
 "_owningbusinessunit_value": "071dadad-83dc-e411-80ef-c4346bb5ebe0",
 "_owningbusinessunit_value@Microsoft.Dynamics.CRM.lookuplogicalname": "businessunit",
 "_owningbusinessunit_type": "businessunits",
 "isregularactivity": true,
 "isemailreminderset": false,
 "_modifiedby_value": "a5816a23-f87c-eb11-a812-000d3a3bd8f6",
 "_modifiedby_value@Microsoft.Dynamics.CRM.lookuplogicalname": "systemuser",
 "_modifiedby_type": "systemusers",
 "readreceiptrequested": false,
 "activitytypecode": "email",
 "_regardingobjectid_value": "8fa286ee-1f77-ed11-81ab-00224805f697",
 "_regardingobjectid_value@Microsoft.Dynamics.CRM.lookuplogicalname": "rgg_dcticket",
 "_regardingobjectid_type": "rgg_dctickets",
 "sender": "first.last@example.com",
 "isworkflowcreated": false,
 "torecipients": "first.last@example.com;",
 "deliveryprioritycode": 1,
 "_deliveryprioritycode_label": "Normal",
 "_createdby_value": "a5816a23-f87c-eb11-a812-000d3a3bd8f6",
 "_createdby_value@Microsoft.Dynamics.CRM.lookuplogicalname": "systemuser",
 "_createdby_type": "systemusers",
 "emailreminderstatus": 0,
 "_emailreminderstatus_label": "NotSet",
 "activityid": "7d43b16c-a192-ed11-aad1-00224805f697",
 "mimetype": "text/xml",
 "ItemInternalId": "7d43b16c-a192-ed11-aad1-00224805f697",

 

So, it appears the output is returning the attribute (_regardingobjectid_type) that I'm querying against:

AbleAmazing_1-1673549075571.png

 

I've tried putting the value in single quotations, double quotations, and no quotations. But, the flow still won't trigger with this filter query. Any idea what I may be doing wrong here?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @AbleAmazing,

     

    Did you also try one of the other regarding fields in the Filter rows field? One of those might work.

     

    I would test with the value field like below

    _regardingobjectid_value eq '8fa286ee-1f77-ed11-81ab-00224805f697'

     

  • AbleAmazing Profile Picture
    14 on at

    Thanks for the suggestion.

     

    Wouldn't that query only trigger on emails related to a specific row in a table? I'm trying to trigger the flow on all emails with a regarding type of rgg_dctickets. So, any email regarding a row in that table--not just regarding a specific row in that table.

  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @AbleAmazing,

     

    Yes, you are correct. That would not be the actual configuration we want to have 😁

     

    But I just was wondering if this flow will trigger at all with any kind of other fields of that same regarding lookup, to rule out some stuff 😃

     

    I did find this blog from Elaiza Benitez explaining that more people had this challenge:

    https://benitezhere.blogspot.com/2021/04/trigger-cloud-flows-based-on-regarding-obect-type-Dynamics-365-Dataverse.html

     

    Like in that blog I would suggest to try the workaround. Using trigger condition expression instead of the Filter rows field.

     

    In your case the trigger condition expression would be:

     

     

    @equals(triggerOutputs()?['body/_regardingobjectid_type'],'rgg_dctickets')

     

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard