copy/populate the Document ID on a Manual Approver record of change request

MR1
Tera Contributor

Hi All,

 

We are adding the manual approver to the change request. But the document ID of manual approver record is empty.

 

Approval record via workflow vs Manual approval record. 

Approval from workflow.PNG

Manual Approver

Manual approval.PNG

 

1 ACCEPTED SOLUTION

You have to add one more line in the script to have the correct source for the sys_id

 

SebastianDL_0-1668190521447.png

 


If I helped you with your case, please click the Thumb Icon and mark as Correct.


View solution in original post

9 REPLIES 9

Aman Kumar S
Kilo Patron

Hi @MR1 ,

Check below client script  UI policy which would be causing this.

Check for presence of new document_id field. If it is not on form, display the legacy sysapproval form

link:

https://InstanceName.service-now.com/sys_ui_policy.do?sys_id=9f3d01d33b211000dada82c09ccf3dbb&syspar...

 

Best Regards
Aman Kumar

MR1
Tera Contributor

Thanks!

That was helpful

how can we copy the sysapproval value to the document_id on a approval record?

What mechanism are you using to add a NEW (manual) individual approval ?

I am asking because most likely you created this feature (customized) and I don't have it on an out of the box instance.

Anyway, I would suggest you to go into the mechanism you created (UI action, etc.) to ensure that you are pushing a value into the document_id field, copying it from the sysapproval field.

Maybe something like current.document_id=current.sysapproval;


If I helped you with your case, please click the Thumb Icon and mark as Correct.


Hi Sebastian,

 

The mechanism is simple, Manual approver can be added via the "Edit" button.  What logic and where it should be used?

 

MR1_0-1668188403731.png

 

Thanks