Create getObjects Trigger

This trigger returns the list of objects. This trigger is for internal purposes only. This trigger is used in another trigger or action utilizing the object’s meta data API.

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.

      • Add a key as application_name.

      • Add a label as Application Name.

      • 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+'meta/objects?appIntegrationName='+bundle.inputData.application_name+'&onlyDefNames=false',  
          method: 'GET',  
          headers: {  
            'Accept': 'application/json',  
            'JWT': bundle.authData.JWT,  
            'Content-Type': 'application/json'  
          },  
          params: {  
            }  
        }  
          return z.request(options)  
          .then((response) => {  
            response.throwForStatus();  
            const results = z.JSON.parse(response.content);  
              return results.results;  
          });
    2. 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 a test value for the application_name field.
      • When done, click Test Your Request. On successful request, click Finish Testing & Continue.

    3. 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 the getObjects Trigger.