Find your content:

Search form

You are here

Visual work Flow: Display multiple records via Record lookup

 
Share

We have a requirement where in we need to search for duplicate contacts ( based on contact email , first name, last name etc). Once all duplicates are listed to the user , then they can choose the valid one. We were hoping to use flow using Record lookup functionality. Is there a way we can do a record lookup and list the resultset in a screen element.


Attribution to: Srinivasu Julakanti

Possible Suggestion/Solution #1

Well actually there is a way to find all of the duplicate records in flow. You could use this by populating a a Dynamic Choice. You could populate all the records in the picklist that are duplicate. Create a for loop and have them deleted if you wanted.


Attribution to: CodeMonger

Possible Suggestion/Solution #2

Unfortunately the Record Lookup element only returns one record, see the implementation guide here. See the Record Lookup section, which says 'The Record Lookup element ultimately returns only the first record from the filtered results'.

You might be able to achieve what you want with a Flow ApexPlugin making the query and providing a list back to the Choice display element. Though I suspect your wanting to be code free here.

I am not sure if you are or have searched but there is quite a few duplication checkers / removal tools for Salesforce. Try searching AppExchange.


Attribution to: Andrew Fawcett
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/3905

My Block Status

My Block Content