I see there is a Run After setting in the designer But not in the code view.
"actions": {
"Get_file_content": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['ftp']['connectionId']"
}
},
"method": "get",
"path": "/datasets/default/files/@{encodeURIComponent(encodeURIComponent('/data/backup/*'))}/content",
"queries": {
"inferContentType": true
}
},
"runAfter": {}
},`
I have tried pressing Run but experience an error
The renderComponentIntoRoot component encountered an error while loading
I am new to Logic Apps and unsure what to expect.
I see there is a Run After setting in the designer But not in the code view.
"actions": {
"Get_file_content": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['ftp']['connectionId']"
}
},
"method": "get",
"path": "/datasets/default/files/@{encodeURIComponent(encodeURIComponent('/data/backup/*'))}/content",
"queries": {
"inferContentType": true
}
},
"runAfter": {}
},`
I have tried pressing Run but experience an error
The renderComponentIntoRoot component encountered an error while loading
I am new to Logic Apps and unsure what to expect.
Share Improve this question asked Feb 16 at 5:53 KirstenKirsten 18.1k50 gold badges207 silver badges359 bronze badges 2- Is this LogicApps standard? Maybe delete the step and put it back, save it and then check the code view again. – Skin Commented Feb 16 at 8:15
- Yes, first step of flow, will not have any action to follow. – RithwikBojja Commented Feb 17 at 3:30
2 Answers
Reset to default 2When an action doesn't have any other actions before it, you are going to see "runAfter": {}
in the code view.
When a file is added or modified (properties only)
is a trigger, not an action - that's why runAfter
is empty.
Your workflow will run automatically when a new file is created or an existing file is modified. Make sure to use valid values in the action's parameters. /data/backup/*
(with an asterisk) doesn't look as a valid folder name.
I do agree with @10p that, for the first action you will not be having any runAfter as it is trigger . The action triggers the workflow or Logic app when the condition of the trigger is met.
As this is the first action after trigger, your runAfter will be empty, that is selected by default and you cannot even edit that as this is first action after trigger. So this means this action will execute when trigger's condition is met.