以原始格式保存webhook [英] Saving webhooks in its raw format

查看:113
本文介绍了以原始格式保存webhook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我觉得它应该很简单,但我不明白该怎么做。



关于设置和挑战的一些信息:



我有一个应用程序以JSON格式发送webhooks。

我想要使用Logic应用程序以原始格式(或txt)保存它。



这是我的(实验性)设置


$




最初我是通过B路径,但是我无法将完整的JSON正文保存到文件内容中。

比我想象的那样,如果我跳过解析步骤(路径A)我可以将正文保存在文件内容中。



显然这不是一个选项。



可以有人帮助我从webhook中保存完整的JSON?

Hi all,

I feel it should be quite simple but I can't figure out how to do it.

Some information on the setup and challenge:

I have an app sending webhooks in JSON format.
I want to use Logic apps to save it in its raw form (or txt) when it comes.

This is my (experimental) setup



Initially I was going through the B path, but I can't save full JSON body into the file content.
Than I figured maybe if I skip the parsing step (path A) I can save the body in the file content.

Apparently this is not an option.

Can someone help me save full JSON from webhook?

推荐答案

在"代码视图"中,在"fileContent"下插入以下值:或"身体"或"身体"。 (不确定该财产的名称):

In Code View, insert the following value under "fileContent" or "body" (not sure what the property is called):

" @triggerBody()"

"@triggerBody()"

或者如果你想要包括标题在内的所有内容:

Or if you want everything including Headers:

" @triggerOutputs()"

"@triggerOutputs()"

Morten la Cour

Morten la Cour


这篇关于以原始格式保存webhook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆