【问题标题】:Azure Logic App toLower string function unknownAzure Logic App toLower 字符串函数未知
【发布时间】:2018-06-19 19:48:02
【问题描述】:

字符串函数的文档是否已过时,因为当我尝试使用 toLower() 时,我得到了

"An unknown function with name 'toLower' was found. This may also be a function import or a key lookup on a navigation property, which is not allowed"

我正在尝试构建一个 OData 过滤器来查询 Dynamics (CRM) - 这是代码:

"queries": {"$filter": "concat('hat_',toLower('@{body('Get_record_(Preview)')?['hat_fundname']}')) eq true "}

【问题讨论】:

    标签: dynamics-crm azure-logic-apps


    【解决方案1】:

    我认为正确的语法是:

    @concat('hat_', toLower(body('Get_record_(Preview)')?['hat_fundname'])) 
    

    【讨论】:

    • 不 - 我尝试保存时收到错误消息:无法保存逻辑应用 xxxxxxx。模板验证失败:“第 1 行和第 128168 列的模板操作 'List_records_2' 无效:“无法解析模板语言表达式 'concat('hat_', toLower(body('Get_record_(Preview)' )?['hat_fundname'])) eq true':预期的令牌 'EndOfData' 和实际的 'Identifier'。".'。
    • 您在 'concat' 之前添加了 '@' 作为第一个字符?
    • 是的。不能保存。我只是将其更改为 @{concat...} 现在它抱怨 toLower 中的值不是字符串,所以我在正确的轨道上。
    • 如果你修改你的答案以包含这个,我会给你答案:"$filter": "@{concat('hat_', toLower(string(body('Get_record_(Preview )')?['hat_fundname'])))} eq true"
    • 你不需要修改你的答案。你让我走上正轨。我不认为 string() 函数是必要的。
    猜你喜欢
    • 2011-03-25
    • 2015-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-06
    • 2019-05-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多