Jul 10 2023 09:55 AM
Hello Guys
Well, I don't know how to explain it, but I'll try, I hope I succeed ...
Today I have a list of about 72,000 entries that I want to upload to my Exchange Online.
What I would like is for it to do for example... 5000, pause, +5000, pause, +5000, until the end.
An old Exchange module, for example, allows connections with a time of 30 minutes.
6. And with that, I know that there are - but I haven't seen - Script constructions that do more or less this... Loads 72,000, performs treatment for up to 30 minutes... then disconnects/reconnects and performs a new treatment for up to 30 minutes, and repeat this until the end, but always taking advantage of the same load. Somehow there's a mark on what's already been processed that it restarts every time from what hasn't.
I imagine that the concept, the idea, is the same.
I would like - if it's not too much trouble - to understand how to build, or find, a code snippet, an entire script that does something in this sense to deepen the study and adapt to my needs
Many, many thanks for everyone's attention and help!
Jul 10 2023 01:34 PM
Jul 10 2023 03:32 PM
There are a few ways that you could approach this, depending on the input source, you could look to add a field/column to the source data/file that includes a Boolean "processed" flag, which your script would update after your script logic completes
An alternative method might be to load your input data, take a count of the total items/rows and maintain an "index" of the current item/row being processed... this index would get incremented after each item is processed