Hi @czue, Is there any open source solution/technology for those integrations? I want to avoid zapier. Does commcare API provide event-driven solution for this? for example if commcare create a contact, it'd trigger hubspot API to update their data. Is this possible? Should I need to setup a server?
Thanks
Commcare does have a data forwarding API that is event-driven, but only for forms and cases. If your contacts are cases then you might be able to set something up, but I'm guessing you'd still need an intermediary process to translate between CommCare's format and what hubspot expects. If your contacts are users then you'd currently have to do a polling method on the User API.
Thanks for the hints @czue, really appreciate it. My cases are to communicate and synchronize data from commcare and hubspot and vice versa. From an example earlier, a contact created on commcare would be synchronized with data on hubspot. also lead created on hubspot would be added in commcare contact. also many others data would be back and forth between commcare and hubspot. They are still vague on me how to make that happen. I'd really appreciate if there is a tutorial about this (no need to be specifically with hubspot). I'm still learning about commcare Data Forwarding and Enabling Data Integration (Form and Case Forwarding).
Hi @czue, Does Commcare API support webhook and provide notification to track any changes in near real-time instead of polling the server for changes?
Thanks
I don't have firsthand experience with OpenFn, but I have heard great things and definitely think it could be worth exploring.
The CommCare HQ data forwarding infrastructure is the closest thing that we have to webhooks. They will send a push payload to a configured endpoint when forms are received or cases are changed.
Sorry for very late response, it's been busy lately. Thanks for the pointer. Really appreciate it.
I've just setup the data forwarding on a commcare app. Also I already have a server and url domain for this data forwarding. the test link is good. But I'm struggling with the data capture (payload) from the data forwarding just for a start. I have a php file for this.
So basically I want to capture the payload then write it in a file. But I always get empty data. The payload format use JSON. How to get the payload on my php file? Can you enlighten me? Sorry for very basic question. Thanks.
EDITED:
Sorry, I modified the php script a bit. Now I can get the expected payload.
Apologies, but I'm afraid I won't be able to help with that level of debugging. If you can convince yourself that CommCare is doing something incorrectly don't hesitate to report a bug.
Configure a "job" in OpenFn to transform & map your data to a destination application (Hubspot). OpenFn can be configured to execute any Hubspot actions permitted via its REST API (see its API docs here)
Turn "on" your OpenFn job to auto-process so that data flows in near real-time from CommCare to Hubspot
See here for an OpenFn platform overview & demo of a CommCare-to-Salesforce integration, but let me know if interested in learning more! We offer a free OpenFn plan for those interested in prototyping & trying out the platform.