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
Ruturaj R DRuturaj R D 

Want to reset standard autonumber field every time when new record is created.How to achieve this?Please Help

I have two custom objects namely Parent__c and its related child object child__c.There is a one standard autonumber field on both objects.So my scenario is,when new parent record is created child record must start from 1
Eg.
Parent-1
Child-1
Child-2
Child-3

Parent-2
Child-1
Child-2
Child-3

But in my case Child Autonumber field is continuously getting incremented after each parent record is created.
So,How to achieve Eg given above?
SandhyaSandhya (Salesforce Developers) 
Hi,

Refer below thread for similar discussion.

https://success.salesforce.com/answers?id=90630000000goVJAAY
 
Best Regards,
Sandhya
Ruturaj R DRuturaj R D
Thanks Sandhya,But I am not getting what logic I will perform in WorkFlow Rule
Stephen Glaros 7Stephen Glaros 7
Hello - I have the same issue - I'd like to have the auto-number of each child reset to "XX-1" when a new record is created. I read through the information on the URL referenced but don't see specifically how to implement the solution in Classic.

Any feedback or comments would be greatly appreciated. Thanks - Stephen