/sfdc-dynamic-soql

An Apex class that allows you to run any SOQL query within Salesforce Flows

Primary LanguageApex

Salesforce Dyanmic SOQL in Flow

This class allows you to run a dynamic SOQL query in Flow, and have the resulting collection of SObjects returned in Flow.

Example Queries:

  • SELECT Id, ContactId FROM User
  • Select CaseNumber, Status, Id FROM Case WHERE Status = 'Open'
  • Select Id from Opportunity LIMIT 5
  • Select Id, Field2 FROM Custom_Object__c LIMTT 20

Flow Component

image