Add Order - WhatsApp
Update enterprise
// adding prompt setting to add order from WhatsApp
ensure root
promptMap.fieldSeparatorSet: ["|", "/"]
promptMap.acceptPromptViaEmail: true
promptMap.acceptPromptViaWhatsapp: true
Set frontend
1. Prompts for WhatsApp
// adding prompts that can add the order from WhatsApp
ensure prompt PromptAddOrder1
action: AddOrder
promptText: "o ${f:OfficeRef}${sep}${f:TeaCount}${sep}${f:CoffeeCount}"
reviewBeforeExecuting: false
permissionRoles: [DeliveryBoy]
sendSuccessDeeplink: true
ensure prompt PromptAddOrder2
action: AddOrder
promptText: "o${sep}${f:OfficeRef}${sep}${f:TeaCount}${sep}${f:CoffeeCount}"
reviewBeforeExecuting: false
permissionRoles: [DeliveryBoy]
sendSuccessDeeplink: true
ensure prompt PromptAddOrder3
action: AddOrder
promptText: "Add order ${f:OfficeRef}${sep}${f:TeaCount}${sep}${f:CoffeeCount}"
reviewBeforeExecuting: false
permissionRoles: [DeliveryBoy]
sendSuccessDeeplink: true
ensure prompt PromptAddOrder4
action: AddOrder
promptText: "Add order${sep}${f:OfficeRef}${sep}${f:TeaCount}${sep}${f:CoffeeCount}"
reviewBeforeExecuting: false
permissionRoles: [DeliveryBoy]
sendSuccessDeeplink: true
2. Deeplink for prompts
// deeplinks for valid and invalid prompt submission from WhatsApp
ensure deeplink DeeplinkOrder kind: spreadsheetRow
visibilityConstraint: enforceEnterpriseUserSignIn
creationRoles: [DeliveryBoy]
expiry: noExpiry
showEnterpriseImageInLinkPreview: true
showHeader: true
showEnterprise: true
transparentHeader: true
spreadsheet: OrderBook