LogicAppsUX
LogicAppsUX copied to clipboard
Dynamic values are not re-setting after the change in input fields
Describe the Bug with repro steps
- [Internal] Open sid-sap-testbox.ui-test in
BTS4 - Create
[RFC] Call function in SAPin-app action - Set the
Input TypetoCustom - Then select the optional
RFC Name, and set it asSTFC_CONNECTION - A new dynamic textbox appear
REQTEXT, enterHelloin that
- Save and refresh the page.
- Change the
RFC NametoRFC_XML_TEST_1. - It will call
/dynamicInvokeagain, and new array fieldIM_XML_TABLEwill appear. - Input
Helloin that and click save. - In code view, You can still see parameter
REQTEXTwhich was only present forSTFC_CONNECTION.
What type of Logic App Is this happening in?
Standard (Portal)
Are you using new designer or old designer
New Designer
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#",
"actions": {
"For_each": {
"actions": {
"Compose": {
"inputs": "-> @{items('For_each')}",
"type": "Compose"
}
},
"foreach": "@outputs('[RFC]_Call_function_in_SAP')?['body']?['content']?['OUT_XML_TABLE']",
"runAfter": {
"[RFC]_Call_function_in_SAP": [
"SUCCEEDED"
]
},
"type": "foreach"
},
"[RFC]_Call_function_in_SAP": {
"inputs": {
"parameters": {
"body": {
"IM_XML_TABLE": [
"Hello"
],
"REQUTEXT": "Hello"
},
"inputBodyType": "Custom",
"outputBodyType": "JSON",
"rfcGroupFilter": "*",
"rfcName": "RFC_XML_TEST_1"
},
"serviceProviderConfiguration": {
"connectionName": "sap",
"operationId": "callRfc",
"serviceProviderId": "/serviceProviders/sap"
}
},
"runAfter": {},
"type": "ServiceProvider"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"triggers": {
"When_a_HTTP_request_is_received": {
"kind": "Http",
"type": "Request"
}
}
},
"kind": "Stateful"
}
Screenshots or Videos
No response
Browser
Edge
Additional context
No response
I think the issue here is that we take there parameters from the body to populate the dynamic value that appears. In this example, after saving, we then have 2 additional properties:
- Body with value of:
{ "REQUTEXT": "Hello" } - REQUTEXT with value of:
Hello2 being what is populated by the body. The issue is when we switch theRFCNametoRFC_XML_TEST_1although we removeREQUTEXTbecause its a dynamic property, we don't remove the Body. Which means it will persist there even whenREQUTEXTno longer exists. I've tested this on old designer, and it has the same functionality - as there isn't a great way of knowing when to remove the stepInputs we use to generate the dynamic value. The current expectation is that the user also deletes the Body parameter when switching dynamic data; however, I'll mark this as feature request, as this may be something we want to implement in the future
https://github.com/Azure/LogicAppsUX/assets/95886809/2ee978f5-770f-4d52-bb63-ce0a8c373cec