Skip to main content
just added screenshots of how I wanted use the merge field
Source Link

Here is a simple Screen Flow that lets user quickly create an Opportunity and a Quote with one click. Customer wants to keep just a single screen and prefers Flow over LWC (for maintenance concerns). The task is: when user selects Account (1.) then dynamically fill in Opportunity Currency (2.) field with the Account Currency.

Current State Of Salesforce Flow

I used Data Fetcher to obtain Account's Currency - and this part works fine when an Account Id is hard-coded. But I can't pass selected Account Id to the formula. I get an error "The "basicAccountId" resource can't be used as a merge field."

Trying to use Lookup component as a merge field

Error when using Lookup component as a merge field

What else I tried - Manually assign Output Value to a Variable - it doesn't work dynamically

Trying to assign Id to a variable

Variable is not dynamically updated on Account selection

Any idea on how to bypass this Salesforce limitation?

EDIT: Extra screenshots of how I wanted to use the merge field with Data Fetcher, no success: trying to use {!basicAccountId} in SOQL query trying to use {!basicAccountId.recordId} in SOQL query trying to use {!basicAccountId.Id} in SOQL query

Here is a simple Screen Flow that lets user quickly create an Opportunity and a Quote with one click. Customer wants to keep just a single screen and prefers Flow over LWC (for maintenance concerns). The task is: when user selects Account (1.) then dynamically fill in Opportunity Currency (2.) field with the Account Currency.

Current State Of Salesforce Flow

I used Data Fetcher to obtain Account's Currency - and this part works fine when an Account Id is hard-coded. But I can't pass selected Account Id to the formula. I get an error "The "basicAccountId" resource can't be used as a merge field."

Trying to use Lookup component as a merge field

Error when using Lookup component as a merge field

What else I tried - Manually assign Output Value to a Variable - it doesn't work dynamically

Trying to assign Id to a variable

Variable is not dynamically updated on Account selection

Any idea on how to bypass this Salesforce limitation?

Here is a simple Screen Flow that lets user quickly create an Opportunity and a Quote with one click. Customer wants to keep just a single screen and prefers Flow over LWC (for maintenance concerns). The task is: when user selects Account (1.) then dynamically fill in Opportunity Currency (2.) field with the Account Currency.

Current State Of Salesforce Flow

I used Data Fetcher to obtain Account's Currency - and this part works fine when an Account Id is hard-coded. But I can't pass selected Account Id to the formula. I get an error "The "basicAccountId" resource can't be used as a merge field."

Trying to use Lookup component as a merge field

Error when using Lookup component as a merge field

What else I tried - Manually assign Output Value to a Variable - it doesn't work dynamically

Trying to assign Id to a variable

Variable is not dynamically updated on Account selection

Any idea on how to bypass this Salesforce limitation?

EDIT: Extra screenshots of how I wanted to use the merge field with Data Fetcher, no success: trying to use {!basicAccountId} in SOQL query trying to use {!basicAccountId.recordId} in SOQL query trying to use {!basicAccountId.Id} in SOQL query

Source Link

Screen Flow: Lookup component as a source for dynamic/reactive field population

Here is a simple Screen Flow that lets user quickly create an Opportunity and a Quote with one click. Customer wants to keep just a single screen and prefers Flow over LWC (for maintenance concerns). The task is: when user selects Account (1.) then dynamically fill in Opportunity Currency (2.) field with the Account Currency.

Current State Of Salesforce Flow

I used Data Fetcher to obtain Account's Currency - and this part works fine when an Account Id is hard-coded. But I can't pass selected Account Id to the formula. I get an error "The "basicAccountId" resource can't be used as a merge field."

Trying to use Lookup component as a merge field

Error when using Lookup component as a merge field

What else I tried - Manually assign Output Value to a Variable - it doesn't work dynamically

Trying to assign Id to a variable

Variable is not dynamically updated on Account selection

Any idea on how to bypass this Salesforce limitation?