Closed siddharth-ms closed 5 months ago
[RFC] Call function in SAP
Input Type
Custom
RFC Name
STFC_CONNECTION
dynamicInvoke
json { "response": { "body": { "type": "object", "properties": { "body": { "type": "object", "properties": { "REQUTEXT": { "type": "string", "title": "REQUTEXT", "maxLength": 1, "x-ms-visibility": "important" } }, "required": [ "REQUTEXT" ] } }, "required": [ "body" ], "default": {} }, "statusCode": "OK" } }
RFC_PING
body
{}
json { "response": { "body": { "type": "object", "properties": { "body": { "type": "object", "properties": {}, "required": [] } }, "required": [ "body" ], "default": {} }, "statusCode": "OK" } }
Standard (Portal)
New Designer
Yes
{ "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "actions": { "Compose": { "inputs": "ECHO TESXT: @{body('[RFC]_Call_function_in_SAP')?['content']?['ECHOTEXT']}\nOTHER: @{body('[RFC]_Call_function_in_SAP')?['content']?['RESPTEXT']}", "runAfter": { "[RFC]_Call_function_in_SAP": [ "SUCCEEDED" ] }, "type": "Compose" }, "[RFC]_Call_function_in_SAP": { "inputs": { "parameters": { "body": { "IV_TRTYP": "1102" }, "inputBodyType": "Custom", "outputBodyType": "XML", "rfcGroupFilter": "*", "rfcName": "RFC_PING" }, "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" }
No response
Edge
@siddharth-ms - You need to set the default property at the parameter level, you set it in response body, peer to highlighted type below.
Describe the Bug with repro steps
[RFC] Call function in SAP
in-app actionInput Type
toCustom
RFC Name
, and set it asSTFC_CONNECTION
dynamicInvoke
call is made which returns:json { "response": { "body": { "type": "object", "properties": { "body": { "type": "object", "properties": { "REQUTEXT": { "type": "string", "title": "REQUTEXT", "maxLength": 1, "x-ms-visibility": "important" } }, "required": [ "REQUTEXT" ] } }, "required": [ "body" ], "default": {} }, "statusCode": "OK" } }
RFC Name
, and set it asRFC_PING
which doesn't need any new parameter. We want it to setbody
as empty object{}
dynamicInvoke
call is made which returnsbody
with no parameters{}
:json { "response": { "body": { "type": "object", "properties": { "body": { "type": "object", "properties": {}, "required": [] } }, "required": [ "body" ], "default": {} }, "statusCode": "OK" } }
body
as empty object like{}
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
Screenshots or Videos
No response
Browser
Edge
Additional context
No response