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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update Dynamics whole ...
Power Automate
Unanswered

Update Dynamics whole number field based on value selected in option set

(0) ShareShare
ReportReport
Posted on by 132

Hi,

 

I have an old workflow I'm trying to convert to Flow but I'm having trouble with the calculation. Here is what the workflow does:

 

It updates a whole number field by 1 when a set of option set fields are set to a certain value. It uses "Increment by" and clears out the field in the beginning so that the calculation is accurate. 

 

I found the add() function in Expressions in Flow so I decided to try using that to increment my whole number field by 1 and also have an update action that is clearing out the field value in the beginning like the workflow did. The problem is, it doesn't know how to account for when someone goes and switches a value more than once on any of the option set fields. When that happens, it throws off the count. The workflow knew how to account for this with the "clear" dynamic value used at the beginning of the workflow, but adding something similar to the beginning of the flow doesn't help.

 

Is the add() function the best way to handle incrementing values in Flow? And if so, how do I tell it to account for those option set fields getting switched more than once on the same field?

Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at
    Re: Update Dynamics whole number field based on value selected in option set

    Hi @phildrake198 ,

     

    Can you please share your workflow screenshot of what it was doing and what you want to accomplish using flow. 

     

    Thanks

  • pdr469 Profile Picture
    132 on at
    Re: Update Dynamics whole number field based on value selected in option set

    Nevermind. I found a solution. I just used javascript on the form in Dynamics instead and that did the trick.

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard