在azure中执行以下步骤:
1.Created an azure function using function app.
2.In Logic App Designer flow, I have added the function app (w/o creating it via logic app)
我无法在创建的azure函数中从逻辑应用程序获取数据。
注意:但是在通过逻辑应用程序流创建azure函数后,我可以获取从LApp传递的数据。
Azure功能名称:
谢谢, Sathiyarajan M
示例函数应用代码:
module.exports = function (context, data) {
var inputDocVal = data.inputdbval[0].rgValues.name
var resname = data.resourceGN
var input = [];
inputDocVal.push(resname)
// Response of the function to be used later.
context.res = {
body: {
"name":inputDocVal
}
};
context.done();
};
我收到的错误如下:
2017-05-17T15:03:27.611 Exception while executing function: Functions.docdb. mscorlib: TypeError: Cannot read property '0' of undefined
at module.exports (D:\home\site\wwwroot\docdb\index.js:3:36)
at D:\Program Files (x86)\SiteExtensions\Functions\1.0.10947\bin\azurefunctions\functions.js:93:24.