Created a way to calculate last and next interaction on Deal level.
I didn’t find a way with automations to calculate the last / next interaction related to a deal.
I created two custom Deals attributes and automated the completion with the Attio API and an Azure Function App.
Here's an overview of the steps I followed:
Dynamic attribute extraction: Fetched the object and attribute IDs for deals and people dynamically from Attio's API.
Interaction fetching: For each deal, I retrieve the associated people's "Last" and "Next" interactions.
Deal updates: I update the interaction fields for each deal using Attio's API.
This setup is fully automated via a time-triggered Azure Function running daily.
Can now make some extra logic to automate deal stalling notifications.
Feel free to reach out - happily share the code.