Cancellation for orders placed

Hi All,
I'm creating an app where customers can place orders from their comfort zone. After placing the orders customer can cancel the order (say upto 5mins). Can anyone suggest is there any time function available to achieve this.

Thanks in Advance!!!

Hi @Pras-495b :smiley: :honeybee:

You can create this functionality using an automation, by creating a time-based automation that will change the status after a certain amount of time. Here's how you'd set it up:

Here's a table of statuses:

And a table of orders:

In your app, you can create a button that first submits the order with a "Pending" status:

=FINDROW(OrderStatus, "OrderStatus[Status]=%", "Pending")

Then set up an automation that triggers after a certain amount of time from when the order was submitted (5 minutes for your use case):

For the action, have it overwrite the status to confirmed:

Publish the automation, and any new order that is submitted will change to confirmed after the specified time:

In your app, you can also set a visibility on a cancel button, so it only shows if the order is still in a "Pending" status:

I'll note too that time in Honeycode is in UTC, so if you'd like to convert to a specific time zone, you can check out this article to see how: UTC & Time Zone Conversion

Hope this helps and let us know if we can help any further! :slight_smile: :honey_pot:

Thanks for the quick reply @Alyssa :smiley: Got it!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.