web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Dynamically generating sharepoint column reference

(1) ShareShare
ReportReport
Posted on by 604

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.

2021-06-16 11_59_09-Edit your flow _ Power Automate.png

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard