Contentstack Trigger

The Contentstack trigger lets you add Contentstack-specific trigger events, such as the creation/updating/publishing/unpublishing/deletion/deployment, etc., of workflows, entries, releases, global fields, assets, and/or content types.

Set up Contentstack

You will find the following trigger events for the Contentstack trigger:

Let’s look at each of them in detail.

Workflow Trigger

The Workflow Trigger event lets you trigger an automation when a workflow stage changes.

Let’s look at the steps to set up the trigger event.

  1. In the Configure Trigger section, select the Contentstack connector.
    Choose_Trigger.png
  2. Under Select a Trigger tab, select Workflow Trigger.
    Select_A_Trigger.png
  3. In the Configure Trigger tab, click on + Add New Account to add your Contentstack account.
    Add_An_Account.png
  4. A Permissions window opens. Provide the OAuth permissions for all the module-specific factors and click on Authorize.
    Authorize_Popup.png
  5. Select the Organization where you want to apply the Automation.
    Choose_Organization.png
  6. In the pop-up that appears, view the module-specific access rights provided to the app. Click on Authorize to complete authorization.
    Complete_Authorization.png

    Note: You need to scroll down to view all the permissions.

  7. Set the Account Name and click on Save.
    Set_Account_Name.png
  8. Select the trigger event from the dropdown, i.e., Workflow Stage Changed.
    Select_An_Event.png
  9. Select a Stack from the LOOKUP dropdown where you want to apply the Automation.
    Select_Stack.png
  10. Select a Content Type from the LOOKUP list.
    Select_Content_Type.png
  11. Under Select Workflow, select your workflow from the LOOKUP list.
    Select_Workflow.png
  12. Click on the Show optional fields toggle if you want to select a specific workflow stage.
    Select_Stage.png
  13. Click on Proceed.
    Proceed.png
  14. Click on Test Trigger to execute and test the trigger that you configured.
    Test_Trigger.png
  15. If successful, you will see an output as follows. If it looks appropriate, click on Save and Exit.
    Save_And_Exit.png

This sets your Workflow trigger.

Entry Trigger

The Entry Trigger event lets you trigger an automation when you create/update/publish/unpublish/delete entries.

Let’s look at the steps to set up the trigger event.

  1. Under Select a Trigger tab, select Entry Trigger.
    Select_A_Trigger.png
  2. In the Configure Trigger tab, click on + Add New Account to add your Contentstack account.
    Add_An_Account.png
  3. A Permissions window opens. Provide the OAuth permissions for all the module-specific factors and click on Authorize.
    Authorize_Popup.png
  4. Select the Organization where you want to apply the Automation.
    Choose_Organization.png
  5. In the pop-up that appears, view the module-specific access rights provided to the app. Click on Authorize to complete authorization.
    Complete_Authorization.png

    Note: You need to scroll down to view all the permissions.

  6. Set the Account Name and click on Save.
    Set_Account_Name.png
  7. Select the trigger event from the dropdown, i.e, New Entry.
    Select_An_Entry.png
    For Entries, you will find the following module-specific sub-events:
    • New entry: Triggers when you create a new entry
    • Entry Updated: Triggers when you update an entry
    • Entry Deleted: Triggers when you delete an entry
    • Entry Published: Triggers when you publish an entry
    • Entry Unpublished: Triggers when you unpublish an entry
    • Entry Publish Failed: Triggers when an entry publish activity fails
    • Entry Unpublish Failed: Triggers when an entry unpublish activity fails
    • ALL: Triggers when you perform any of the above activities on an entry
  8. Select a Stack to which the entry belongs from the LOOKUP dropdown. Click on Show optional fields to select a specific content type and environment.
    Select_Stack.png
  9. Click on Proceed.
    Proceed.png
  10. Click on Test Trigger to execute and test the trigger that you configured.
    Test_Trigger.png
  11. If successful, you will see an output as follows. If it looks appropriate, click on Save and Exit.
    Save_And_Exit.png

This sets your Entry trigger.

Release Trigger

The Release Trigger event lets you trigger an automation when you deploy a release in an environment.

Let’s look at the steps to set up the trigger event.

  1. Under Select a Trigger tab, select Release Trigger.
    Select_A_Trigger.png
  2. In the Configure Trigger tab, click on + Add New Account to add your Contentstack account.
    Add_An_Account.png
  3. A Permissions window opens. Provide the OAuth permissions for all the module-specific factors and click on Authorize.
    Authorize_Popup.png
  4. Select the Organization where you want to apply the Automation.
    Choose_Organization.png
  5. In the pop-up that appears, view the module-specific access rights provided to the app. Click on Authorize to complete authorization.
    Complete_Authorization.png

    Note: You need to scroll down to view all the permissions.

  6. Set the Account Name and click on Save.
    Set_Account_Name.png
  7. Select the trigger event from the dropdown, i.e., Release Deployed.
    Select_An_Event.png
  8. Select a Stack from the LOOKUP dropdown. Click on Show optional fields to select a specific release name and environment to which you want to deploy the release.
    Select_Stack.png
  9. Click on Proceed.
    Proceed.png
  10. Click on Test Trigger to execute and test the trigger that you configured.
    Test_Trigger.png
  11. If successful, you will see an output as follows. If it looks appropriate, click on Save and Exit.
    Save_And_Exit.png

This sets your Release trigger.

Global Field Trigger

The Global Field Trigger event lets you trigger an automation when you create/update/delete global fields.

Let’s look at the steps to set up the trigger event.

  1. Under Select a Trigger tab, select Global Field Trigger.
    Select_A_Trigger.png
  2. In the Configure Trigger tab, click on + Add New Account to add your Contentstack account.
    Add_An_Account.png
  3. A Permissions window opens. Provide the OAuth permissions for all the module-specific factors and click on Authorize.
    Authorize_Popup.png
  4. Select the Organization where you want to apply the Automation.
    Choose_Organization.png
  5. In the pop-up that appears, view the module-specific access rights provided to the app. Click on Authorize to complete authorization.
    Complete_Authorization.png

    Note: You need to scroll down to view all the permissions.

  6. Set the Account Name and click on Save.
    Set_Account_Name.png
  7. Select the trigger event from the dropdown, i.e., Global Field Created.
    Select_An_Event.png
    For Global Field, you will find the following events:
    • Global Field Created: When you create a global field.
    • Global Field Updated: When you update a global field.
    • Global Field Deleted: When you delete a global field.
    • ALL: When you perform any of the above activities on a global field.
  8. Select a Stack from the LOOKUP dropdown . Click on Show optional fields to select a specific global field.
    Select_Stack.png
  9. Click on Proceed.
    Proceed.png
  10. Click on Test Trigger to execute and test the trigger that you configured.
    Test_Trigger.png
  11. If successful, you will see an output as follows. If it looks appropriate, click on Save and Exit.
    Save_And_Exit.png

This sets your Global Field trigger.

Asset Trigger

The Asset Trigger event lets you trigger an automation when you create/update/publish/unpublish/delete assets.

Let’s look at the steps to set up the trigger event.

  1. Under Select a Trigger tab, select Asset Trigger.
    Select_A_Trigger.png
  2. In the Configure Trigger tab, click on + Add New Account to add your Contentstack account.
    Add_An_Account.png
  3. A Permissions window opens. Provide the OAuth permissions for all the module-specific factors and click on Authorize.
    Authorize_Popup.png
  4. Select the Organization where you want to apply the Automation.
    Choose_Organization.png
  5. In the pop-up that appears, view the module-specific access rights provided to the app. Click on Authorize to complete authorization.
    Complete_Authorization.png

    Note: You need to scroll down to view all the permissions.

  6. Set the Account Name and click on Save.
    Set_Account_Name.png
  7. Select the trigger event from the dropdown, i.e., Asset Created.
    Select_An_Event.png
    For Asset Trigger, you will find the following events:
    • Asset Created: When you create a new asset in your stack.
    • Asset Updated: When you update an asset.
    • Asset Deleted: When you delete an asset.
    • Asset Published: When you publish your assets to a publishing environment.
    • Asset Publish Failed: When asset publishing fails due to error.
    • Asset Unpublished: When you unpublish or remove your assets from a publishing environment.
    • Asset Unpublish Failed: When the asset unpublishing activity fails.
    • ALL: When you perform any of the above activities on an asset.
  8. Select a Stack from the LOOKUP dropdown.
    Select_Stack.png
  9. Click on Proceed.
    Proceed.png
  10. Click on Test Trigger to execute and test the trigger that you configured.
    Test_Trigger.png
  11. If successful, you will see an output as follows. If it looks appropriate, click on Save and Exit.
    Save_And_Exit.png

This sets your Asset Trigger.

Content Type Trigger

The Content Type Trigger event lets you trigger an automation when you create/update/delete content types.

Let’s look at the steps to set up the trigger event.

  1. Under Select a Trigger tab, select Content Type Trigger.
    Select_A_Trigger.png
  2. In the Configure Trigger tab, click on + Add New Account to add your Contentstack account.
    Add_An_Account.png
  3. A Permissions window opens. Provide the OAuth permissions for all the module-specific factors and click on Authorize.
    Authorize_Popup.png
  4. Select the Organization where you want to apply the Automation.
    Choose_Organization.png
  5. In the pop-up that appears, view the module-specific access rights provided to the app. Click on Authorize to complete authorization.
    Complete_Authorization.png

    Note: You need to scroll down to view all the permissions.

  6. Set the Account Name and click on Save.
    Set_Account_Name.png
  7. Select the trigger event from the dropdown, i.e., Content Type Created.
    Select_Event.png
    For Content Type Trigger, you will find the following events:
    • Content Type Created: When you create a new content type.
    • Content Type Updated: When you update a content type.
    • Content Type Deleted: When you delete a content type.
    • ALL: When you perform any of the above activities on a content type.
  8. Select a Stack from the LOOKUP dropdown. Click on Show optional fields to select a specific content type.
    Select_Stack.png
  9. Click on Proceed.
    Proceed.png
  10. Click on Test Trigger to execute and test the trigger that you configured.
    Test_Trigger.png
  11. If successful, you will see an output as follows. If it looks appropriate, click on Save and Exit.
    Save_An_Exit.png

This sets your Content Type trigger.

Was this article helpful?

Thanks for your feedbackSmile-icon

On This Page

^