I have a text field that is capturing the first and last name of a user in code. What I need to do within a flow that I am creating, is assign that user as the owner to a new record when certain criteria is met. Is there a way (without updating the code) to capture an id of a user into a new field to pull into the flow based on simply a text field?
Thank you for your help!
3 respuestas
Lindsey, you certainly can. Have you worked with a Process Builder + Flow combo before? This is how it needs to be implemented:
- Fire the Process when certain criteria is met
- Launch a Flow from this Process
- Pass the First Name, Last Name, ID of the record to Flow variables
- Within the Flow, perform a Record Lookup on the User object where Name = Flow variable that you passed the text field value into
- Store this User's ID in a Flow variable
- Within the Flow itself, perform the owner related update