I'm building a solution to manage customer alerts. We've got a bunch of services that alert, and a sharepoint list of customers that has a yes/no column for each service. The flow checks whether alerts are enabled for that customer, for that service.
This flow is called by the individual service alert flows, which pass the name of the service and the name of the customer.
I don't want to write a condition to check every service, so I'm trying to generate the column name.
There are multiple columns named AlertState_servicename
The service name is being passed into the flow, so in this example where the service is Addigy, there's a AlertState_Addigy column in sharepoint that I want to target.
So using this expression in a compose action:
concat('@outputs(''GetCustomer'')?','[''body/AlertState_',triggerBody()?['Service'],'''',']')
I get this literal string output, not the actual value. It should just return False.
@outputs('GetCustomer')?['body/AlertState_Addigy']
But if you peek code on a compose 2 action that contains the actual dynamic content for that column, that's exactly how it's formatted.
How do I get it to not treat that as a string, but instead actually get the value it's referencing? I've tried all sorts of formats, adding in double quotes and @ and curly braces and ... etc. with no luck.
For clarity, I want both of these to return the same value.


Report
All responses (
Answers (