In this last step, we will convert all of Zendesk-deprecated targets to webhooks in Myndbend™ Process Manager. We will update all of the triggers that are using the action Notify target > MPM Target to use our webhook.
Addressing one target at a time, navigate to Zendesk Admin > Object and Rules > Triggers:
We need to find all of the triggers that are using the chosen target. The easiest way to do this is to use Zendesk filters to narrow down the list of triggers. At the top of the page, change Filter: Name to Filter: Actions. A new field will be shown; in that field, select Notify Target:
Now you'll be able to see all of the triggers that use a specific target. Select one of the targets, and update all of the triggers that use that target. In this case, we'll use MPM Add Approvers Target:
As you can see, we have one trigger that needs to be updated for this target. Open that trigger, and in the Actions section, you'll find the use of that target. In our case, it looks like this:
We need to update this action so it uses our MPM webhook. Start by adding a new action, Notify Active Webhook > MPM Webhook:
Open up our Webhook syntax generator. This will help you generate the syntax for the new webhook. Alternatively, if you want to learn more about webhook technology, you can start here.
On the webhook page, select the target and enter the trigger message you are using and click generate. It will generate what you need to post in JSON Body for the webhook. In our example, it will look like this:
Copy the new JSON body, and add it to your Action > Notify Active Webhook:
The last step in this trigger update is to remove the action that was notifying the target. Once you remove that action, click save. We've just updated the trigger! 🎉
Repeat this process for all of the targets that are in the filtered list for the specific target. Once there are no triggers left in the filtered list for a specific target, time to remove that target. You can do that by navigating to Zendesk Admin > Apps and integrations > Targets:
Find the target you used in filtering, hover over it, and you will have the option to deactivate it. Click deactivate.
Once the target is inactive, you'll find it at the bottom of the page, under the Inactive targets. Hover over the target, and click delete.
You've now updated your flow for one of the MPM targets. Remember repeat this process for all of the MPM targets that you are using.
Tip: Don't forget to remove the filter you used to identify triggers once you are finished.