Update Issue record due date to linked policy exception due date

venkat96
Tera Contributor

Hello,

I have a requirement to auto update Issue record (sn_grc_issue) due date value to linked Policy exception record due date field (sn_compliance_policy_exception). 

 

venkat96_0-1746182547066.png

 

Can you help to fulfill this requirement.

 

Thanks

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@venkat96 

when should it be copied?

Should it be copied when Policy exception record is created?

If yes then you can simply use this

current.due_date = current.issueField.due_date; // give the correct due date fields from both tables and the issue field which refers issue table

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

@Ankur Bawiskar 

 

Thanks for the reply. Yes when policy exception created from issue date should be updated. can you provide more details where i need to use suggested code,

 

Thanks

@venkat96 

before insert business rule on policy exception

I hope you will change the fields accordingly in the script I shared

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