Skip to main content
Solved

Create a new ticket in Assyst from Power Automate flows

  • September 13, 2024
  • 6 replies
  • 214 views

Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 3 replies

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 asutliff

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
Did this topic help you find an answer to your question?

6 replies

Forum|alt.badge.img+5
  • Sidekick (Customer)
  • 16 replies
  • October 3, 2024

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)
  • 3 replies
  • October 11, 2024

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+5
  • Sidekick (Customer)
  • 16 replies
  • Answer
  • October 11, 2024

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)
  • 3 replies
  • October 11, 2024

Thank you Aaron


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • 3 replies
  • October 12, 2024

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+5
  • Sidekick (Customer)
  • 16 replies
  • October 13, 2024

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings