Gather User Information with a Get Records Element
Now, get the user’s information so the flow can then assign the privacy settings to the user. If the customer is only signing up for the portal, the flow will use the information they enter. Let’s collect their first and last name, as well as their email address.
- Click the plus icon between Screen Flow and End, and click on the Get Records element (watch the Get Records video to learn more).
- For the label, enter
Get User Info
. The API Name field is automatically populated based on this entry, and should beGet_User_Info
. - For Get Records of this Object, select User.
- For Condition Requirements, select All Conditions Are Met (AND).
- Add these fields and values.
- Field: Id (User ID)
- Operator: Equals
- Value:
{!LoginFlow_UserId}
- How Many Records to Store:
Only the first record
- How to Store Record Data:
Choose fields and assign variables (advanced)
- Where to Store Field Values:
Together in a record variable
- For Select Variable to Store User, add a record variable.
- Record:
{!UserInfo}
- Record:
- Select User Fields to Store in Variable
- Add the following fields, and click Add Field after each entry:
FirstName
LastName
AccountId
ContactId
- Add the following fields, and click Add Field after each entry:
- Save the flow.