Category

Creating Ticket with Attachment using Rest API in Power Automate

Updated:

In this article, you can find a guide on how to create a ticket with an attachment using the Rest API in Power Automate.

Flow summary

Summary.png

Input File Content

File_Input.png

Declare and set data type to the variable

Declaration_var.png

Upload File Using API

Payload Json Format

{
 "$content-type": "multipart/form-data",
 "$multipart": [
   {
     "body": "**File-Content_in_Bytes**",
     "headers": {
       "Content-Disposition": "form-data; name=\"uploadFiles\"; filename= **File_name**"
     }
   }
 ]
} 

Uploadfile.png

Parse the upload request’s result (body)

Schema

{
   "type": "object",
   "properties": {
       "token": {
           "type": "string"
       },
       "url": {
           "type": "string"
       }
   }
}

Parse_Json.png

Set attachment Token

Set_token.png

Create Ticket

Create_Ticket.png

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied
Access denied
Access denied

No articles or sections found
No articles or sections found