Description
In this lesson, you will learn how to redirect to the record page after creating a record through a screen flow. This will allow users to seamlessly navigate to the newly created record.
-
Start by designing your screen flow with the required fields and inputs to capture the necessary information for creating a record.
-
Add a "Create Records" element to your flow. Configure this element to create the new record using the provided inputs from the screen flow.
-
After the "Create Records" element, add a "Record Lookup" element. Configure the lookup to search for the record you just created, using appropriate criteria such as unique identifiers or fields.
-
Create a variable to store the ID of the newly created record. Assign the ID of the retrieved record from the "Record Lookup" element to this variable. This step ensures that you have the ID available for redirection.
-
Next, add a "Display Text" or "Screen" element to provide a message confirming the successful creation of the record. This message will include a hyperlink that redirects the user to the newly created record.