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
Can we get VAR involved for a replay please? 🙂 @Pstork1 that was a close one! Keyboards at the ready.
Hi @jgedward95
Have you stuck it in top count as
int(items('Apply_to_each_3')?['EmailCount'])
rather than in a compose.
Damien
Type the following into the Expressions tab of the content dialog when setting the variable.
int(items('Apply_to_each_3')?['EmailCount'])
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2