Visual Flow: Unexpected Output for Percent Field
Last updated 2016-07-28 ·Reference W-2377446 ·Reported By 23 users
Summary
A Fast Lookup element is used to collect a Percent field as a variable. The value stored in this variable is intended to populate another Percent field on a new record.
However, when the new record is created, its Percent field displays as 0%.
Repro
1. Create a percentage field on Account
2. Create an Account with percentage__c = 20%.
3. Create Flow:
--Fast Lookup element(start element):
- id equals above Id
- variable: SObject Account
- field: percentage__c.
--Screen: display the percentage__c value:
- {!MyAcc.Percentage__c}
4. Run flow
5. Notice screen displays Perentage value as 0.002
Workaround
Create a new Formula variable:
1. In Flow Designer, select Resources tab
2. Double-click on "Formula"
3. Set a unique Name
4. Set Data Type: Number | Scale: 10
5. Select Resource: specify custom Percent field from stored variable and multiply by 1000000
-----------------------------------------------------
For example:
{!QuoteDetails.Percentage__c}*1000000
-----------------------------------------------------
6. Edit the Record Create element to populate its custom Percent field using this new formula
UPDATE 26/03/2015
Upon further investigation we have found that there's another scenario where this issue may appear, a new Known Issue has been created, please follow its progress here: https://success.salesforce.com/issues_view?id=a1p300000008YJiAAM
Reported By (23)







Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.