我正在从Visual Studio部署Azure应用,并且Azure应用已连接到Dynamics365。在Logic App Json模板文件中,我试图通过在部署时传递参数来在Azure App中设置Dynamics 365组织名称。但是它无法读取参数值并在设计器视图中显示错误,如下所示。下面是我到目前为止尝试过的。
在Logic App模板文件中声明的参数。
"dynamics_organization_Name": {
"type": "string",
"defaultValue": "orgxxxxxx.crm11"
}
在“参数” Json文件中设置值。
"dynamics_organization_Name": {
"value": "orgxxxxxx.crm11"
}
在Logic App模板Json中,路径已更改为使用参数中的值,如下所示:
"path": "/datasets/@{encodeURIComponent(encodeURIComponent(parameters('dynamics_organization_Name')))}/tables/@{encodeURIComponent(encodeURIComponent('contacts'))}/items/@{encodeURIComponent(encodeURIComponent(items('For_each_2')?['contactid']))}"
但是,当我从Visual Studio部署服务时,它会成功部署,但是在Azure门户设计器视图中,由于无法从参数获取值,因此显示以下错误消息。谁能建议我如何从参数传递Dynamics 365组织名称?
答案 0 :(得分:0)
请尝试将$添加到参数名称中,使其成为$ dynamics_organization_Name
希望这可以解决问题。