cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
enkill
Helper I
Helper I

Get variable column data from sharepoint, using column name from flow.

Ok, so this is probably something unbelievably stupid that I'm missing, but I'm drawing a blank, and 3 hours of googlefoo is failing me

 

I have a SharePoint list with columns for various countries, and i want to create a dynamic lookup so given a country from the triggerbody i can get a specific value from the relevant SharePoint column.

Something like this.

Get item from sharepoint (works perfectly - filtered by *ITEM*)

Apply to each item (works perfectly)

 

items('Apply_to_each')?['*COUNTRY*']

 

But I can't get either set/initialize variables or Compose to show the correct output, they all show the text "items('Apply_to_each')?['*COUNTRY*']" rather than the value.

 

Am i missing something painfully obvious?

 

 

6 REPLIES 6
efialttes
Super User
Super User

@enkill 

Can you share a screenshot from your current flow design?

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Sure!

 

 

 

 

Capture.PNG

The text value is correct, i just want work how to get it to pull the value, rather than the text.

 

Capture.PNG

Hi!

I think the problem is, you are adding WDL expressions as regular text. For example...

 

items('Apply_to_each')?['China']

 

...is also a expression, so you need to add it following the steps described here:

https://flow.microsoft.com/es-es/blog/use-expressions-in-actions/

 

Can you please also share your trim() based WDL expression and explain briefly what you wanna calculate with such expression?

On the screenshots share I cannot see its details

Thanx!

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



well yes, that's the problem, I don't want the text, I want the expression.

 

The trim is a horrendous thing, but it pulls out the country required. it pulls out the country name from the trigger body. in the example i posted earlier, it was "China"

 

trim(substring(triggerBody()?['po_configurationdetails'],add(indexOf(triggerBody()?['po_configurationdetails'],'TEXT 24 chars long'),24),sub(indexOf(triggerBody()?['po_configurationdetails'],'MORE TEXT'),add(indexOf(triggerBody()?['po_configurationdetails'],'TEXT 24 chars long'),24))))
 
 
What i want to do then is using a "get items" from a SharePoint site get the value from the column named "China"
 
 
 
 
LearnDevil
Frequent Visitor

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,499)