{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":25443,"path":"it-asset-management/hardware-asset-management/creating-script-include-for-provide-ztr.md","title":"Create a Script Include to transform Scratchpad updates from the provider","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create a Script Include to transform Scratchpad updates from the provider\n\nTo transform Scratchpad updates sent by your provider into a format required for the Zero Touch request flow, you must have a Script Include with the method **transformScratchPadToHAMZTRFormat**.\n\nIn the confirmation and shipment stages of the Zero Touch request flow, your provider should ideally send Scratchpad updates to your ServiceNow instance in a particular format. For details, see [Use the Scratchpad to complete your request fulfillment tasks](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-asset-management/hardware-asset-management/using-scratchpad-for-provider-updates.md). However, if your provider's Scratchpad update isn't in the required format, you can transform it by using a Script Include with the method **transformScratchPadToHAMZTRFormat**.\n\nConsider the following points when you create the Script Include:\n\n-   The Script Include is accessible from the Asset Management Common application scope by adjusting the following settings on the application resource record:\n    -   Set the **Accessible from** field to **All application scopes**.\n    -   Set the **Caller Access** field to **None** to make sure the caller access isn't restricted.\n-   Define the method **transformScratchPadToHAMZTRFormat** in the following format:\n\n    ```\n    /*** Input to the following method is scratchpad value of type JSON ***/\n    transformScratchPadToHAMZTRFormat: function (input) {\n    // Logic to transform the input to the expected format\n    // This method should return a value of type JSON with expected format\n    }\n    ```\n\n\n"}}