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 Automate / integer or string cont...
Power Automate
Unanswered

integer or string content inconsistency

(1) ShareShare
ReportReport
Posted on by 46

Hi!

 

I'm having trouble trying to understand the following:

I have this:

fsuarezoedt_0-1721043659233.pngfsuarezoedt_1-1721043668106.png

 

If I try to use it in a flow and put the value in a variable, I have to initialize the variable as a string if I want to use it.

(If I try to use an integer variable here, I get an error telling me that the value is of String type

fsuarezoedt_2-1721043701372.png

)

But then I try to use the following code:

empty(outputs('Subordinate')?['body/gs_metodoconocer'])

I get:

fsuarezoedt_3-1721043749762.png

So, I'm confused. The variable must be a string if I don't want to get an error with the set. But the empty() function tells me that it's an integer and I can't use it.

 

Can someone please explain to me the behavior of this?

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @fsuarezoedt 

     

    You may try isInt function instead of empty function. The function 'isInt' return true if input is integer:

    isInt(outputs('Subordinate')?['body/gs_metodoconocer'])

     

     

     

     

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

     

  • fsuarezoedt Profile Picture
    46 on at

    It's not that my problem is the empty() function, or how to solve this logical step. I can also use an empty(string(output())). The question is:

    WHY does the flow say Integer in one part and a String in another part?

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard