Salesforce Free Developer >

Chapter 4 - SOQL >

SOQL Variable Binding in APEX

SOQL Variable Binding in APEX

 

 

 

 

 

 

SOQL queries support Apex variable binding. You can use an Apex variable and filter SOQL records against the value of that variable.

string strName = ‘John Snow’;

List<Position__c> positionList = [SELECT Name

FROM Position__c  WHERE Name =: strName];

Download Study Material

Get access to exclusive study material for Salesforce Certification and ace your exams!

Our Salesforce Certification Courses

Hey there! Glad you made it through our Salesforce Developer Training for beginners. But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.

Post a Comment

Your email address will not be published. Required fields are marked *