Run an Autolaunched Flow from a Custom Button | Salesforce Trailhead

preview_player
Показать описание
this video is about Run an Autolaunched Flow from a Custom Button | Salesforce Trailhead
#Salesforce #FlowBuilder #CustomButton #LightningRecordPage #DynamicActions #URLParameters #InputVariables
In this unit, you will learn how to send data from a custom button to a flow and add a custom button to a Lightning record page using Dynamic Actions. Here is a summary of the steps involved:

Assign values to input variables: You need to send the values from the record fields to the corresponding input variables in the flow. The format for assignment is variable = value. For example, caseId = {!Case.Id} assigns the Case ID field value to the caseId input variable.

Add URL parameters to a custom button's URL: URL parameters carry additional information to Salesforce. Parameters are added to the flow URL at the end, separated by a question mark and ampersands. For example, /flow/Clone_Closed_Case?caseId={!Case.Id}&caseSubject={!Case.Subject}&caseAccountId={!Case.AccountId}&caseType={!Case.Type}.

Define a return destination: You can specify the page to load after the flow finishes by adding the retURL parameter. The retURL value is usually the ID of the record where the flow runs. For example, &retURL=/{!Case.Id}.

Save the custom button.

Place the custom button on the Lightning record page using Dynamic Actions: Create a new Lightning record page, upgrade it to use Dynamic Actions, add the Clone Closed Case button to the Highlights Panel, and save the page.

Activate the page and make it the org default for Desktop and phone.

By following these steps, you will be able to send data from a custom button to a flow and add the button to a Lightning record page using Dynamic Actions.

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 - lunch salesforce and start challenge
02:42 - create a custom button
08:00 - create record page and add button
Рекомендации по теме