cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
obarisk
Frequent Visitor

Get value from object variable by another variable

SomeDataTable is a datatable.

SomeColumnName is a String.

 

Is it possible to get value like

For Each SomeDataRow in SomeDataTable

 

%SomeDataRow["%SomeColumnName%"]%

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Henrik_M
Continued Contributor
Continued Contributor

Put it like this:

 

%SomeDataRow[SomeColumnName]%

View solution in original post

5 REPLIES 5
Tejashree_G
Helper I
Helper I

if i'm wrong then correct me, you want to read excel row one by one column wise ?

Yes. I'm trying %SomeDataRow[%SomeColumnName%]%

obarisk
Frequent Visitor

%SomeDataRow[SomeColumnName]% pass the code checking, but runtime error as

 

Could not found column or attribute '"ColumnName"'.

 

Quote of quote String. The behavior is mysterious.

as per my understanding, you will need to first read your excel row's and column then you will get " excel data " variable , 2. apply for each action and use "excel data" variable so you will get current item variable (whole row's in data table ) 3. use anther for each under the 1 st for each loop and use "current item " variable, use display msg box to check your output.

Henrik_M
Continued Contributor
Continued Contributor

Put it like this:

 

%SomeDataRow[SomeColumnName]%

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,423)