integration of commcare and salesforce

26 views
Skip to first unread message

Neha Wakchaware

unread,
Feb 6, 2018, 3:54:44 AM2/6/18
to OpenFn Community
Hi 

I want to insert data in salesforce whenver new record is created in commcare. can anybody help me with this ?

Taylor Downs

unread,
Feb 6, 2018, 5:53:32 AM2/6/18
to Neha Wakchaware, OpenFn Community
​​
Absolutely, happy to help. Here's the general flow:
  1. Start forwarding your form (or case) data to OpenFn from CommCare: https://openfn.github.io/docs/source-applications/#commcare-hq
  2. Create a trigger that will match on the form submissions you're looking for in CommCare: https://openfn.github.io/docs/documentation/#triggerYou'll probably want to have your trigger match on the CommCare formID, like this:
    {"formID":"patient_registration_v7"}
  3. Create a credential for your Salesforce system so that OpenFn can log in as you: http://openfn.github.io/docs/documentation/#credentials
  4. Create a job that inserts a new patient each time a CommCare submission arrives: http://openfn.github.io/docs/documentation/#composing-job-expressions 
    create("Patient__c", fields(
      field("Name", dataValue("form.surname")),
      field("Age__c", 7)
    ))
In the example above, you'll insert a new "Patient__c" who's always 7 years old and has their "Name" set by the "surname" field in your CommCare form.

I should note that Open Function offers a couple of hours of free setup consulting for non-profits and government projects. Please let me know if you'd like our help in setting up this first job.

Best,
Taylor

On Tue, Feb 6, 2018 at 5:54 AM, Neha Wakchaware <nwakc...@gmail.com> wrote:
Hi 

I want to insert data in salesforce whenver new record is created in commcare. can anybody help me with this ?

--
You received this message because you are subscribed to the Google Groups "OpenFn Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openfn+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/fcf347ef-5f19-461c-9f57-a916fd2b5d64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages