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

Community site session details

Session Id :
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.

I have the same question (0)
  • lbendlin Profile Picture
    8,372 Super User 2025 Season 2 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

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

    I can confirm this method works 🙂 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard

Featured topics