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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Receiving wrong dataty...
Power Apps
Answered

Receiving wrong datatype from Flow

(0) ShareShare
ReportReport
Posted on by 33

Hello,

I have a Flow that retrieves the max ID of a SharePoint column. When I test it, the return value is OK, but When I call it from PowerApps it won't work.
I want to receive an integer.
If I put a Respond To PowerApps, I get a Record that contains an ID, but thats not and int :

My flow with a respond to PowerappsMy flow with a respond to Powerapps

Here is the outputHere is the output
If I put a Compose, even though Flow is said to sent an int, PowerApps receives it as a boolean :

My flow with a ComposeMy flow with a Compose

Here is the output with a ComposeHere is the output with a Compose

Here is my function :

add(outputs('Obtenir_les_éléments').body?.value[0].ID,1)

Here is how I call my Flow, on a basic button

Set(selectedId;GetMaxElementFromColumn("ID"))

I hope you can help me,
Adrien

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @AdrienBeaussier 

     

    Typecast your add expression with an int

     

    example: int(add(1,1))

     

    Flow responding to PowerApps creates issues with Number type for some reason

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

     

     

  • AdrienBeaussier Profile Picture
    33 on at

    Hello @RezaDorrani and thanks for your quick answer

     

    I modified my expression to

    int(add(outputs('Obtenir_les_éléments').body?.value[0].ID,1))

    but it still won't work, I receive a Record.

    I've refreshed my flows, tabs and app.
    What did I do wrong ?

  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    @AdrienBeaussier 

     

    Return type schema is always of "type": "object" which would be a record

     

    Just parse through the record in PowerApps and get your data

     

    example - testflow.Run().numberval

     

    tesflow - name of flow

     

    numberval - name of output being returned from PowerApps to Flow

  • AdrienBeaussier Profile Picture
    33 on at

    That's so smart, why didn't I think about that... Thanks a lot !

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard