function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Simon_FranceSimon_France 

Screen flow component reference is not working with filtered lookup

Hi everyone,

I think that I found a bug in the screen flow component "reference" when referencing a filtered lookup. Salesforce support told me to ask here about it.

Here the official documentation : https://help.salesforce.com/articleView?id=flow_ref_elements_screencmp_lookup.htm&type=5

How to reproduce :
1 - create a new lookup field from contact to account "account2" without filtering
2 - create a simple screen flow with only a reference component using this new lookup
flow setup3 - test it : you find all your account
User-added image4 - add a filter on the lookup to display only the account of the contact
User-added image5 - nothing in the flow now :
User-added imageI have the same results if the filter is optional.

Did i missunderstand something ? Or is this a bug ?
Best Answer chosen by Simon_France
Simon_FranceSimon_France
Hi Fabio,

No sorry. I don't know if it was already in the documentation (https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_screencmp_lookup.htm&type=5) but now dependent lookup filter are clearly not supported.

I think you can try using a record choice option:
https://sfdcquestion.blogspot.com/p/create-lookup-filter-in-lightning.html

Or you can use the custom component from Unofficial SF: 
https://unofficialsf.com/lookup/

Best regards,
Simon
 

All Answers

ShirishaShirisha (Salesforce Developers) 
Hi Simon,

Greetings!

I suspect that it could be because of the filter criteria that you have used.So,I would suggest you to check,if there is any record which is meeting the criteria.

Also,it would be great if you can check with the simple criteria to narrow down the scenario.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Simon_FranceSimon_France
Hi Shirisha,

The lookup is working fine :
User-added image
That's why I think there is a problem with this new component which should just copy the lookup or, if I understand the documentation, doesn't take into account the filter.

Best regards,
Simon
Fabio PalladinoFabio Palladino
HI Simon,
I have the same issue for filtered Lookup.
Have you discovered the solution ?

Best Regards
Fabio
Simon_FranceSimon_France
Hi Fabio,

No sorry. I don't know if it was already in the documentation (https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_screencmp_lookup.htm&type=5) but now dependent lookup filter are clearly not supported.

I think you can try using a record choice option:
https://sfdcquestion.blogspot.com/p/create-lookup-filter-in-lightning.html

Or you can use the custom component from Unofficial SF: 
https://unofficialsf.com/lookup/

Best regards,
Simon
 
This was selected as the best answer
John James 40John James 40
Hey Simon, 

Good tidings! 

I speculate that it very well may be a direct result of the channel measures that you have used.So,I would recommend you to check,if there is any record which is meeting the models. 

Also,it would be extraordinary on the off chance that you can check with the straightforward measures to limit the situation. 

Benevolently mark it as most intelligent reply in the event that it helps so it can help other people later on. https://echirobilling.com/our-services/

Warm Regards,
James
simply buzzes 9simply buzzes 9
its an amazing thanks for the information could you please suggest me the best loan against gold (https://www.manappuram.com/gold-loan.html) that helps me to establish my business. 
John James 40John James 40
its an astonishing a debt of gratitude is in order for the data could you kindly recommend me the best credit against gold (https://echirobilling.com/our-services/) that assists me with building up my business.
darren chris 10darren chris 10
Thank you so much for telling whats good for it. (https://hairscare.net/blog/)
Christian EdwardsChristian Edwards
Wow, that's great, and thanks for the details. I was wondering if you could recommend a good gold loan provider. redactle (https://redactleunlimited.com)