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
manoj Kumar 270manoj Kumar 270 

how can i pass a custom field value into a apex class?

i have a custom filed Account Id in which i get the Account ID. I want to pass this value in to a apex class.
I am new for Apex code, Can any one help me?
Dushyant Kumar 10Dushyant Kumar 10
Hi Manoj,

Can u please explain more, what do u mean by passing value.
You can access sObject field values by directly query them:
List<Account> acc = [SELECT Id,Account_Id__c FROM Account LIMIT 5];