The flow
Starts it 8Logic 8Service 6
The steps in the order they run, from what starts it.
- 1Portfolio Webhook TriggerWebhookStarts it
- 2Normalize Input DataSetLogic
- 3Validate Amount & PriceIfLogic
- 4Route by Action (Add/Update/Delete)SwitchLogic
- 5Error: Invalid Amount/PriceRespond To WebhookStarts it
- 6Check Asset Exists (Add)Google SheetsService
- 7Update Existing AssetGoogle SheetsService
- 8Check Asset Exists (Delete)Google SheetsService
- 9Error: Missing ActionRespond To WebhookStarts it
- 10Error: Invalid Action ValueRespond To WebhookStarts it
- 11Asset Exists? (Add)IfLogic
- 12Asset Found?IfLogic
- 13Asset Found? (Delete)IfLogic
- 14Add New AssetGoogle SheetsService
- 15Error: Asset Already ExistsRespond To WebhookStarts it
- 16Combine All Operation OutputsMergeLogic
- 17Error: Asset Not FoundRespond To WebhookStarts it
- 18Delete Asset RowGoogle SheetsService
- 19Error: Asset Not Found1Respond To WebhookStarts it
- 20Fetch Full PortfolioGoogle SheetsService
- 21Calculate Portfolio ValueCodeLogic
- 22Final Response to UserRespond To WebhookStarts it