Dynamically create a record link so that you can use it somewhere like on screen or email etc. in screen flow #inSalesforce

Dynamically create a record link so that you can use it somewhere like on screen or email etc. in screen flow #inSalesforce


Create a screenflow

SCREEN: General Info

text - firstname

text - lastname

Save the screen



CREATE:

Create Contact

One, Use separate..

Object: Contact

first name - screen first name

last name - screen last name


Manually assign variables - since you want to store the id of the newly created record


create variable(text) contactId (when record created, contact id will get store in this variable)


SCREEN:

Display the new record

display text - New Record Link is new resource(formula)(text) LEFT({$Api.Enterprise_Server_URL_510},FIND('/services',{!$Api.Enterprise_Server_URL_510}))&{!contactId} 

Select the New Record Link and click link and paste the link



Save the flow, debug, and test



Comments