Skip to main content
Solved

Create a new ticket in Assyst from Power Automate flows

  • Sep 13, 2024 10:38 AM UTC
  • 6 replies
  • 489 views

Forum|alt.badge.img+1

Hello,

 

I have created a Power Automate flow and currently I can send an email to the servicedesk which will create a ticket in Assyst but then they need to manually assign the ticket to our queue.

 

I would like to know if anyone has used Power Automate to create a ticket in Assyst and also assign it to a specific queue.

 

If you have experience, I would greatly appreciate exactly what is required to achieve the above.

 

Regards,

Amo Sohi

Best answer by Aaron Sutliff

Hi,

The POST action can look various different ways depending on what it is you need to post in order to raise a ticket.

The example below demonstrates how to log an incident using POST API using JSON.

If you have custom fields, you will be required to include those too.

{
"eventTypeEnum": "INCIDENT",
"richRemarks": "REMARKS / DESCRIPTION HERE",
"affectedUserId": AFFECTED USER ID,
"itemA": {
"resolvingParameters": [
{
"parameterName": "shortCode",
"parameterValue": "ITEM SHORTCODE"
}
]
},
"category": {
"resolvingParameters": [
{
"parameterName": "shortCode",
"parameterValue": "CATEGORY SHORTCODE"
}
]
},
"shortDescription": "TEST",
"seriousnessId": IMPACT ID,
"priority": {
"resolvingParameters": [
{
"parameterName": "shortCode",
"parameterValue": "PRIORITY SHORTCODE"
}
]
},
"assignedServDeptId": ASSIGNED SERVICE DEPARTMENT ID
}

 

 

View original

6 replies

Forum|alt.badge.img+6
  • Sidekick (Customer)
  • Oct 3, 2024 2:16 PM UTC

Hi @AmoSohi 

It is possible to configure the mailbox reader to assign events of this nature to a specific service department. Are you using the ETM tool or legacy mailbox readers?

You could also create the ticket by sending a HTTPS request (API) from Power Automate to the assyst REST service rather than using a mailbox reader.


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • Oct 11, 2024 11:15 AM UTC

Hi Aaron,

Thank you for your response. In Power Automate, I have used HTTP GET with the RESTApi and when I enter a ticket number, the information is returned. I now need to figure out how to use the POST Method and what is required to build the Body of the HTTP action, in order for a new ticket to be created..

Regards,
Amo Sohi


Forum|alt.badge.img+6
  • Sidekick (Customer)
  • Answer
  • Oct 11, 2024 12:30 PM UTC

Hi,

The POST action can look various different ways depending on what it is you need to post in order to raise a ticket.

The example below demonstrates how to log an incident using POST API using JSON.

If you have custom fields, you will be required to include those too.

{
"eventTypeEnum": "INCIDENT",
"richRemarks": "REMARKS / DESCRIPTION HERE",
"affectedUserId": AFFECTED USER ID,
"itemA": {
"resolvingParameters": [
{
"parameterName": "shortCode",
"parameterValue": "ITEM SHORTCODE"
}
]
},
"category": {
"resolvingParameters": [
{
"parameterName": "shortCode",
"parameterValue": "CATEGORY SHORTCODE"
}
]
},
"shortDescription": "TEST",
"seriousnessId": IMPACT ID,
"priority": {
"resolvingParameters": [
{
"parameterName": "shortCode",
"parameterValue": "PRIORITY SHORTCODE"
}
]
},
"assignedServDeptId": ASSIGNED SERVICE DEPARTMENT ID
}

 

 


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • Oct 11, 2024 1:30 PM UTC

Thank you Aaron


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • Oct 12, 2024 3:39 PM UTC

Hi Aaron, hopefully my last question.

To GET all details for a specific ticket, my URI is:

https://assyst.domain.com/assystREST/v2/events/12222222?fields=*

If I want to get User details using the User ID, the URI is:

https://assyst.domain.com/assystREST/v2/contactUsers/22222?fields=*

However, if initially I do not know the users ID, what should the URI be if I wanted to use an email address?

Also, what should the URI be if I wish to use the POST Method to create a new Request

Regards,
Amo Sohi


Forum|alt.badge.img+6
  • Sidekick (Customer)
  • Oct 13, 2024 4:38 PM UTC

Hi, no problem at all. 

Feel free to private message me if you have any more questions.

To obtain a contact user via email address, you will need something like:

https://assyst.domain.com/assystREST/v2/contactUsers?emailAddress=aaron.sutliff@norfolk.gov.uk

To raise an incident / request you would use:

https://assyst.domain.com/assystREST/v2/events

Followed by the JSON provided above