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

Selection column SharePoint must be of type Array?

Hi, everyone,

 

regarding the flow itself: I would like to output the last three data records of a SharePoint list. In this there is a selection column with the name "Layer". Here you can choose: "Layer-1; Layer-2, Layer-3". These are then called in the flow using the "Select Action". Converted to an HTML table and output via email.

 

But I get the error message for the selection column:

 

"The from property value in the table action inputs is of type String. The value must be of type Array."

 

So I tried to use:

array (item ()? ['Layer'])

I also tried the spelling with the value attribute of the selection column:

array (item ()? ['Layer'] ['Value'])

In any case, I get the above error message. Can you help me there?

 

regards

Livearus

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Livearus 

Is your 'Layer' column multiple-choice?

Do you want to send an email like this?

vLilyWmsft_0-1627890518571.png

I set up a test Flow, you can refer to:

This is my test list:

vLilyWmsft_1-1627890652314.png

Flow in details:

vLilyWmsft_2-1627890690531.png

Expression:join(xpath(xml(json(concat('{"body":{"value":', item()?['Layer'] , '}}'))), '/body/value/Value/text()'), ', ')

vLilyWmsft_5-1627890959806.png

vLilyWmsft_4-1627890766070.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Livearus
Helper I
Helper I

Can't anyone help me with this problem?

 

regards

Livearus

Hi @Livearus 

Is your 'Layer' column multiple-choice?

Do you want to send an email like this?

vLilyWmsft_0-1627890518571.png

I set up a test Flow, you can refer to:

This is my test list:

vLilyWmsft_1-1627890652314.png

Flow in details:

vLilyWmsft_2-1627890690531.png

Expression:join(xpath(xml(json(concat('{"body":{"value":', item()?['Layer'] , '}}'))), '/body/value/Value/text()'), ', ')

vLilyWmsft_5-1627890959806.png

vLilyWmsft_4-1627890766070.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,282)