Scenario
User wants to print custom Auto-Generated Numbers in the PDF Transactions that goes through Tech Service Customization – Advanced Approval Bundle.
Solution
To use Custom Auto-Generated Numbers to be printed in your Transaction records that goes to the Tech Service Customization Bundle – Advanced Approval, you may follow the steps below:
1. Navigate to Customization > Scripting > Scripts
2. Filters: Select Workflow Action
3. View “NSTS | GAW – Send Email WA”
4. In the Scripts subtab, click Edit
5. Find the script below along line 150 to 170:
var transNo = objTrans['transno'];
6. Replace it with the script below:
var transNo = objTrans['tranid'];
7. Click Save
8. Navigate to Documents > Templates > Email Templates
9. Edit Advanced Approvals – “HC_PENDING_APPROVAL_BODY”
10. Paste the code below in the Subject field:
{typeLabel} # {transactionnumber} is Pending Approval
11. Click Save