This is an UI action script written on the [incident] table in ServiceNow. This helps to generate PDF file with the current incident record details and attaches it to the same record.
UI Action Details:
Name: Attach INC Details table: incident Active: true Show Update: true Form button: true Condition: /as per requirement/ Script: check the [generatePDFWithDetails.js] file
Output: