Skip to main content

we have finical account with investment record type. we have quick action button call "create service catalog request " this button call flow. 

expected sloution; click on action then the flow calls and check record that have any existing service catalog request with draft request status , if it is true show the error msg like edit the draft and use.  

false-check the flow type and create the service catalog request , show the toast notifaction and action open that new created request. 

actual solution :  the service catalog request is toast msg is coming but the  "your flow finished" msg is poping up and need manual closing and not opening the  service catalog request . 

this working other envirments (sandboxs)only faiing after the winter27 realese  

 

#Financial Services Cloud  #Salesforce Developer  #Flow  #Quick Actions  #Salesforce Admin

1 resposta
  1. Hoje, 14:07

    That message is the Lightning runtime fallback - it shows whenever a screen flow ends on a NON-screen element (an Assignment, Create, or Decision that reaches End with no final screen). Both of your branches are ending without a screen, so you get it. Fix each branch: 

     

    1. Draft-exists branch: end it on a Screen that just displays your error text (a draft request already exists, edit that one). Because a screen is the last thing rendered, the user reads it and clicks Finish and the modal closes - no flow finished message. 

     

    2. Create branch: a screen flow cannot natively fire a toast AND navigate, so end that branch with a screen component that does it - either a small LWC, or the popular Navigate Flow and Send Toast screen actions from UnofficialSF. When the component navigates to the new record the flow modal unmounts, so the generic message never renders and your toast fires. 

     

    Rule of thumb: never let a screen-flow path reach End on a non-screen element when it runs in a modal - always finish on a screen or a navigating component. 

     

    if this helps, please mark it as the Best Answer so it helps the next person - thanks 🙂

0/9000