Forum Discussion
Patrick Rote
Dec 03, 2018Iron Contributor
How to get values (item ids) from executeQueryAsync and store them as arrays CSOM
Hi All, I have been trying to do an update via CSOM but I have had issues with timeout so it was recommended I do it in batches. I have got the batches running but i'm having issues on how to get...
Patrick Rote
Dec 04, 2018Iron Contributor
No one responds here...
Matt Weston
Dec 04, 2018Iron Contributor
Hi Patrick Rote, it's been a while since I did this type of thing in JS but I'll try and give you some steer.
When you execute your CAML query, you should get a ListItemCollection back. Iterate through that collection e.g.
Declare Array Variable
For Each Item in ItemCollection
Push Item.Id to your array
If that doesn't work, please share any specific errors that you're getting and I'll aim to help you through it
- Patrick RoteJan 18, 2019Iron ContributorThanks I sorted it out already.