简体   繁体   中英

Azure Logic App HTTP Post build JSON with Dynamic Variables

I can't figure out how to build the JSON for an HTTP Post:

ie, this doesn't work where [somevariablehere]. How do I manually concat what I want to post along with some dynamnic variables?

{
  "color": "green", 
  "message": "(awesome) [somevariablehere]   ", 
  "notify": false, 
  "message_format": "text"
}

Take a look at documentation of the Logic Apps definition language: https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

You can use the concat function to concatenate strings, for example

{
  "color": "green", 
  "message": "@concat('awesome', actionBody('otherAction').someProperty)", 
  "notify": false, 
  "message_format": "text"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM