Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

How to create a web hook trigger with variable schema

(0) ShareShare
ReportReport
Posted on by
I created a connector with a web hook with the below trigger, which works great:
 
 { "webhook_id": "7689a169-a000-4985-8676-6902b96d6627", "event": "taskUpdated", "task_id":"c0j", "history_items": [ { "id":"33169", "type":1, "date":"1575650190085", "field":"status", "parent_id":"1753", "data":{ "status_type":"closed" }, "source":null, "user":{ "id":183, "username":"John Doe", "email":"example@email.com", "color":"#827718", "initials":"JK", "profilePicture":"https://dev-attachments-public.clickup.com/profilePictures/183_nx1.jpg" }, "before":{ "status":"open", "color":"#d3d3d3", "orderindex":0, "type":"open" }, "after":{ "status":"complete", "color":"#6bc950", "orderindex":1, "type":"closed" } } ] }
 
I created it by pasting in the json sample so it could derive the schema. The problem is that sometimes the schema changes. In some cases, the bold face part above looks like this:
 
"before":"open",
"after": "closed"
 
The flow will fail as the web hook says "before" should be an object instead of a string. How do I configure the web hook so that it can handle these types of variations in schema?
 

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,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard