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
ManvithaManvitha 

Apex method logic help

Hi All,
 
I am new to  apex programming...so needed some help...
I have created a custom object which has custom text field For paricular record type of custom object i need populate this field based on lookup relations i have with other object 

ex: On Account obj =custom field is  Outletid is field  and record type is personal account , the custom field should be populated from Organisation objects custom field ORGID

Any help or guidance on this will be great !!!
Thanks in advance
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Manvitha,

Can you confirm based on which logic it should be populated? Because there may be many organization records so based on which it should fetch it and save?

Thanks,
 
ManvithaManvitha

Hi @Sai Praveen ,

custom object record type should be "personal account" and organisation_Name  field which is the lookup of Organisation shouldn't be NuLL only these criterias ,&& no such criteria for Organisation .
Thanks in Advnc.