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

Notifications

Announcements

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:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard