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 / A function is used in ...
Power Automate
Answered

A function is used in the setting variable, which is treated as a string

(0) ShareShare
ReportReport
Posted on by 36

Hi there,

 

I want to use the Mod function in the desktop flow to control the operations in the loops.

After I set the variable, I found that the result was treated as a string, not executed as a function.

 

zmsoft_0-1718604673974.png

 

 

zmsoft_1-1718604713743.png

 

 

Thanks & Regards,

zmsoft

 

  • Verified answer
    eetuRobo Profile Picture
    4,607 Super User 2026 Season 2 on at

    Syntax is like this: %FirstNumber mod SecondNumber%

    eetuRobo_2-1718605903433.png

    Other example: 

    eetuRobo_1-1718605801438.png


    eetuRobo_0-1718605785213.png


    In your case: %row mod 14%

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
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard