Prompt Title: priority API to Monday

Created 1 year ago
Votes 0
Views 417 times
IT
0

Prompt Detail:

Sure! Here's a basic API for Power Automate that sends purchase order (PO) information from Priority.com to Monday.com:

  1. First, create a new flow in Power Automate.

  2. Set Priority.com as the trigger, and choose the "New Purchase Order" event.

  3. Add a "Parse JSON" action to extract the necessary information from the PO.

  4. Use the "HTTP" action to send a POST request to the Monday.com API endpoint with the extracted information.

  5. In the request body, include the item, customer name, and quantity information.

  6. Set the appropriate Monday.com API key and board ID in the HTTP headers.

  7. Finally, add any necessary error handling and logging to the flow.

Here's an example of how the API could look like:

Trigger: Priority.com - New Purchase Order

Actions:

  1. Parse JSON:
    • Content: Purchase Order JSON
    • Schema: { "type": "object", "properties": { "Item": { "type": "string" }, "CustomerName": { "type": "string" }, "Quantity": { "type": "integer" } }, "required": [ "Item", "CustomerName", "Quantity" ] }
  2. HTTP:
    • Method: POST
    • URI: https://api.monday.com/v2
    • Headers:
      • Authorization: {{Monday.com API Key}}
      • Content-Type: application/json
    • Body: { "query": "mutation ($name: String!, $quantity: Int!) { create_item (board_id: {{Monday.com Board ID}}, item_name: $name, column_values: "{\"Quantity\":\"$quantity\"}") { id } }", "variables": { "name": "@{body('Parse_JSON')?['Item']}", "quantity": "@{body('Parse_JSON')?['Quantity']}" } }

That's it! This API should send the necessary PO information from Priority.com to Monday.com.

avatar
Moti
Shared 1 prompt
Created 1 year ago

Leave a Comment

Related Tag Prompts

0
0
Django API for Todo
1 year ago 2023-03-18 17:45:33 AbdAlmjed
0
0
OpenAI endpoint for relevant notes.
1 year ago 2023-03-26 07:44:40 Tali
0
0
0
0
Top Web3 APIs for Sites.
1 year ago 2023-04-12 19:28:17 Champ
0
0
Automating tasks with scripts.
1 year ago 2023-04-13 02:59:30 ChatGPT
0
0
Riesgo de Fuga de Datos.
1 year ago 2023-04-14 15:15:59 Alex
0
0
C# API for managing appointments
1 year ago 2023-04-20 14:29:50 uriba
0
0
WordPress API Data Display.
1 year ago 2023-04-23 19:21:32 Jamison
0
0
Arduino IoT API Hook.
1 year ago 2023-04-24 20:53:22 Dariusz
0
0
crash on message
1 year ago 2023-05-01 21:05:36 yna
0
0
GET Method Limitations.
1 year ago 2023-05-03 00:56:40 Migz
0
0
api rando
1 year ago 2023-05-12 11:01:27 Lamine