I’m create a web aplication Node JS ( with express ) than receive data from Pipedrive API.
Now, I need Find all activities assigned from a particular user than were marked as done in the current week.
I using pipedrive library too.So acctualy my code is this:
await pipedrive.ActivitiesController.getAllActivitiesAssignedToAParticularUser({
userId: idUserPipedrive,
limit: 500,
done: 1
}, async (error, response, context) => {
if (error) throw error;
let activities = response.data
Thus I recive all finished activities from the specific user - ALL THE TIME
I need just the activities marked as done in the current week.
If i use start_date and end_date in the query like the API reference, I so recive the activities when the due date is between start and end date.
THE DUE DATE DON’T IS THE SAME DATE THEN THE MARKED AS A DONE!
CAN WE HELP ME? PLEASE