Testing the Complete Setup
Once all four flows are active, test the full lifecycle:
-
Create an Account with a
GDriveFolderId__cpointing to an existing Google Drive folder. -
Create an Opportunity under that Account. Verify that:
- A subfolder
Opportunity - <Name>appears in the Account's GDrive folder. - Inside the subfolder, a copy of the Sales Calculator template exists, named
<Name> - Sales Calculator. - The spreadsheet contains all three sheets: Sales Calculator, Settings, and the hidden Opportunity Products sheet.
- The Opportunity's
GDriveFolderId__candSalesCalculatorSpreadsheetId__cfields are populated.
- A subfolder
-
Add products to the Opportunity. For each product, verify that:
- A new row appears in the Opportunity Products data sheet with the correct Id, Product name, Qty, Unit Price, Discount %, and Default Unit Cost.
- The Sales Calculator sheet updates automatically - the product profitability table shows the new line, KPIs recalculate, and charts reflect the new data.
-
Edit a product (change quantity, price, or discount). Verify that the corresponding row in the Opportunity Products sheet updates and the Sales Calculator recalculates.
-
Remove a product from the Opportunity. Verify that the row is deleted from the Opportunity Products sheet and the Sales Calculator adjusts accordingly.
-
Test the what-if scenarios on the Sales Calculator sheet: type a number (e.g.
5) into the Extra Discount % input cell and verify that the scenario values recalculate, showing the impact on deal value and commission.
All sync flows run asynchronously after the Salesforce transaction commits. There may be a short delay (a few seconds) before changes appear in the spreadsheet.
To inspect the Opportunity Products sheet during testing, right-click any sheet tab in Google Sheets and select Show sheet > Opportunity Products. You can hide it again after verification.