function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michelle Chaplin RegalMichelle Chaplin Regal 

Can you search for a record ID in a flow variable?

I'm trying to create a decision node on my flow to determine if a contact ID is in a list of contact ID's I have. I'm using the following logic:

Variable Collection  CONTAINS SObjectName.Id

I have also tried using a Variable instead of a Variable collection that is just a comma-separated text field with all the Contact IDs, but neither one seems t be working.

Is there a way to do this?
Vasani ParthVasani Parth
rst dreate a Flow Variable linked to an SObject.  You do this by selecting SObject variable from the Default Value selection box.  Data type as Text and Input/Output Type as Input and Output.

Then  the URL on the custom button will look like: /flow/Get_Inquiry?InquiryID={!Inquiry__c.Id}

Please mark this as the best answer if this helps