Create a New Record trigger using Polling trigger type

If you use polling type trigger, Zapier server keeps on polling Infinite Blue Platform private cloud server for new records.

Using the Polling trigger type could add an increased load on the platform's private cloud server.
  • Enter the required details as displayed in the below screenshot in the Settings tab of the Trigger form and click Save and Continue.

 

  • Now, navigate to Input Designer tab.

    1. Click Add User Input Field for Application.

      1. Add a key as application_name.

      2. Add a label as Application Name.

      3. Choose Type as String.

      4. Enable Required and Dropdown options.

      5. Select Dropdown Type as Dynamic.

      6. Select Dropdown Source as getApplications trigger from the dropdown.

      7. Select Field Name as IntegrationName from the dropdown.

      8. Select Field Label as DisplayName from the dropdown.

      9. Click Save.

    2. Now, add another user input field for objects. Click Add User Input Field.

      1. Add a key as object_name.

      2. Add a label as Object Name.

      3. Choose Type as String.

      4. Enable Required and Dropdown options.

      5. Select Dropdown Type as Dynamic.

      6. Select Dropdown Source as getObjects trigger from the dropdown.

      7. Select Field Name as IntegrationName from the dropdown.

      8. Select Field Label as SingularName from the dropdown.

      9. Click Save.

  • Now, navigate to API Configuration tab.

    1. In the Configure your API Request section:

      • Select Trigger Type as Polling

      • Switch to Code Mode and enter the below code in API Endpoint section. Then, click Save API Request & Continue.

        Copy
        const options = {  
          url: bundle.authData.url+'data/'+bundle.inputData.object_name,  
          method: 'GET',  
          headers: {  
            'Accept': 'application/json',  
            'JWT': bundle.authData.JWT  
          },  
          params: {  
          }  
        }  
        return z.request(options)  
          .then((response) => {  
            response.throwForStatus();  
            const results = z.JSON.parse(response.content);  
            return results.results;  
          });
    1. In the Test your API Request section: 

      • You are prompted to Sign in to Infinite Blue Platform account to test your Authentication. If you are already signed, select the existing account.
      • Provide the Application Integration Name and Object Integration Name as test values for the application_name and object_name fields.
      • When done, click Test Your Request. On successful request, click Finish Testing & Continue.

  1. In the Define your Output section:

    • Enter JSON-formatted sample output data or Use Response from Test Data and click Generate Output Field Definitions. When done, click Save Output & Finish.

You have now successfully created a Create New Record Trigger using Polling trigger type.