Sometimes you need to forward a ticket from one Helpdesk instance to another and save all ticket details.
This is possible to achive using Helpdesk Power Automate connector.
In my example, I’ll work with two Helpdesk instances: HD1 and HD2. The goal is to copy a selected ticket with all comments to the target Helpdesk.
Additionally, we’ll add a custom column “Another HelpDesk” and configure the Helpdesk trigger not to send email notifications if the value of the column is set to “Yes”. This is needed to prevent spamming of an original requester.
We’ll add a custom Yes/No option to the ticket list and activate itwhen a ticket goes to another HelpDesk. By default, the option is set to No.
We’ll need to create Helpdesks API keys for each Helpdesk instance.
In my case, I use two Helpdesks to forward tickets, so I’ll create Helpdesk API keys for each of them.
Now let’s move further and create a Microsoft flow to forward tickets.
Microsoft Power Automate is a very flexible instrument to integrate different services into one flow and migrate data among them.
Create a flow that will be started on a selected list item and add a drop-down input to select the HelpDesk you need.
Get the source ticket using its ID from the dynamic content and all its comments using HelpDesk actions.
Add Switcher to the flow to cover all possible values.
In our example, we have 2 Helpdesks. Let’s add 2 cases for this and use Create a ticket action from the Plumsail connector.
For each Helpdesk case I select the API key
5.Select dynamic content from Get a single ticket action.
Use this expression to get the initial comment from the source ticket:
first(outputs('Get_all_comments_for_a_ticket')?['body']).body
Finally, start the flow from the Helpdesk interface.
This is the whole flow