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
Puja khetanPuja khetan 

first time submitted time recording for approval process

I am trying to record  first time submitted time in approval process .
created field "first time submitted" and added it as field update during submit action .
now issue is ,when request rejcted and starting again from first step during resubmittion  ,first time submitted time as well updated as it is storing resubmitted time however i want ,it should consider "first submitted time"

Please advise.
VinayVinay (Salesforce Developers) 
Hi Puja,

Try to reset value using formula or field update when you reject any record.

Also, still approval date of submission of the initial date would be there.

You might need to build a custom approval process for the same.

https://apexcoder.com/2016/04/25/approval-process-using-apex/#:~:text=Approval%20process%20is%20an%20automated,approve%20or%20reject%20the%20record.
https://www.jitendrazaa.com/blog/salesforce/dynamic-approval-process-based-on-the-apex-and-trigger/
https://salesforcescool.blogspot.com/2018/11/submit-approval-process-using-apex.html

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar