Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
addfreshdeskservice.PNG
addglobalerrorhandler.PNG
addlogger.PNG
completeworkflow.PNG
createworkflow.PNG
cumulocityalarm-freshdesk.json
cumulocityalarmtofreshdesk.zip
cumulocityconnection.PNG
cumulocitytrigger.PNG
errortesting.PNG
freshdeskconnection.PNG
globalerrorhandlermapping.PNG
loggermapping.PNG
mapping.PNG
readme.md
selectfreshdeskaction.PNG
successtesting.PNG

readme.md

Cumulocity Alarm To FreshDesk Ticket with Global Error Handling

This example shows how easy it is, to create the freshdesk ticket for each device alarms created in cumulocity.

Prerequisite

We should have the device added to cumulocity SaaS and an alarm should be created for device health monitoring We should have a FreshDesk access to create the tickets

Setup

  1. Go ahead and get started creating a blank workflow. If you need a refresher on how to get to this point, this guide can be a great introduction. Your starting point should resemble CreateWorkFlow

  2. Add the cumulocity trigger by editing the start button and selecting the cumulocity trigger from the search result.CumulocityTrigger

  3. Enter the cumulocity connection details and also trigger details. Select Trigger as Alarm and Device ID.CumulocityConnection

  4. Add the FreshDesk service in the canvas by searching under available services.AddFreshDeskService

  5. Click on the small settings icon on the freshdesk service to add the action "create ticket". SelectFreshDeskAction

  6. Add the fresh desk connection details to create the connection to freshdesk.FreshDeskConnection

  7. Now map the required data from cumulocity alarm to freshdesk ticket. Do not forget to map the required fields.Mapping

  8. We have a cool feature which is logging where you can log the necessary unique data so that you can visualize the data in monitoring workflows. Search for logging and drag and drop the logging service to canvas.addlogger

  9. Map the required fields in the logging. In the below example we have mapped the complete cumulocity alarm information.AddLogger

  10. This completes the workflow and connect to stop step. We can add the global error handler for the complete workflow. If any error happens in the workflow is catch the error by the global error handler.AddGlobalErrorHandler

  11. If any error happens we create one more ticket in the freshdesk so that necessary actions can be taken. Do the mapping for freahdesk ticket.GlobalErrorHandlerMapping

  12. This is the complete workflow looks like. completeworkflow

  13. We can test the success scenario by creating the cumulocity alarm for the device added. SuccessTesting

  14. We can test the negative scenario by not passing the required field while creating the freshdesh ticket. This scenario will invoke the global error handler.SuccessTesting

You can’t perform that action at this time.