cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ChrisC
Level 8

Working with arrays

Hello all,

 

I have a bit of my flow which works with a Sharepoint list. I have a "Sharepoint - Get Items" action called "MilestoneArray"


I'd like to have a "Compose - Data Operations" action work with an individual item from that array, for example index 5

 

What I'm trying to get my compose function below to do is to add an amount of days stored in position 5 in milestone array to a date in another list. All of this works except for the array bit

 

Array.PNG

 

I am wondering if this is possible and if so, how something like this is done

 

Thank you!

2 REPLIES 2
Community Support Team
Community Support Team

Re: Working with arrays

Hi ChrisC,

 

Would you please explain a bit for the "MilestoneArray" here? How is this data stored (field type) in the Milestones list?

If only for the date type fields, the compose Action should work.

Please share more information for the fields that you would like to work with, I will then try to perform some tests about it.

Besides, if you would like to work with items in Compose, the format should be:

"@Adddays(,)"

There is no need to add the {} here.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ChrisC
Level 8

Re: Working with arrays

Hello,

 

MilestoneArray is this following list here:

MilestoneArray.png

 

What I would like to do is compose data based on a piece of data modified by a specific DateChangeAmount. Could I compose something which modifies another date by say, "

 

@Adddays(body('Get_child')?['Start_x0200_Date'],int(body('MilestoneArray[3]'[DateChangeAmount']), 'MM/dd/yyyy'))"

 

Where MilestoneArray[3] is index 3 in MilestoneArray?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,211)