• sales force 504
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
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 ?

 
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 ?