Category / Section
Creating Ticket with Attachment using Rest API in Power Automate
Updated:
Feb 26, 2024
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
Input File Content
Declare and set data type to the variable
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**"
}
}
]
}
Parse the upload request’s result (body)
Schema
{
"type": "object",
"properties": {
"token": {
"type": "string"
},
"url": {
"type": "string"
}
}
}
Set attachment Token
Create Ticket
Didn't find an answer?
Contact Support