Oncord Community Logo
    • Recent
    • Popular
    • Register
    • Login

    How to integrate Zapier with Oncord

    Oncord Discussion
    2
    2
    368
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dhondup
      last edited by

      Hi,

      I am looking for ways to integrate Zapier to Oncord.

      I have a Zapier webhook that collects some clients info. I want those clients contact details saved to Oncord contacts and want to trigger few automations like send email to the client and also a SMS.

      What would be the best way to do this?

      Thanks.

      jacobgreenawayJ 1 Reply Last reply Reply Quote 0
      • jacobgreenawayJ
        jacobgreenaway @dhondup
        last edited by jacobgreenaway

        @dhondup

        While I'm not intimately familiar with Zapier's interface and don't have access to an account to test thoroughly, my understanding is that something like the following should get you most of the way:

        Option One: Webhook Method

        Create a Zap in Zapier

        1. Log in to Zapier.
        2. Create a New Zap
        3. Set up the Trigger:
        • Choose "Webhooks by Zapier" as the trigger app.
        • Select "Catch Hook" as the trigger event.
        • Copy the unique webhook URL provided by Zapier.

        Code Integration

        1. Create or Edit Your Form
        2. Define a PHP Function: In the PHP tab (SRC view), define a function to send data to the webhook URL. For example:
        function sendToZapier($formData) {
            $webhookUrl = "https://hooks.zapier.com/hooks/catch/123456/abcde"; // Your webhook URL
            $payload = json_encode($formData);
            
            $ch = curl_init($webhookUrl);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type:application/json']);
            curl_setopt($ch, CURLOPT_POST, 1);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
            curl_exec($ch);
            curl_close($ch);
        }
        
        1. Link the Function to the Form Submission: Use the onsubmitserver attribute in your form's HTML to call this function on form submission:
        <forms:form id="my_form" onsubmitserver="sendToZapier($my_form.getValues())">
            <forms:row label="Field 1">
                <forms:editbox id="field_1" />
            </forms:row>
            <forms:row label="Field 2">
                <forms:editbox id="field_2" />
            </forms:row>
            <forms:row type="one_column" align="center">
                <forms:submitbutton value="Submit" />
            </forms:row>
        </forms:form>
        

        You can review using onsubmitserver to call functions in the API documentation here​.

        Option Two: Email Parser Method

        Set Up the Zapier Email Parser

        1. Log in to Zapier Email Parser: Go to https://parser.zapier.com/ and log in or create an account.
        2. Create a Mailbox: Follow the instructions to create a new mailbox. You will receive a unique email address (e.g. your_mailbox@robot.zapier.com).

        Code Integration

        1. Create or Edit your form
        2. Add a onsubmitemail attribute to your form with your Zapier email address. *Note that you can add multiple email addresses by comma separating.

        Example: <forms:form id="myform" onsubmitemail="admin@mydomain.com, your_mailbox@robot.zapier.com">

        Test the Integration

        1. Fill out and submit your form.
        2. Verify in Zapier: If using the Webhook method, check the Zapier dashboard to ensure the webhook is receiving the form data correctly. For the Email Parser, Check your Zapier inbox and follow the instructions to correctly parse the form submission data.
        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Features
        • Website
        • Customer Database
        • Digital Marketing
        • Sell Online
        • Integrations
        Help & Resources
        • Contact Support
        • Learning Centre
        • Latest News
        • Developer Resources
        Oncord
        • Contact Us
        • Client Stories
        • Partner Program
        • Agency Login
        Legal
        • Software: EULA
        • Support & Professional Services
        • Reseller Agreement

        © 2023 Oncord. All Rights Reserved.