Final Up to date on December 7, 2022 by Rakesh Gupta
Huge Concept or Enduring Query:
- Permit your customers to pick a couple of document when utilizing lookup Element.
This weblog is a sequel to my earlier weblog – What? Use Lookup Field into a Flow Screen Element?!!. Within the earlier weblog, I mentioned methods to configure lookup element for display circulate.
This text goes a step forward and explains methods to configure the Lookup circulate display element in order that customers can search and choose a couple of document.
Aims:
After studying this weblog, you’ll be capable to:
- Create a Display screen Move and add Display screen aspect to it.
- Add lookup element to your display aspect
- Set the utmost alternatives for lookup aspect
- Replace a number of data utilizing In operator
- And rather more
Edward Backhouse is working as a System Administrator at Gurukul on Cloud (GoC). he has obtained the next requirement from the administration:
- Add a display circulate on the house web page, that enable customers to pick a number of alternatives
- Ultimately, replace the proprietor for chosen alternatives to logged-In consumer.
Automation Champion Method (I-do):
After Winter’23 launch customers can search after which choose a couple of document with the Lookup circulate display element. As an circulate configurator you’ll be able to specify a range most and a number of default data.
Earlier than we proceed additional, allow us to perceive the traits of the Lookup element.
Attribute | Description |
---|---|
API Title | An API title can embrace underscores and alphanumeric characters with out areas. It should start with a letter and might’t finish with an underscore. It can also’t have two consecutive underscores. |
Area API Title | The API title of a lookup discipline on the supply object. |
Label | Person-friendly textual content that shows to the left of the element. |
Object API Title | The API title of the supply object. |
Most Choices | The utmost variety of data that the consumer can choose. The default worth is 1. |
Document Id | Initially, if Most Choices is 1 or Most Choices is larger than 1 and the Document ID Assortment discipline is null, the document ID chosen by default for the lookup.
When a consumer runs the circulate, the worth modifications to the circulate consumer’s choice. |
Document Id Assortment | Initially, if Most Choices is larger than 1, the default document IDs for the lookup.
If Most Choices is larger than 1 and the Document ID discipline is null, the primary worth is the document IDs chosen by default for the lookup. You possibly can specify any variety of document IDs as much as the Most Choices worth. When a consumer runs the circulate, the worth modifications to the circulate consumer’s alternatives. |
Require | Requires customers to enter a worth earlier than they will transfer to the subsequent display. |
Earlier than discussing the answer, let me present you a diagram of a Course of Move at a excessive degree. Please spend a couple of minutes going by means of the next Move diagram and understanding it.
Let’s start constructing this automation course of.
Guided Observe (We-do):
There are Four steps to unravel Edward’s enterprise requirement utilizing Display screen Move. We should:
- Outline circulate properties for display circulate
- Add a Display screen aspect
- Add a Lookup Element that enable customers to pick a number of alternative data
- Add an Replace Data aspect to replace the alternatives proprietor
- Add a display circulate to the lightning residence web page
Step 1: Outline Move Properties
- Click on Setup.
- Within the Fast Discover field, kind Flows.
- Choose Flows then click on on the New Move.
- Choose the Display screen Move choice and click on on Create and configure the circulate.
- It’s going to open the circulate designer for you.
Step 2: Add a Display screen Factor
- On Move Designer, click on on the +icon and choose the Display screen aspect.
- Enter the next info:
- Enter Label the API Title will auto-populate.
- Click on Achieved.
Step 2.1: Add a Lookup Element that Permit Customers to Choose A number of Alternative Data
- Underneath Enter part on Display screen Factor. Drag and drop Lookup onto the display.
- Enter the next info:
- Enter API Title.
- Area API Title: OpportunityId
- Label: Choose Alternatives (Enter a label that seems subsequent to the lookup management)
- Object API Title: Quote ( Enter the item API title)
- Most Choice: 10
- Required: {!$GlobalConstant.True}
- Click on Achieved.
Step 3: Add Motion – Replace Data
The subsequent step is to replace the chosen alternative proprietor. We’ll use the Replace Data aspect.
- On Move Designer, click on on the +icon and choose the Replace Data aspect.
- Enter a reputation within the Label discipline; the API Title will auto-populate.
- For Discover Data to Replace and Set Their Values choose Specify situations to determine data, and set fields individually
- Object: Alternative
- Choose All Circumstances Are Met (AND).
- Set Filter Circumstances
- Row 1:
- Area: Id
- Operator: In
- Worth: {!SelectOpportunities.recordIds}
- Click on Add Situation
- Row 1:
- Area: OwnerId
- Operator: Does Not Equal
- Worth: {!$Person.Id}
- Row 1:
- Set Area Values for the Alternative Data
- Row 1:
- Area: OwnerId
- Worth: {!$Person.Id}
- Area: OwnerId
- Row 1:
- Click on Achieved.
Ultimately, Edward’s Move will appear like the next screenshot:
As soon as all the pieces seems good, carry out the steps under:
- Click on Save.
- Enter the Move Label the API Title will auto-populate.
- Click on Present Superior.
- API Model for Operating the Move: 56
- Interview Label: Choose A number of Data – Lookup Instance {!$Move.CurrentDateTime}
- Click on Save.
Virtually there! As soon as all the pieces seems good, click on the Activate button.
Step 4: Add a Display screen Move to the Lightning Dwelling Web page
The subsequent step is to distribute a circulate to Lightning Expertise or Salesforce app customers by embedding it on a Lightning residence web page.
Proof of Idea
Formative Evaluation:
I need to hear from you!
What’s one factor you discovered from this put up? How do you envision making use of this new data in the true world? Be at liberty to share within the feedback under.