Usecase:
Script to duplicate the request in a single click using Callback Function and Page Script.
Steps to configure:
Download the attached files
Login to SDP and navigate to Admin > Developer Space > Global Function > Copy & Paste the attached GF_4 - Configuration.txt and save it with a name.
Goto Admin > Developer Space > Global Functions > New > Copy & Paste the attached GF_addAttachment.txt and save it with a name.
Goto Admin > Developer Space > Callback Functions > New > Copy & Paste the attached duplicateRequest_CBF.txt and save it with a name.
Update the global function name as per your instance. In my case, its configuration() and GF_addAttachment()
Copy the generated URL, this has to be updated in the FAFR script.
Goto Admin > Page Script > New > Event: Request Details Page > Execute Script
Now the newly added button will be visible in Request Details Page.