Hi,
I am reading Time Entries from Smartsheet Resource Management (RM) and writing them to a Smartsheet. In RM, the project is divided up into phases, which results in Time Entries being associated with each of the phases. The number of phases can be different for each project.
Since there are hundreds of Time Entries to be synced, using Smartsheet's Add Row is not an option due to the speed. I am resorting to HTTP Call to add the rows in bulk.
- I want to perform the following operation:
- Get the Time Entries from all the phases (in the form of arrays)
- Join the arrays together
- Sort the arrays by date
- Write the arrays into Smartsheet using HTTP Call (bulk operation)
The pseudo code of the operation is:
funtion prepare_time_entries
1. Run for each project phase
a. Get time entries for phase
b. Put entries in array (keep on adding to the same array for all phases)
2. Sort the array by date
3. Write the sorted data into Smartsheet
Now, prepare_time_entries could be a workflow and so could Run for each project phase, but I am not sure if I can use "Utilities > Array Management > Add Object to Array" in this scenario to build the array from nothing.
Any ideas how to go about this? Or do I have to use Javascript?
2. The other question is about getting the phases related to a project in RM. Currently I am using "Resource Management > Get Assignable". Is that the right way to get the?
3. Lastly, I want to read the Assignments from Resource Management. I could not find any integration that supported it, so I have used Javascript for it. Is that the right way to read Assignments from RM?
Regards,
Aman