0

I am trying to use the lookup input component in a flow to find a user record by email.

Lookup component setup screenshot below where EmailAPIName = Email and UserAPINameConst = User and are both of the data type Constant.

enter image description here

No records are showing up and under the lookup it's displaying the following message under the lookup:

'Select an option or remove the search term'

I can pull up user records in dev console through SOQL with no problem:

select id from user where email = 'myEmail@myCompany.com'

Activated Flow with Lookup field:

enter image description here

The flow is being displayed on a lightning community page and as an admin of the community page, I not seeing any results on the flow.

What gives?

  • Have you tried using this Flow in an internal (non-Communities) context? Wondering if this could be an issue of user visibility specifically within Communities. Check this article: help.salesforce.com/… – Matthew Souther Jan 2 at 17:10
  • Same issue with lookup on lightning page within Service Console as well. – S.B. Jan 2 at 17:27
  • Tried it with a case object and subject field as well, inside and outside of communities same results. – S.B. Jan 2 at 17:35
  • Can you clarify what exactly you’re trying to do with this component? Do you want to search for a user by email address? I don’t think this component does what you expect it to, but there might be another we can recommend. – Allison Letts Jan 4 at 7:44
1

Lookup field must actually be a field of lookup type.

To query for a user object for example, on the lookup component you could select an Object API Name of value "Case" and Field API Name of value "CreatedById" and this appears to perform a SOSL lookup of all fields on the User Object since CreatedById is of field type: Lookup(User).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.