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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AdaptiveCards Input.Nu...
Power Automate
Unanswered

AdaptiveCards Input.Number is recognized as String, not as Number/Int.

(0) ShareShare
ReportReport
Posted on by 62

I'm building a flow based on Microsoft-Teams and Adaptive Cards.

One of the cards that I post haves a Input.Number, as the image:

Lucas_Eduardo_0-1675095173582.png

But, when I trigger the flow, insert the data in and Submit the answers, the flow returns me this error:

Lucas_Eduardo_1-1675095250695.png

I don't know why it's returning a Str if the input is "Input.Number" (lol). Am I missing steps, is there something more that I should do?

 

Thx in advance.

 

 

Categories:
I have the same question (0)
  • bnburton Profile Picture
    2 on at

    Were you able to fix this? I am having the same problem.

  • Manish Solanki Profile Picture
    15,099 Moderator on at

    Hi @bnburton ,

     

    I have designed a sample flow to test number field in adaptive card and found that the values returned by adaptive card are string although we have chosen it as an integer type. Below is the JSON I have used for sample flow:

    {
    "type": "AdaptiveCard",
    "body": [
    {
    "type": "Input.Number",
    "placeholder": "Placeholder text",
    "id":"inputnumber"
    }
    ],
    "actions": [
    {
    "type": "Action.Submit",
    "title": "OK",
    }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.4"
    }

     The workaround is to convert the number returned as a string from adaptive card to integer using int() formula. The formulas are written as expression in the expression box, here I have type cast string to integer in "Compose" action:

    ManishSolanki_0-1691297000895.png

     

    You can get the converted integer value from output of compose action. 

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 173 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 95 Super User 2026 Season 1

Last 30 days Overall leaderboard