Visual Flow: Unexpected Output for Percent Field when there are two or more levels of traversal
Last updated 2022-02-10 ·Reference W-2541483 ·Reported By 13 users
Summary
This is a similar scenario to the open reported here: https://success.salesforce.com/issues_view?id=a1p30000000T5dRAAS
We discovered that the issue still exists when you use more than two levels of traversal, i.e. myCase.Account.percentage_c vs myAccount.percentage_c.
Original Issue: 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 a Case with this Account
4. Create flow:
Fast Lookup element(start element) on Case: CaseNumber equals the number of the Case you created in step 3, variable: SObject Case named "MyCase", field: "AccountId"
Screen: display the percentage__c value: {!MyCase.Account.Percentage__c}
5. Run flow.
Actual Results: Notice screen shows 0.002
Workaround
UPDATE: Notice that on step #3 you're getting the AccountID value.
A workaround to remove the traversal level would be to do the following:
Create a new Fast Lookup element on Account. You'll need to retrieve the Account with Id equal to MyCase.AccountId (from step 4) putting the result in an Account SObject variable named "MyAccount".
Once you do this you'll be able to use {!MyAccount.Percentage__c} without the traversal. The value will be displayed correctly.
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.