by Variance InfoTech Pvt Ltd

Webhooks allow communication with third-party applications by sending instant web notifications every time an event occurs in your SuiteCRM. With the Webhooks Integration, you can configure HTTP URLs and associate them in workflow rules to automate the entire notification process.

Free 30 day trial
Try it Now

#3809 - DELETE flow / parent relation

In Progress General Question created by elzinga Verified Purchase a year ago

Hi, I have some general questions:

1) For our prioject we also need to call a webhook on delete. It seems that this does not work as expected (I can see a deleted atribute in the data)? 2) If an event occurs on a child record / module in a relation, could we include the parent ID in the list of attributes? Maybe this is more a module related issue, I'm not sure;

Regards,

Martijn

  1. varianceinfotech member avatar

    Variance InfoTech Pvt Ltd Provider

    a year ago

    Hello,

    Our Plugin supports Outgoing Webhook means post the request from SuiteCRM to any other third party application.

    1) For our project we also need to call a webhook on delete. It seems that this does not work as expected (I can see a deleted attribute in the data)? - On which basis you want to call webhook on delete? SuiteCRM workflow trigger based on the Record Creation and Modification.

    2) If an event occurs on a child record / module in a relation, could we include the parent ID in the list of attributes? Maybe this is more a module related issue, I'm not sure; - You want to display the Relate Field in the Field Mapping Dropdown in Workflow Module for Webhook Action?

    Regards, Variance Infotech PVT LTD

    • elzinga member avatar

      elzinga Verified Purchase

      a year ago

      Hi,

      Thanks for your reply.

      1) If a record is "deleted", the "Deleted" attribute on Action modification (broad definition) implies that that delete might trigger the workflow (as a modification) and that data is also available in the WorkFlow trigger, but with a Deleted inidication? 2) What we have now is relationship based not relate field. The relation attribute "Contacts" is available in the webhook attribute list. But, it returns only a textual representation e.g "Martijn Elzinga" for the contact (which may not be unique enough), it would be convenient to access the relation attributes, or at least the parent ID.

      Regards,

      Martijn

  2. varianceinfotech member avatar

    Variance InfoTech Pvt Ltd Provider

    a year ago

    Hello,

    1) If a record is "deleted", the "Deleted" attribute on Action modification (broad definition) implies that that delete might trigger the workflow (as a modification) and that data is also available in the WorkFlow trigger, but with a Deleted indication? - Currently our Extension supports only POST/PUT action. For, Delete we need to modify as per your requirement. Also SuiteCRM supports Delete trigger for Workflow only if record delete from the Listview of the Module.

    2) What we have now is relationship based not relate field. The relation attribute "Contacts" is available in the webhook attribute list. But, it returns only a textual representation e.g "Martijn Elzinga" for the contact (which may not be unique enough), it would be convenient to access the relation attributes, or at least the parent ID. - If you have any Relate Field in the Module then you can configure in the Field Mapping part. It'll post the textual representation and id of that record as well.

    Regards, Variance Infotech PVT LTD

    • elzinga member avatar

      elzinga Verified Purchase

      a year ago

      Hello,

      1) POST / PUT is fine for us, we hook the event + data in our own (webhook)system and use attributes to distinguish CRUD 2) I have no relate fields, we use relationships

      Regards,

      Martijn

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...