Skip to main content

Notifications

Power Automate - Connector Development
Unanswered

Define a parameter that can be multiple types

(0) ShareShare
ReportReport
Posted on by 16

Hi All,

 

I maintain a connector where the output of the trigger uses dynamic schema. Within the body of the trigger there are properties that can be string sometimes and numbers other times. Is there a way in your schema to define a value can be string or number?

 

At the moment we specify the field as a string but then if the user enters a number there is a schema validation error. This is not too bad however schema validation errors do not appear in the flow run history. So user are unaware that the flow has failed to fire.

  • Stand-wise Profile Picture
    Stand-wise 16 on at
    Re: Define a parameter that can be multiple types

    I can confirm this method works 🙂 

  • lbendlin Profile Picture
    lbendlin 7,609 on at
    Re: Define a parameter that can be multiple types

    try this

    https://stackoverflow.com/questions/57085920/how-to-use-an-any-type-with-json-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,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics