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 Automate
Answered

Set Integer Variable

(0) ShareShare
ReportReport
Posted on by 6

In my flow I'm using the List Rows Present in a Table action to get  information which I then use for filter values in a second List Rows Present in a Table function. One of the values which I'm pulling is a number which I would like to use as value in the Top Coun" field. I'm trying to create and set an integer variable which will be referenced in this second list rows. 

 

When I try to set the variable using the dynamic content without any changes I get the following error message: The variable 'Email Count' of type 'Integer' cannot be initialized or updated with value of type 'String'. The variable 'Email Count' only supports values of types 'Integer'. 

 

I've tried adding a compose and using the int() in numerous fashions which I've seen online, but continue to get that same error message. 

 

The text form of the content which I'm trying to change is as follows: @{items('Apply_to_each_3')?['EmailCount']}

 

Thanks in advance for any help and please let me know if I can provide more information

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Type the following into the Expressions tab of the content dialog when setting the variable.

    int(items('Apply_to_each_3')?['EmailCount'])
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @jgedward95 


    Have you stuck it in top count as 

    int(items('Apply_to_each_3')?['EmailCount']) 

    rather than in a compose. 

     

    Damien

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Can we get VAR involved for a replay please? 🙂 @Pstork1 that was a close one! Keyboards at the ready.

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard