简体   繁体   English

Azure Logic App HTTP请求触发器中的JSON有效负载格式

[英]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. 我一直在尝试在Azure中创建一个非常简单的Logic App,但是我一直失败,因为它似乎没有接受我的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. 保存它,然后我使用Hurl.it POST到请求中的HTTP POST URL。

请求

响应

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: 我必须将Content-Type标头添加到POST:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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