Cannot fetch `last_activity_time` for deals.
As per the docs, last_activity_time
has been removed from the V2 APIs. We can however get it now by including last_activity_id
as optional fields.
However, sometimes it seems I am not able to fetch either last_activity_id
or I am not able to find the last_activity_time
from the Activity API using the last_activity_id
. I can do more digging around, was a bit difficult as this issue did not occur in staging, but happened in production. Just wanted to confirm if any of these are optional in nature.
Answers
-
Hello @tacomania,
I hope you are doing well today!
Which endpoint are you trying to use?
I just used the following endpoint and successfully retrieved the last_activity_id. The only time any of these values would be null is if no activity associated with it has been marked as completed. For example, see: https://sharing.pipedrive.com/i/YWmNtj
The Activity ID will always appear, and with that, you can determine when the activity was marked as completed by using the "Get details of an activity" endpoint. This will return the "marked_as_done_time," which represents the time the activity was last marked as done.
I hope this helps!
0