Closed
Description
Describe the Bug with repro steps
What type of Logic App Is this happening in?
Consumption (Portal)
Which operating system are you using?
Windows
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"triggers": {
"When_a_HTTP_request_is_received": {
"type": "Request",
"kind": "Http",
"runtimeConfiguration": {
"concurrency": {
"runs": 1,
"maximumWaitingRuns": 100
}
}
}
},
"actions": {
"Condition_status_is_process": {
"type": "If",
"expression": {
"and": [
{
"equals": [
"@ triggerBody()?['values']?['property']?['status']",
"Process"
]
}
]
},
"actions": {
"get-access-token-UK-SOUTH": {
"type": "Workflow",
"inputs": {
"host": {
"workflow": {
"id": "/subscriptions/36c5a935-fca2-49f4-967a-a5ecf9e430c8/resourceGroups/AB-Test/providers/Microsoft.Logic/workflows/get-access-token-UK-SOUTH"
},
"triggerName": "manual"
}
}
},
"Update_status_active": {
"type": "Http",
"inputs": {
"uri": "https://api.solarvista.com/datagateway/v3/@{ triggerBody()?['values']?['accountId']}/datasources/ref/work-order/data",
"method": "PUT",
"headers": {
"Authorization": "Bearer @{body('get-access-token-UK-SOUTH')}"
},
"body": {
"reference": "@ triggerBody()?['values']?['property']?['reference']",
"status": "Active"
}
},
"runAfter": {
"For_each_repair_item": [
"Succeeded"
]
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
},
"For_each_repair_item": {
"type": "Foreach",
"foreach": "@ triggerBody()?['values']?['property']?['linkeddatasourcegrid']?['rows']",
"actions": {
"Create_work_item": {
"type": "Http",
"inputs": {
"uri": "https://api.solarvista.com/workflow/v4/@{triggerBody()?['values']?['accountId']}/workitems/new",
"method": "POST",
"headers": {
"Authorization": "Bearer @{body('get-access-token-UK-SOUTH')}"
},
"body": {
"startingWorkflowStageType": "Unassigned",
"workItemTemplateId": "@ body('get_WI_template')?['workItemTemplateId']",
"properties": {
"site": "@ body('property')?['Site']?['id']",
"address": "@ body('get_site')?['rowData']?['address']",
"name": "@ body('property')?['customer']?['title']",
"customer": "@ body('property')?['customer']?['id']",
"service-level": "@body('property')?['Service-Level']?['id']",
"contact": "@ body('property')?['contact']?['id']",
"Phone": "@ body('get_contact')?['rowData']?['Phone']",
"Email": "@body('get_contact')?['rowData']?['Email']",
"Mobile": "@body('get_contact')?['rowData']?['Mobile']",
"Equipment": "@ body('property')?['Equipment']?['id']",
"Serial-Number": "@ body('Get_vehicle')?['rowData']?['Serial-Number']",
"Component": "@ body('Get_repair_item')?['rowData']?['Component']?['id']",
"problem": "@ body('Get_repair_item')?['rowData']?['problem']",
"bill-to": "@body('property')?['Bill-To-Customer']?['id']",
"Order-Ref": "@ body('property')?['Order-Ref']",
"currency": "GBP",
"pricing-policy": "@ body('property')?['Pricing-Policy']?['id']",
"Work-Order": "@ body('property')?['reference']",
"ComponentCategories": "@ body('Get_repair_item')?['rowData']?['componentcategory']?['id']"
},
"description": "@outputs('Compose_description')"
}
},
"runAfter": {
"Compose_description": [
"Succeeded"
]
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
},
"Get_repair_item": {
"type": "Http",
"inputs": {
"uri": "https://api.solarvista.com/datagateway/v3/@{ triggerBody()?['values']?['accountId']}/datasources/ref/RepairItems/data/id/@{items('For_each_repair_item')?['rowId']}",
"method": "GET",
"headers": {
"Authorization": "Bearer @{body('get-access-token-UK-SOUTH')}"
}
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
},
"Compose_description": {
"type": "Compose",
"inputs": "@{ body('Get_vehicle')?['rowData']?['description']}-@{ body('Get_vehicle')?['rowData']?['Serial-Number']}-@{ body('Get_repair_item')?['rowData']?['component']?['title']}",
"runAfter": {
"Get_repair_item": [
"Succeeded"
]
}
}
},
"runAfter": {
"Get_vehicle": [
"Succeeded"
]
},
"runtimeConfiguration": {
"concurrency": {
"repetitions": 1
}
}
},
"get_WI_template": {
"type": "Http",
"inputs": {
"uri": "https://api.solarvista.com/workflow/v4/@{ triggerBody()?['values']?['accountId']}/workitemtemplates/ref/Job-Depot-Repair/",
"method": "GET",
"headers": {
"Authorization": "Bearer @{body('get-access-token-UK-SOUTH')}"
}
},
"runAfter": {
"get-access-token-UK-SOUTH": [
"Succeeded"
]
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
},
"get_site": {
"type": "Http",
"inputs": {
"uri": "https://api.solarvista.com/datagateway/v3/@{ triggerBody()?['values']?['accountId']}/datasources/ref/site/data/id/@{body('property')?['site']?['id']}",
"method": "GET",
"headers": {
"Authorization": "Bearer @{body('get-access-token-UK-SOUTH')}"
}
},
"runAfter": {
"get_WI_template": [
"Succeeded"
]
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
},
"Get_vehicle": {
"type": "Http",
"inputs": {
"uri": "https://api.solarvista.com/datagateway/v3/@{ triggerBody()?['values']?['accountId']}/datasources/ref/equipment/data/id/@{body('property')?['equipment']?['id']}",
"method": "GET",
"headers": {
"Authorization": "Bearer @{body('get-access-token-UK-SOUTH')}"
}
},
"runAfter": {
"Condition_contact_empty": [
"Succeeded"
]
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
},
"Condition_contact_empty": {
"type": "If",
"expression": {
"and": [
{
"equals": [
"@empty(body('property')?['contact']?['id'])",
false
]
}
]
},
"actions": {
"get_contact": {
"type": "Http",
"inputs": {
"uri": "https://api.solarvista.com/datagateway/v3/@{ triggerBody()?['values']?['accountId']}/datasources/ref/contact/data/id/@{body('property')?['contact']?['id']}",
"method": "GET",
"headers": {
"Authorization": "Bearer @{body('get-access-token-UK-SOUTH')}"
}
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
}
},
"else": {
"actions": {}
},
"runAfter": {
"get_site": [
"Succeeded"
]
}
}
},
"else": {
"actions": {}
},
"runAfter": {
"property": [
"Succeeded"
]
}
},
"property": {
"type": "ParseJson",
"inputs": {
"content": "@ triggerBody()?['values']?['property']",
"schema": {}
},
"runAfter": {}
}
},
"outputs": {},
"parameters": {
"$connections": {
"type": "Object",
"defaultValue": {}
}
}
},
"parameters": {
"$connections": {
"type": "Object",
"value": {}
}
}
}
Screenshots or Videos
Browser
Chrome
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels