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 / Accessing Polling Trig...
Power Automate
Unanswered

Accessing Polling Trigger Parameters

(1) ShareShare
ReportReport
Posted on by 2

Hey all! Currently building out a Custom Connector on MS Flow, and need a bit of help here. Actually becoming quite frustrated over this. Here is an abstraction of the issue I am facing.
 

I need to build a trigger that polls an endpoint to detect if an instance of `ParentObject` has had a new instance of `ChildObject` appended to its `contents` property.

 

The request/response for the poll will look something like this.

 

Request:
 GET "/trigger/newChildObject"
 Query parameters:
 parentObjectId: <string>
 # potential solution - "after" UTC string
after: <UTC DateTime> Response: Body<application/json>: "contents": [ ChildObject{ id: <string>, name: <string>, created: <UTC DateTime>, updated: <UTC DateTime> }]

 

The `parentObjectId` query parameter is determined by the user via a dynamic dropdown when setting up the flow. That much I have working.

 

What I'm getting hung up on, and actually quite frustrated over, is the lack of documentation on MS Flow Polling Trigger. Polling inherently involves caching/storing the value of some property, right? By the very nature of polling, there must be a mechanism via which the previous poll is compared to the current one, so as to determine if some action/operation should be executed. 

 

So in my case, I do have the ability to include an `after` query parameter, a UTC Date-Time. When included, the API will return only the `childObject` items which were created after that time code. Well, even when I include that in the HTTP Request definition for the Polling Trigger definition, I do not get the option to choose this parameter from the "Query Parameter" dropdown in the "Trigger Configuration" section. Furthermore, there is no mention of how to dynamically pass the Date-Time of the previous poll within the MS Flow Documentation.

 

Setting a query parameter via Policy Template seemed like the next logical route of investigation, but has turned up nothing, as again, the documentation on available `ConnectionParameters` dynamic variables for templating is completely lacking, particularly for polling.

 

The last option would be to return all childObject instances, regardless of create times, and compare the length of the array. But again, no mention as to how that might be done, and given the nature of Flow, I'd hedge my bets that it can't be.

 

The closest thing I can find is this document https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-actions-triggers but it is of no help in creating an MS Flow Polling Trigger via UI or OpenAPI Extension.

 

Let's figure this out, yeh?

 

Categories:
I have the same question (0)
  • Dominicdustin68 Profile Picture
    14 on at

    Have you been able to figure this out @zrheaume ? I have gotten everything figured out on my end except for the $orderby parameter that you have to include in the polling trigger UI when setting up. The major issue I am having now is that the API I am trying to poll does not support "orderby" but does support "sort_order". When I change the parameter name to "sort_order" it completely wipes out everything in the polling trigger. And of course Microsoft has no documentation on this which I find not only frustrating (Like usual with Microsoft), but absolutely ridiculous!

     

    Anything you can do to help me out I would appreciate... If you did figure any of this nonsense out.

  • donut_and_i Profile Picture
    Microsoft Employee on at

    Hy, I am trying to figure out the response part for the trigger. So in postman I could see the get is giving 200. but from  powerautomate end its coming as 500. to fix the trigger. Can you help me with what I can check to find my error.

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard