Sunday, 29 October 2023

How to include a screen flow in a Lightning Web Component

 Hi,

Assume  you have a flow called "Quick Contact Creation" and API Name for the same is "Quick_Contact_Creation".

To include the above flow in your component ,  set the lightning-flow component's flowApiName attribute to the name of the flow that you want to use. The component includes navigation buttons (Back, Next, Pause, and Finish), for users to navigate within the flow.

Eg:

<template>
    <lightning-flow
        flow-api-name='Quick_Contact_Creation'>
    </lightning-flow>
</template>

No comments:

Post a Comment

How to Execute Einstein Prompt Templates Using Apex (Calling Salesforce Prompt Templates Programmatically with Apex)

 Hi, Here, we’ll explore how to execute a Prompt Template using Apex. To understand this better, let’s take a sample Flex Prompt Template ca...