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 / Decrement Variable is ...
Power Automate
Unanswered

Decrement Variable is Apparently Using New Math?

(0) ShareShare
ReportReport
Posted on by

So, I have made a flow that's triggered by a new email showing up in a specific folder.

I turn the HTML into text and begin scraping information out of the text.

I isolate a specific line of text and retrieve the position of the '%' sign. Position 47.

 

findTextPosition.jpg

 

 

 

 

 

 

 

 

 

 

I set variable textPosition to the result of the Find Text Position action--47.

 

setVariable.jpg

 

 

 

 

 

 

 

 

 

 

 

 

And my next step is to decrement that variable by three (3). Now, I realize I am old and still use the old math, so 47 take away 3 should always be 44. Or am I confused?

 

decrement.jpg

29?!?!?!?

 

So I grab the needed substring, and end up with 157, instead of the desired ' 33'

 

final.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

Apparently Decrement Variable is broken. I have been unsuccessful in writing an expression that basically means dynamic content variable 'textposition - 3'. This seems like a much easier solution.

 

Can it be done?

 

Frank D. Puthuff
Dell Technology

Categories:
I have the same question (0)
  • Verified answer
    shoog Profile Picture
    2,164 on at

    You could use the following expression to eliminate the variable:

    sub(body('Find_text_position_of_percent_sign'),3)

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard