Tests the inventory data pipeline end-to-end.
Basic GET to see what version of the script is running.
GET ?tab=inventory ā checks if the sheet tab is there.
Sends a POST matching the exact format your inventory app uses.
Reads the inventory tab to confirm the test row was saved.
This sends a payload structured EXACTLY like your inventory app's invCloudPost() function does.
Confirms compliance still works alongside inventory.
Test A says "Unknown action" or version 1.0: Old script is still deployed. Replace code ā Save ā Deploy ā Manage deployments ā Edit ā New version ā Deploy.
Test B says "Tab not found": Run initSheets in Apps Script editor.
Test C fails but Test A passes: The handleDataWrite function isn't in your deployed code. You need to create a NEW version deployment.
Test E returns success but nothing in sheet: Check if the inventory tab headers match what the script expects. Open the sheet and check row 1.