Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Polling trigger not incrementing ID on next poll

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I made a custom connector with a polling trigger, the trigger is working but it doesn't increment the ID on the next poll GET request.

In fact the ID parameter isn't in the query parameters at all, this way the triggers keeps firing for the same objects again and again.

 

Swagger definition:

 

 /trigger/new_notification:
 get:
 summary: Trigger for new notification.
 description: new notification.
 operationId: NewNotification
 x-ms-visibility: important
 x-ms-trigger: batch
 x-ms-trigger-metadata:
 mode: polling
 kind: query
 x-ms-trigger-hint: Create new notification.
 parameters:
 - name: id
 type: integer
 in: query
 required: false
 x-ms-visibility: internal
 x-ms-trigger-value:
 value-collection: notifications
 value-path: id
 - name: status
 type: string
 default: ''
 in: query
 required: false
 x-ms-visibility: advanced
 - name: type
 type: string
 default: ''
 in: query
 required: false
 x-ms-visibility: advanced
 - name: by_user_id
 type: string
 default: ''
 in: query
 required: false
 x-ms-visibility: advanced
 - name: sender_id
 type: string
 default: ''
 in: query
 required: false
 x-ms-visibility: advanced
 responses:
 '501':
 description: error
 schema:
 type: object
 properties:
 name:
 type: string
 description: Error message.
 default:
 description: default
 schema:
 type: object
 properties:
 notifications:
 type: array
 items:
 type: object
 properties:
 id:
 type: integer
 format: int64
 description: id
 type:
 type: integer
 data:
 type: string
 status:
 type: integer
 flags:
 type: integer
 date:
 type: integer
 notified:
 type: integer
 notify_date:
 type: integer
 by_user_id:
 type: integer
 sender_id:
 type: integer

 

 

GUI shows:

 

Tom_FM_0-1680595816778.png

 

Tom_FM_1-1680595844485.png

Tom_FM_3-1680595868033.png

 

 

Tom_FM_2-1680595854956.png

 

This is what I get on the API server side in the http request:

'url' => 'trigger/new_notification',
'status' => '',
'type' => '',
'by_user_id' => '',
'sender_id' => '',

 

This ID parameter is not there...

Anyone knows how to fix this?

 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics