• Resolved janiklipke

    (@janiklipke)


    Hello Jetpack CRM Team,

    I’m reaching out to discuss an issue I’ve been encountering with the Jetpack CRM API when attempting to create an event (task) using the create_event endpoint.

    Description of the Problem:

    Whenever I set the notify parameter to 24 (intending to receive notifications 24 hours before the event), the API consistently returns the value -1 for the notify parameter, which, as per my understanding, means ‘never notify’.

    Here’s a snippet of the JSON payload I’ve been sending:

    jsonCopy code

    { "title": "Follow-Up Samples", "customer": <CUSTOMER_ID>, "to": "10/06/2023 17:00:00", "from": "10/06/2023 16:00:00", "notify": 24, "complete": 0, "owner": 1 }

    The response I get (truncated for clarity):

    jsonCopy code

    { "title": "Follow-Up Samples", "customer": <CUSTOMER_ID>, "to": "10/06/2023 17:00:00", "from": "10/06/2023 16:00:00", "notify": -1, ... }

    Additional Information:

    • I’m using the latest version of the Jetpack CRM plugin.
    • I’ve cross-checked the documentation and, according to it, the value 24 should be valid for the notify parameter.

    Would you kindly provide some insight into this behavior? I’m curious to know if it’s a known issue or if there’s something I might be missing in my request.

    Thank you for your attention to this matter, and I look forward to hearing back.

    Warm regards,

    Janik

Viewing 1 replies (of 1 total)
  • Hi @janiklipke ,

    I’ve looked into this issue and noticed a bug with our notify parameter.

    Internally, we changed how we handled notification to creating reminders instead. There is a portion of code in api/create_event.php that converts notify to create a reminder. However, this conversion is not working and notify always reset to -1.

    Unfortunately, I can’t think of a workaround at the moment.

    I have created a bug report in our internal repository to address this issue. Thanks for reporting it!

Viewing 1 replies (of 1 total)
  • The topic ‘Issue with notify parameter not setting in the create_event API endpoint’ is closed to new replies.