{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":25638,"path":"it-asset-management/hardware-asset-management/using-scratchpad-for-provider-updates.md","title":"Use the Scratchpad to complete your request fulfillment tasks","bundle":null,"doc_type":null,"release":"australia","body":"\n# Use the Scratchpad to complete your request fulfillment tasks\n\nAs a provider, use the Scratchpad feature of the Service Exchange application to send updates to the ServiceNow instance of your consumer while performing the request fulfillment tasks.\n\nThe Zero Touch request flow requires you to send Scratchpad updates to your consumer's ServiceNow instance when you complete the confirmation and shipment tasks successfully. Based on the updates that you send, the Zero Touch flow progresses on your consumer's ServiceNow instance.\n\nYou must include the code specific to your tasks in the **PSBScratchpadUtil** API. For more information, see [Using the Scratchpad for Service Exchange tasks](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/service-exchange/service-bridge-v2-scratchpad.md). Confirm that the Scratchpad codes associated with the tasks of your request fulfillment flow are in the following format.\n\n## Sample code for request confirmation\n\n```\nvar scratchPadJSON = {\n  \"orderStatus\": \"confirmed\"\n};\nvar value = JSON.stringify(scratchPadJSON); \nvar rtGR = new GlideRecord(\"sn_sb_pro_provider_task\"); \nrtGR.get(<ProviderTaskID>); \nif (rtGR.isValidRecord()) { \n  var util = new sn_sb_pro.PSBScratchpadUtil(); \n  util.update(rtGR, \"confirmation\", value); \n}\n\n```\n\nWhen you confirm a provider task, a Scratchpad update with the order status as **Confirmed** is sent to your consumer's ServiceNow instance.\n\n## Sample code for shipment\n\n```\nvar scratchPadJSON = {\n\"orderStatus\": \"partially_shipped / fully_shipped\"\n\"orderLineItems\" : \n  [{ \n    \"status\": \"shipped\",\n    \"trackingNumber\": \"123\",\n    \"carrier\": \"C1\",\n    \"modelNumber\": 'MD322LL/A',\n    \"assetTag\": 'P1000177',\n    \"serialNumber\": 'P1000177'\n  },{ \n    \"status\": \"shipped\",\n    \"trackingNumber\": \"123\",\n    \"carrier\": \"C1\",\n    \"modelNumber\": 'MD322LL/A',\n    \"assetTag\": 'P1000178',\n    \"serialNumber\": 'P1000178'\n  }\n]\n};\n\n```\n\nWhen you ship the requested items and confirm the shipment, a Scratchpad update with the following details are sent to your consumer's ServiceNow instance:\n\n-   **Order status**: Depending on how the provider has shipped the assets in a request, the Order status can have the following values:\n\n    -   **partially\\_shipped**: Assets in the request are shipped through multiple shipments.\n    -   **fully\\_shipped**: All the assets in the request are shipped.\n    For example, consider that a requester has requested for five assets. If you ship only three assets though a shipment, you should pass the **Order status** as **partially\\_shipped**. When you ship the remaining two assets, you should pass the **Order status** as **fully\\_shipped**.\n\n-   **Tracking number**: Every shipment has a unique tracking number.\n-   **Carrier**: The name of the carrier through which the provider shipped the assets.\n-   **Model number**: Unique model number of the asset that is shipped.\n-   **Asset tag**: Unique asset tag of the asset that is shipped.\n-   **Serial number**: Serial number of the asset.\n\n**Note:** The shipment update for consumable assets doesn't include Asset tag and Serial number details. If there are multiple shipments, the information of the asset in a shipment must be sent to your consumer's ServiceNow instance only once.\n\n"}}