Category / Section
How to Create Tickets on Scheduled Basis Using Microsoft Power Automate and Rest API
Published:
You can run scheduled automation using Power Automate flow. You can use the BoldDesk REST API in the Power Automate flow to create the tickets on a scheduled basis. Refer to this article to learn how to create scheduled flow in Microsoft.
Creating the tickets in a scheduled flow
To generate the tickets in a scheduled flow, follow the given steps:
- Navigate to the power automate page.
- Click the Create button and select the Scheduled cloud flow option.
- Enter the flow name and select the required interval and then click the Create button as shown below.
- Click the (+) icon and select the Add an action option.
- Search and select the HTTP request option as shown below.
- In the HTTP request, update the details as shown in the following screenshot.
Sample Payload below:
{
"brandId": 1,
"subject": "Subject of the ticket",
"categoryId": 11,
"isVisibleInCustomerPortal": true,
"requesterId": 1002,
"description": "Description of the ticket",
"typeId": 2,
"tag": "test",
"priorityId": 1
}
Note:
Use your portal values for the categoryId, requesterId, typeId, and brandId.
- Save the flow and test it.
Note:
If you have selected a flow interval in minutes, make sure to turn off the scheduled flow after the time has elapsed. Otherwise, it will keep generating the tickets continuously.