{
"definition"
: {
"$schema"
:
"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#"
,
"actions"
"Compose_2"
"inputs"
"@{join(outputs('Compose'), ',')}"
"runAfter"
"For_each"
: [
"Succeeded"
]
},
"type"
"Compose"
"@item()['name']"
: {},
}
"foreach"
"@body('Get_SF_Objects')?['fields']"
"Get_SF_Objects"
"Foreach"
"GetSalesforce_Oauth_Access_Token"
"body"
"grant_type=password&client_id=3MVG9YDQS5WtC11qO_LPE1P5HObJDw_5._0QaidHX5MfGaIQONHgNgVfB5_Vmq.2.yhN6S0nnzLPHASj29g7W&client_secret=8173475474047140117&username=baraneedharan.manoharan%40*****.com&password=****"
"headers"
"Content-Type"
"application/x-www-form-urlencoded"
"method"
"POST"
"uri"
"https://login.salesforce.com/services/oauth2/token"
"Initialize_variable_3"
"Http"
"Authorization"
"Bearer @{body('GetSalesforce_Oauth_Access_Token')?['access_token']}"
"application/json"
"GET"
"https://ap4.salesforce.com//services/data/v39.0/sobjects/@{variables('ObjectName')}/describe"
"variables"
"name"
"ObjectName"
"String"
"value"
"@{json(triggerBody()).ObjectName}"
"InitializeVariable"
"Response"
"fields"
""
"statusCode"
: 200
"contentVersion"
"1.0.0.0"
"outputs"
"parameters"
"triggers"
"manual"
"schema"
"properties"
"string"
"object"
"kind"
"Request"
So I have used Azure Functions inside Logic Apps flow and have leveraged the performance that has saved more than 10 seconds of processing time and 1 compose action as well. So please be careful and don't try to do everything using LA Actions that costs performance and as well money.