Trust Percent Values in Flow sObject Variables Again (Critical Update)
Have you added special calculations to your flow to get the
right output for a percent field? This critical update lets you remove those workarounds.
Previously, our calculations on percent values weren’t always working as expected. We rolled out a partial fix last release. This release we’re rolling out the rest of the fix as a critical update. Why? We know that many of you have workarounds in place to make sure the flow calculates correctly. Because our change makes those workarounds unnecessary, here’s your chance to test how the current state of percent calculations works for your flows.
Here’s how you can expect percent values to behave after you activate this critical
update.
1If you’re saving this value to a new or existing Salesforce record, we
recommend multiplying it by 100. As always, test various permutations of your flow to make sure
that the calculations are working correctly.
When you... | The value... | Example |
---|---|---|
Pass a numerical value into an sObject variable’s percent field | Doesn’t change | 100 remains 100. When you save this value to a new or existing record, the percent value is 100%. |
Pass the value of one sObject variable’s percent field into the percent field of another sObject variable | Doesn’t change | 100 remains 100. When you save this value to a new or existing record, the percent value is 100%. |
Reference an sObject variable’s percent field into a formula1 | Divides by 100 | 100 becomes 1. When you save this value to a new or existing record, the percent value is 1% . |
Test This Critical Update
We recommend testing the critical update in a sandbox. If you must work in your production
org, do so during off-peak hours.
- Identify the flows that deal with percent fields in sObject variables.
- Activate this critical update.
- In your flows, identify any workarounds that you added to control how percent values were being calculated and adjust them for the new behavior. The recommended workaround was to multiply the sObject percent field values by 100.
- Test each flow to make sure that the results with the critical update are correct.