I have encountered an issue with how the email is being sent for a postponed event

Created on 11 July 2023, 12 months ago
Updated 13 July 2023, 12 months ago

Good day, community. I have encountered an issue with how the email is being sent for a postponed event. I have a 'Draft' status, which triggers the entire action, but I need to stop the event if the status is 'Completed'

πŸ’¬ Support request
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Sharik_2023
  • Issue was unassigned.
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    When processing the scheduled task (your bottom event) you need to load the order and check the status. If that's Completed, then do not send the email.

    BTW, if you assign issues to yourself, that means that you want to work on it yourselves. But if you want somebody else to respond to it, then you may want to leave the unassigned value there.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    Good day, thank you for the advice, but I'm having trouble downloading the order in the lower event. Perhaps you have some suggestions regarding this.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    You can either forward the order itself, similar to how you forward the email address to the queued task. Or you only forward the order ID to the queued task and then use the "Load Entity" action plugin to load the order entity into a token during task processing. I'd prefer the latter approach.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    Thank you for your response. I tried implementing your suggestion, but I couldn't achieve the goal. I attempted to display the status value using 'Display a message,' but I didn't get any result. Could you please take a look at my code and tell me what mistake I made?

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    When queuing your task, you currently only forward the test token. You should also forward the orderid token as well.

    Then, the Entity: Load action should load from "Type and ID", not from current scope. Then you need to select the entity type and provide the [orderid] token in the "Entity ID" field. The field "Entity" remains empty.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    Thank you for resolving the issue

  • Status changed to Fixed 12 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024