+ 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;