Configuring Logic App Connection and Data
- Last UpdatedJun 21, 2024
- 2 minute read
Use Logic App Connection and Data property to configure connections to Logic Apps and pass data.
To configure Logic App connection and pass data
-
Create a Logic App Connection. For more information, see Logic App Connections.
-
In the Logic App Connection and Data window, select a Logic App Connection created earlier.
-
Enter a variable for Variable Name.
This variable stores the Logic App Alert Key.
-
Get the custom JSON schema from the Logic App to pass relevant data.
For example:
{
"type": "object",
"properties": {
"id": {
"type": "number"
},
"machine": {
"type": "string"
},
"status": {
"type": "boolean"
}
}
}
-
Click Add Logic App Data to add a row of data.
-
Enter Name and select Data Type obtained from the custom JSON schema, and then enter a Value.
For example:
Name: id
Data Type: Number
Value: 9876
Note:
- The JSON keys are case-sensitive.
- The supported data types are Boolean, Number, and String.
- Click Expression Builder to generate value from an expression, if required.
- Single level JSON structure is supported. -
Repeat Steps 4 to 5 to enter the required data.
-
Click Save, and then click Close.
Note:
- The data is not validated. Ensure name and data type are as specified in the custom
JSON schema, and the value matches the data type.
-- In case of duplicate names, value passed is only for the first match.
-- In case of names from the standard JSON schema (e.g., ApplicationName), value passed
will overwrite the default data.
Standard JSON Schema
Logic Apps must include the following standard JSON schema to interact with AVEVA Work Tasks.
{
"properties": {
"ApplicationName": {
"type": "string"
},
"ExecutionDetailsId": {
"type": "integer"
},
"ExecutionId": {
"type": "integer"
},
"LogicAppAlertKey": {
"type": "string"
},
"WorkflowName": {
"type": "string"
},
"UserName": {
"type": "string"
}
},
"type": "object"
}