简体   繁体   中英

Format of JSON payload in Azure Logic App HTTP Request trigger

I have been trying to create a very simple Logic App in Azure but I keep failing because it does not seem to be accepting my JSON.

Using my payload

{
  "userPrincipalName": "notmy@ddress.com",
  "computerName": "MyComputername"
}

I created the trigger

逻辑应用触发

I then use the values of my payload in my response:

日志应用程序响应

Save it and then I POST using Hurl.it to the HTTP POST URL in the request.

请求

响应

So why the heck is the value not used? I'm not able to use any of the values I'm sending.

Okay.. that was dumb..

I had to add the Content-Type header to the POST:

在此处输入图片说明

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