Goal:
- Get Tasks from Clickup. The Tasks contain the client’s Quickbooks ID.
- Get all the Time Submissions for each Task. There could be multiple time submissions per task.
- Link the Time Submissions to the client via the Quickbooks ID.
Steps:
- Get the Tasks (Success) I get 3 Bundles (Each Bundle is a Task)
- Get the Time Submissions based on the Task ID (Success)
- Task 1 has 2 time submissions (called Intervals)
- Task 2 has 1 time submission (called Intervals)
- Task 3 has 3 time submissions (called Intervals)
-
I take it to an array and link the Quickbooks ID.
-
Here is my Output.
Here is what an Interval (time submission looks like and all the fields that I need to be linked together)
PROBLEM:
I need all the Intervals to be in 1 array linked to the Quickbooks ID.
The Intervals need to include the custom field variable called “Hourly Rate”
I need to be able to count the total number of intervals. In this case, I have 6 time submissions. I need that count in order to setup a filter that Count = 6 to go to a Quickbooks “create invoice” that has 6 line items ready.
Thoughts? What magic am I missing? I tried flatten, map. I know what doesn’t work lol
When asking your question, please include:
The steps you have taken
Relevant screenshots
Any links you have
[ Code { "and": "JSON", "in" : "code block"} ]
Exclude Personal Information.