cs-icon.svg

Bulk Operations App Installation Guide

The Bulk Operations Marketplace app in Contentstack allows you to perform various operations on bulk content together in one go. The app includes operations for updating multiple entries within the Contentstack environment. Bulk operations are a great way to save time and effort, as you can perform operations on bulk data in a single request, increasing efficiency, improves performance and the overall user experience.

The Bulk Operations app enables you to use the following operation:

Entries: Bulk operations for Contentstack Entries, allow you to perform bulk publishing, unpublishing, and deleting multiple entries at once. This helps content editors save time when performing repetitive tasks on more than one entry.

Assets: Bulk operations on Contentstack Assets, allow you to perform multiple asset-related operations such as uploading, publishing, unpublishing, and deleting in bulk. Bulk operations are available for images and videos stored within the Assets section of CMS.

Releases: Bulk operations on Contentstack Releases, allow you to add multiple entries and assets at once and also create a new release. This benefits faster deployments and greater visibility into the content publishing process.

Find and Replace: The Find and Replace operation quickly searches for a specific text, such as a word or a phrase, and replaces it with another. The app lets you edit the text in multiple entries at once. It can correct typos or spelling mistakes, update outdated information, and make changes throughout the content.

Prerequisites

Let's follow this step-by-step guide to install and configure the Bulk Operations app within your stack.

Steps for Execution

  1. Install and Configure the Bulk Operations app in Contentstack Marketplace
  2. Use Bulk Operations within your Stack
  1. Install and Configure the Bulk Operations app in Contentstack Marketplace

    Follow the steps to install the application in Contentstack.

    1. Log in to your Contentstack account.
    2. In the left-hand side primary navigation, click the Marketplace icon to go to the Marketplace.
      Marketplace_Icon
    3. Click Apps from the left panel.
    4. Within the Marketplace, you can see all the available apps. Hover over the Bulk Operations app and click Install App.
      Bulk_Operations_App
    5. In the popup window, select the stack where you want to install the Bulk Operations app and click the Install button.
      Bulk-Operations-Install-App
    6. On the UI Locations tab, you can see the predefined app locations. You can use the toggle button corresponding to each UI location to enable or disable it based on your requirements. Bulk-Operations-UI-Locations
    7. If the webhook is enabled for your app, you can view the webhook logs under the Webhook tab.
    8. Additional Resource: For more information on UI location and webhooks, please refer to the Installed Apps guide.

      Note: No additional configuration is required to use the Bulk Operations app.

  2. Use Bulk Operations within your Stack

    You can use the Dashboard Widget to use the Bulk Operations application in your stack.

    Follow the steps given below to use the Bulk Operations application:

    1. Log in to your Contentstack account.
    2. Go to the stack dashboard to view the Bulk Operations app Dashboard Widget within your CMS.
      Bulk-Operations-Dashboard
    3. Entries Operation

      1. Click Entries to perform bulk operations like publish, unpublish, and delete on entries.
        Bulk-Operations-Entries
      2. In the Dashboard Widget, choose the Content Type from all the available content types of your stack.
        Bulk-Operations-Entries-Select-Content-Type
        You can see all the entries of the selected content type.
        Bulk-Operations-Entries-Selected-Content-Type-And-Entries
      3. Now select the entries and click Publish to publish all the selected entries at once.
        Bulk-Operations-Entries-Publish
      4. In the Publish Entries modal, select the Environment(s), Language is, by default, selected, choose the Publish option, then click Send to start publishing all the selected entries.
        Bulk-Operations-Entries-Publish-Modal
        After successful publishing of entries, you can see the published status.
        Bulk-Operations-Entries-Published
        Hover over the entry to view entry in the entry editor and view the status in the publish queue.
        Bulk-Operations-Entries-Published-View-Options
      5. If you want to unpublish the entries, select entries and click Unpublish.
        Bulk-Operations-Entries-Unpublish
      6. In the Unpublish Entries modal, select the Environment(s), Language is, by default, selected, choose the Unpublish option, then click Send to start unpublishing all the selected entries.
        Bulk-Operations-Entries-Unpublish-Modal
        After successful unpublishing of entries, you can see the unpublished status.
        Bulk-Operations-Entries-Unpublished
        Hover over the entry to view entry in the entry editor and view the status in the publish queue.
        Bulk-Operations-Entries-Unpublished-View-Options
      7. The Delete button can delete all the selected entries of the respective locale and move them to trash.
        Bulk-Operations-Entries-Delete
      8. In the Delete Entries modal, click Delete to delete all the selected entries.
        Bulk-Operations-Entries-Delete-Modal
        After successful deletion, you can see the status.
        Bulk-Operations-Entries-Deleted
        Hover over the entry to view the entry in trash.
        Bulk-Operations-Entries-Deleted-View-In-Trash
      9. Click the Reset button to reset the content type field to start a new search.
        Bulk-Operations-Entries-Reset
      10. Confirm and click the Reset button again to reset the content type dropdown.
        Bulk-Operations-Entries-Reset-Modal

      Assets Operation

      1. Click Assets to upload, publish, unpublish, and delete assets.
        Bulk-Operations-Assets
      2. In the Dashboard Widget, you can see all the assets and assets folders. Click the + New Asset button for adding new assets in your stack.
        Bulk-Operations-Assets-Add-New-Assets
      3. You can directly upload assets or you can create a folder and upload assets by clicking the Upload Here button.
        Bulk-Operations-Assets-Upload-Here
        You get a confirmation message for successful uploading of assets.
        Bulk-Operations-Assets-Added

        Note: You can upload ten assets at a time.

      4. Now select the assets and click Publish to publish all the selected assets at once.
        Bulk-Operations-Assets-Publish
      5. In the Publish Assets modal, select the Environment(s), Language is, by default, selected, choose the Publish option, then click Send to start publishing all the selected assets.
        Bulk-Operations-Assets-Publish-Modal
        After successful publishing of assets, you can see the published status.
        Bulk-Operations-Assets-Published
        Hover over the asset to view in the assets section and view the status in the publish queue.
        Bulk-Operations-Assets-Published-View-Options
      6. If you want to unpublish the assets, select assets and click Unpublish.
        Bulk-Operations-Assets-Unpublish
      7. In the Unpublish Assets modal, select the Environment(s), Language is, by default, selected, choose the Unpublish option, then click Send to start unpublishing all the selected assets.
        Bulk-Operations-Assets-Unpublish-Modal
        After successful unpublishing of assets, you can see the unpublished status.
        Bulk-Operations-Assets-Unpublished
        Hover over the asset to view in the assets section and view the status in the publish queue.
        Bulk-Operations-Assets-Unpublished-View-Options
      8. The Delete button can delete all the selected assets and move them to trash.
        Bulk-Operations-Assets-Delete
      9. In the Delete Assets modal, click Delete to delete all the selected assets.
        Bulk-Operations-Assets-Delete-Modal
        After successful deletion, you can see the status.
        Bulk-Operations-Assets-Deleted
        Hover over the asset to view the asset in trash.
        Bulk-Operations-Assets-Deleted-View-In-Trash
      10. Click the Reset button to reset the dashboard to start a new search.
        Bulk-Operations-Assets-Reset
      11. Confirm and click the Reset button again to reset the dashboard view.
        Bulk-Operations-Assets-Reset-Modal

      Releases Operation

      Click Releases to add multiple entries and assets to a release or create a new release.

      Bulk-Operations-Releases

      Add Entries to a Release

      1. In the Dashboard Widget, click Entries to add entries to a release.
        Bulk-Operations-Releases-Add-Entries
      2. Choose the Content Type from all the available content types of your stack.
        Bulk-Operations-Releases-Entries-Choose-Content-Type
        You can see all the entries of the selected content type.
        Bulk-Operations-Releases-Entries
        Hover over the entry to display the View Entry button, and then click the View Entry button to open the entry editor.
        Bulk-Operations-Releases-View-Entry

        Note: To change the language, click the Locales dropdown in the top-right corner of the dashboard and choose the required locale.

      3. Now select the entries and click Add to Release to add all the selected entries to the release at once.
        Bulk-Operations-Releases-Entries-Add-To-Release
      4. In the Add to Release modal, select Release, Language, by default, is selected, choose the Publish or Unpublish Action option, then click the + Add To Release button to add all the selected entries to the existing release.
        Bulk-Operations-Releases-Entries-Modal
      5. Also, you can create a new release using the + Create Release option in the Select Release dropdown.
        Bulk-Operations-Releases-Entries-Create-Release
      6. In the Create A New Release modal, enter the Name and Description of the release and click Create.
        Bulk-Operations-Releases-Create-Release-Modal
        A new release is created and can be seen in the Select Release dropdown options.
      7. Note: You can add up to 25 entries to a release in one instance.

      Add Assets to a Release

      1. In the Dashboard Widget, click Assets to add assets to a release.
        Bulk-Operations-Releases-Add-Assets
      2. Choose any Asset from all the available assets and assets folder.
        Bulk-Operations-Releases-Assets-And-Folders
        Hover over the asset to display the View Asset button, and then click the View Asset button to view it in CMS.
        Bulk-Operations-Releases-View-Assets
      3. Now select the assets and click Add to Release to add all the selected assets to the release at once.
        Bulk-Operations-Releases-Assets-Add-To-Release
      4. In the Add to Release modal, select Release, select Languages, choose the Publish or Unpublish Action option, then click the + Add To Release button to add all the selected assets to the existing release.
        Bulk-Operations-Releases-Assets-Modal
      5. Also, you can create a new release using the + Create Release option in the Select Release dropdown.
        Bulk-Operations-Releases-Assets-Create-Release
      6. In the Create A New Release modal, enter the Name and Description of the release and click Create.
        Bulk-Operations-Releases-Create-Release-Modal
        A new release is created and can be seen in the Select Release dropdown options.
      7. Note: You can add up to 25 assets (including the locale versions) to a release in one instance.

      Additional Resource: To know more about Releases, please refer to Create and Manage Releases documentation.

      Find and Replace Operation

      1. Click Find and Replace to search and replace the content in the entries.
        Bulk-Operations-Find-And-Replace
      2. In the Dashboard Widget, enter the following mandatory details:
        1. Select the Content Type from all the available content types of your stack.
        2. Select the Locale from the available languages.
        3. The Field Name/Path dropdown shows all fields of the selected content type. Choose the field in which you want to search the content.

          Note: Field Name/Path signifies the Unique ID of the field, which is generated when you add a field in the content type.

        4. Enter a word or phrase in the Search Value field for searching.

          Note: The search value is case-sensitive.

        Bulk_Operations_Find_And_Replace_Filters
      3. Click the Search button to find the search values in the entries of that content type.
        Bulk_Operations_Find_And_Replace_Find

        Note: After the search results for entries are generated, the Replace button is enabled.

      4. In the Replace Value field, enter a word or phrase which you want to replace, select the entries from the searched items, and then click the Replace button.
        Bulk_Operations_Find_And_Replace_Replace

        Note: The replace value is case-sensitive.

      5. In the Replace Entry Fields modal, you can see the Search Value, Replace Value, and the total number of Fields to be updated. Click the Replace button again to replace and update the searched text in the entries.
        Bulk_Operations_Find_And_Replace_Replace_Confirm
        After updating the content successfully, the status changes to Success. Scroll right to view the status and message.
        Bulk_Operations_Find_And_Replace_Replace_Status

        Note: Every Replace action creates a new version of an entry being updated.

      6. Now, select the entries and click the Publish button for bulk publishing.
        Bulk_Operations_Find_And_Replace_Publish
      7. In the Publish Entry modal, select the Environment(s), Language is, by default, selected, choose the Publish option, then click Send to start publishing all the selected entries.
        Bulk_Operations_Find_And_Replace_Publish_Confirm

        Note: The app takes into account the Language which is configured at the time of selecting the locale in the Search filters.

        After publishing the entries successfully, the status changes to Success with a confirmation message. For unsuccessful publishing, the status changes to Fail with an error message.
        Bulk_Operations_Find_And-Replace_Published_Entries

        Note: You cannot perform search, replace, and publish if it is restricted in your custom roles permissions. For more details, refer to the Custom Roles documentation.

      8. Click the Reset button to reset all the fields to start a new search.
        Bulk_Operations_Find_And_Replace_Reset_Button
        Confirm and click the Reset button again to reset the search filters.
        Bulk_Operations_Find_And_Replace_Reset_Button_Confirm
        You can also reset the filters by updating any value in the mandatory filters.
        Bulk_Operations_Find_And_Replace_Reset_Filter

      Find and Replace based on Field Types

        You can apply the Find and Replace Bulk operation based on the field types. The app supports all the Text Fields, Number, Date (without Time), Boolean, and References.

        Note: The app currently does not support Select, Date (with Time), File, and Custom fields.

        Let’s apply the Find and Replace operation on different Content Type Fields.

      1. Text Fields: You can apply search on all the text-supported fields such as Title, URL, Single Line Textbox, Multi Line Textbox, HTML-based Rich Text Editor, JSON Rich Text Editor, Markdown, and Link.
        Enter the Search Value text, click Search, then enter the Replace Value text, select the entries, and then click the Replace button to update the content in all the selected field instances at once.
        Bulk_Operations_Find_And_Replace_Text_Field
        The Fields Name/Path displays the Unique ID of the field along with the field instance number in which the content is found and replaced. For example, single_line is the Unique ID, and [0] signifies the first single line textbox within the entry.
        When you select and replace the content in multiple instances of an entry, the entry is updated once for all the replaced values, and then this updated version of an entry is published.
        Bulk_Operations_Find_And_Replace_Text_Field_Publish
      2. Number: You can apply the find and replace operation on the entire number.
        Bulk_Operations_Find_And_Replace_Number_Field
      3. Date (with Hide Time): You can use the search filter only on dates, not time.

        Note: When adding a Date field to the content type, go to the Advanced properties, and select the Hide Time checkbox from the options provided.

        Select any date in the Search Value date selector and replace it with another date selected in the Replace Value date selector.
        Bulk_Operations_Find_And_Replace_Date_Field
      4. Boolean: You can apply the search filter to change the Boolean value to True if it is set to False and vice versa.
        Bulk_Operations_Find_And_Replace_Boolean_Field
      5. References: You can use the Find and Replace operation in two ways:
        1. When the entry is referenced in one content type.
          Select a referenced entry in the Search Value dropdown and replace it with another referenced entry selected in the Replace Value dropdown.
          Bulk_Operations_Find_And_Replace_Reference_Field
        2. When the entry is referenced in more than one content type.
          Select the content type in the Search Value dropdown, then select the referenced entry from another dropdown. Similarly, in the Replace Value dropdown, select the content type first and then select the referenced entry to be updated.
          Bulk_Operations_Find_And_Replace_Multiple_Reference_Field
      6. Note: The app also supports all the supported fields inside the Modular Blocks, Group, and Global fields.

Was this article helpful?
^