Hello all,
I'm trying to simplify logical paths in a logic app, and being able to dynamically execute functions that are sourced externally (in my case, a CosmosDb). In an attempt to prove the concept out, I've used a simple date conversion function that resides in my CosmosDb.
So far I've tried putting curly braces on the content in Cosmos, and an @ sign, but have yet to find success. Could someone please elaborate on the proper way to perform this kind of action -> executing dynamic functions in a Logic App.
Kind Regards,
Jon
Compose Task Code:
"Compose": { "inputs": { "Value": "@{body('LookupProcessConfig')?['value'][0].Function}" }, "runAfter": { "LookupProcessConfig": [ "Succeeded" ] }, "type": "Compose"
Cosmos Doc:
"ProcessName": "Dynamic FunctionTest",{
"Executable": "laDynamicFunctionTest",
"ExecutableType": "Azure Logic App",
"IsActive": true,
"Version": 0,
"Function": "convertFromUtc(utcNow(),'US Eastern Standard Time','yyyyMMddHHmmssfff')",
"_shardkey": "laDynamicFunctionTest"
}
![121976-dynamiclogicappfunction.png][1]
[1]: /answers/storage/attachments/121976-dynamiclogicappfunction.png
