How to generate document for an HR case only after the approval is completed

ranadip2
Tera Contributor

Hello all,

 

We need an overview on How to generate document for an HR case only after the approval is completed. When we put the case options (Automatically Create Draft Document) in HR service then the document is automatically generated and attached on the case without approval completion. The requirement is to create the document only once the approval is approved. Any help in this matter will be highly appreciated. Thank you in advance!

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@ranadip2 

I doubt you can alter this behavior.

Did you check which script is responsible to generate that document?

try to alter that after approval completion

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

Thanks for the reply. Actually, we are unable to find the script which is responsible for that behavior. Could you please share that if it is handy

@ranadip2 

I believe it comes from some platform level or some OOB script

Recently similar question was asked but no concrete solution

Document generation based on HR Case approval 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Rajender1
Mega Sage

Try using hr service fulfillment type as Service activity and then add first task as approval and then second task is generate document with order 2. This should work.