This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

hitting an API multiple times from one form submission


  1. rocketmedia
    Member

    I'm wanting to connect Machform submissions to a CRM called Service Titan, they have a RESTful API but I need to hit the API to create a Customer get that Customer ID back from the API, use that ID to hit the API to create a Location and then get that Location ID back from the API and hit the API once again with the customer and location IDs to create a Job.

    I'm assuming this is not possible with the built in machform functionality. Is there a way to use the custom_hooks.php to do something like this? Is there any sort of documentation regarding that?

    Posted 8 years ago #
  2. yuniar

    I'm afraid it's not possible to do subsequent multiple API calls. You'll need to create your own custom script that do those multiple calls and configure the form to simply call your custom script.

    The custom_hooks.php file is not available for that purpose. It's actually a deprecated file that we might remove in the future.
    It was being used to send notification email to multiple email addresses based on dropdown field.


    MachForm Founder

    Posted 8 years ago #

RSS feed for this topic

Reply