You need to sign in to do that
Don't have an account?
sales force 504
Look up field in lightning Flow
I want to use a existing look up field in a visual flow screen, but as it is not directly available I created a lightning component.
The lightning component workd fine when I embed it into a lightning app, but when I try using it in the flow as a lightning component it prompts with the following error
This page has an error. You might just need to refresh it. Error in $A.getCallback() [An internal server error has occurred Error ID: 1616352317-51606 (-582529140)] Callback failed: aura://ComponentController/ACTION$getComponent Failing descriptor: {flowruntime:flowRuntime}
My component code is as below
<aura:component implements="lightning:availableForFlowScreens" access="global">
<aura:attribute name="objInfo" type="Contact"
default="{ 'sobjectType': 'Contact' }" access = "public"/>
<force:inputField aura:id="accountid"
value="{!v.objInfo.AccountId}"/>
</aura:component>
Can anyone advice how can we resolve it ?
The lightning component workd fine when I embed it into a lightning app, but when I try using it in the flow as a lightning component it prompts with the following error
This page has an error. You might just need to refresh it. Error in $A.getCallback() [An internal server error has occurred Error ID: 1616352317-51606 (-582529140)] Callback failed: aura://ComponentController/ACTION$getComponent Failing descriptor: {flowruntime:flowRuntime}
My component code is as below
<aura:component implements="lightning:availableForFlowScreens" access="global">
<aura:attribute name="objInfo" type="Contact"
default="{ 'sobjectType': 'Contact' }" access = "public"/>
<force:inputField aura:id="accountid"
value="{!v.objInfo.AccountId}"/>
</aura:component>
Can anyone advice how can we resolve it ?
https://github.com/alexed1/LightningFlowComponents/tree/master/flow_screen_components/lookupFSC
I read the documentation for the component you mentioned about, and in that case we will have to explicitly mention the filter criteria.
My scenario is such that I have an existing look up field on a Object with some filter and would like to use the same field in the flow so that changes made in the filter will reflect in the flow as well.
The <force:inputField > gives me that result but I'm unable to use it in the flow
Would the Parent/Child parameters work for this in your Flow?
.
FLOW with Filter Lookup
SCREEN
Product LOOKUP Field
DECISION
RECORD LOOKUP