+ Start a Discussion
hramanihramani 

record id help

I have a record whose id (let's say "https://cs5.salesforce.com/006O0000003Jd6R" ) needs to be extracted and stored in a field of the same record everytime a new record is created and the same should happen if an old record is edited and saved.

How do I go about doing that.

Pls help.

 

Shiva Ramesh @ xcdhrShiva Ramesh @ xcdhr

Could you explain more

Shiva Ramesh @ xcdhrShiva Ramesh @ xcdhr

If you want to store the recordID in same record. You can use formula field to store recordId in a same record. while creating and editing a record formula field will execute everytime.

hramanihramani

can u give me an idea how the formula field would look like. probably an example here would be helpful.

Shiva Ramesh @ xcdhrShiva Ramesh @ xcdhr

Go to object -> Click New under custom field -> select Formula -> Enter Field Label and select Text in Formula Return Type -> Click Insert Field button -> select Record ID in available field list and click Insert button -> and then save formula field