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

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 III
Helper III

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.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,567)