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
Jagadeesh AdaveniJagadeesh Adaveni 

Autonumber Generation

Hi All,

I have two field calld TrackingNumber__c(Text) and Status__c, My requirement is whenever staus field is updated as"Supplied" then one Track Number should be generated automatically. How can i achieve. Give me sample code if it is required.

Thanks,
Jagadeesh.
Vijay NagarathinamVijay Nagarathinam
Hello,

Try this it will work in my org.

Create one autonumber field in your object, hide the field in pagelayout.

Then create a workflow to achieve when a status equals to Supplied means, then create a field update to populate the autonumberfield to tracking number.

I think it will be helpful for you.