Update multiple records at once on the datatable (find matched records and update based on criteria) using Screen Flow #inSalesforce

Update multiple records at once on the datatable (find matched records and update based on criteria) using Screen Flow #inSalesforce

Prerequisite: EmailVerified on Contact to be updated 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: View Only

Column: Name, Email, EmailVerified


Loop:

Collection: MatchedContacts


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