Lightning Lookup component in a flow
When I go to debug my flow and I type something in the lookup area, no results show up.
What could I be doing wrong ?
Can you share your code?
Im not dealing with any code, just using the flow builder. Is there a specific place I can go to get code for you to see?
Im trying to get the search results to show as Account name + Member Number + Branch number
I just have one last question. When I go to the search layouts page, I see a lot of fields selected for different search layouts. But within my flow I only see the Member # field displayed under the account name.
Am I looking in the right place?
If you want to fetch account records in flow with specific criteria you can always query that in flow.
Sorry if i didnt understand the requirement correctly.
Sakshi - we're refering to the Flow Builder's Screen element's Lookup component that was added with Winter '20, as shown in the OP's post. Different from Get Records or Record Choices.
I tested this thinking it would only return contacts that had been populated in that field but it turns out it looks up all contacts. happy days!
I am trying to define a lookup to Asset object on my screen but it's not pulling any results. I tried to set the Field Api Name to "Name" , "Asset" . It's not working. Any idea what am I missing ?
It's not recognizing ParentId ..Here's the screenshot. My use case is to auto launch this flow from a case where users are requested to capture additional details when an attribute is true. One of the fields to capture is Machine serial#.
Thanks for all your prompt responses
Again thanks for your answer
I'm also searching for USEFUL documentation out there that explains the Lookup Component... Particularly on how to lookup Custom Objects. Meanwhile, here are some links that may help others:
I added a lookup and trying to search by Name - it is working.
But when trying to search by another field - no result, despite this field is presented on the search layout. And also when doing the same with the real lookup on the record page (not in the flow) - it is working for any field from the search layout.
So, seems like a bug and salesforce flow lookup component doesn`t imitate the real lookup field at the full scope.
Background: I want a flow that creates a new event. So I have an event record variable in the flow.
I want the user to chose the account. Using a lookup component for this.
I did first try - as apparently many did - sObject = Account. Fail!
Then I tried sObject = Event and Field = AccountId. This did lead to error message of "Object Event is not supported in UI API". Sh....
Finally I did set sObject to "Contact" (and Field to AccountID) which did the job. ALTHOUGH there is no contact in my flow... Just using a DUMMY sObject that has a "working" lookup relationship... Which drugs did this developer take??
that didn't work for me. can you post a screenshot?
@Rogerio Borges Grilo - I hope this helps....
Even I was trying to get a second lookup which can fetch the records based on the 1st lookup values. In Jason's case it was Account 1st and then select the contacts for that account.
Seems it is not possible for now.
However what I did was to get the Id of the record from the 1st lookup and then in a subsequent screen create a record list using the Id fetched from previous lookup.
Not the best way to do it, but it might work.
Step by step I am trying to solve the problem and what you have written above has helped me find some solutions.
In my case, I am trying to build a process to copy opportunity products into orders.
Order is customized. I have created a lookup field to search for the order opportunity from which products shall be copied. I have managed to create the field which looks up into opportunities. However, as I type the opp name, no preview appears to select from. And despite my typing, no value is held by the field. What am I doing wrong? Or maybe what is missing?
This is my lookup field:
Thank you in advance for your support.
The reason for this problem was that I had a lookup filter on the lookup field in my source object. When I deactivated the lookup filter, the lookup screen on the Flow worked fine (though without the filter I wanted).
The particular filter I was using referenced another lookup field, looking up to Contacts. It requiring that only records related to the Contact previously selected on the record be available in the lookup. Perhaps other types of filters that don't reference another lookup field wouldn't have this same problem in the Flow.