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
yaswanth kumaryaswanth kumar 

how store the address of a record using triggers in salesforce

Ravikant Saini 1Ravikant Saini 1
First create an url field on custom object and save id in trigger like this in it.
Custom_Object__c.Field_Name = Url.getSalesforceBaseUrl().toExternalForm()+'/'+Record.Id;
insert Custom_Object__c;