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 Platform Community / Forums / Power Automate / Define a parameter tha...
Power Automate
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.

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard