在插入DocumentDB的azure Logic应用程序工作流程步骤中,我如何能够#String"一个号码

时间:2017-05-31 14:50:10

标签: azure azure-storage azure-cosmosdb azure-data-factory

我在收到"创建文档"时收到错误,说id是一个数字。在我的逻辑应用程序的DocumentDb步骤中。我如何toString插入步骤中的id号码?

  "actions": {
            "Create_or_update_document": {
                "inputs": {
                    "body": {
                        "body": "@triggerBody()",
                        "createdAt": "@triggerBody()?['created_at']",
                        "description": "@triggerBody()?['description_text']",
                        "dueBy": "@triggerBody()?['due_by']",
                        "priority": "@triggerBody()?['priority']",
                        "requesterId": "@triggerBody()?['requester_id']",
                        "source": "@triggerBody()?['source']",
                        "status": "@triggerBody()?['status']",
                        "id": "@triggerBody()?['id']",
                        "type": "@triggerBody()?['type']",
                        "updatedAt": "@triggerBody()?['updated_at']"
                    }

1 个答案:

答案 0 :(得分:1)

取自here(查看Conversion functions下):

"@string(triggerBody()?['id'])"