Update selected records at once in a data table (find matched records and update based on criteria) using Screen Flow #inSalesforce
Update selected records at once in a data table (find matched records and update based on criteria) using Screen Flow #inSalesforce
Prerequisite: EmailVerified on Contact to be update to true
Create a screen flow
Email drag drop - UserEmail, Required = True
GET:
getMatchingContacts
Contact object
Criteria:
Email equals UserEmail.value
All Records
Decision:
NullCheck
NotNULL:
getMatchingContacts isnull false
NULL: **(screen)
Screen:
data table drag drop - Matching Contacts
MatchedContacts
Use Label as table Title
Source: getMatchingContacts
Row Selection: Multiple
Column: Name, Email, EmailVerified
Loop:
Collection: MatchedContacts.selectedRows
Assignment: (note: one assignment for updating and for storing to Collection variable)
Update Opt Out
loopThrough.EmailVerified equals True
New variable - Collector (Multiple) Add loopThrough
Update:
Collector
**
Screen:
No matched contacts found
Place the flow on the home page and test
Comments
Post a Comment