function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jane Marchand 2Jane Marchand 2 

Formula field value not passing into Flow Correctly

I have a flow that looks up Opportunity Products
On Opportunity Products I have a formula field, which is supposed to return a currency value.
This is fhe 'FLOW AMOUNT' formula field:
IF ( ISPICKVAL(Contract_Length_years__c, 'Full Term') , UnitPrice , Term_Total__c )

the problem I am having is that when I look in the Salesforce UI, I can see that Flow Amount Formula field displays the correct value, but when I reference it in a flow it displays the Term_Total__c field only....
Has anyone else had issues like this?

I have also tried creating a formula field in the flow itself that should return the same value, but it returns blank all the time.
It is::
IF ( {!Loopvar_OpportunityLineItems.Contract_Length_years__c} = "Full Term", {!Loopvar_OpportunityLineItems.UnitPrice}, {!Loopvar_OpportunityLineItems.Term_Total__c})

Has anyone got any idea how to resolve this issue?