Git Product home page Git Product logo

sfcc-bm-cli's Introduction

Parse and generate XML to batch delete slot configs in Salesforce Commerce Cloud

Usage

sfcc-bm -i <path to file> -a <age in weeks>

  1. Log into Demandware and export content slots
  2. Run the cli
  3. Upload the XML file
  4. Import the XML file
  5. After Demandware validates the file, click Next
  6. Choose the delete option and click Next
  7. Demandware will batch delete all the configs in the XML

There are a couple of ways that you can validate the deletions:

  1. If you have Admin rights, navigate to Administration -> Operations -> Quota Status and check the number of slot configs. It should be less than what it was before.
  2. Export the slot configs again from Salesforce and rerun the above steps with the same age parameter you used previously. There shouldn't be any slot configs.

Tips

  • Find the oldest slots first, meaning, start batching with small collections.
  • Don't batch delete hundreds or thousands in one step.
  • Review the generated XML before uploading/importing into Demandware.
  • If possible, batch delete in a lower environment other than the staging environment.

Known Limitations

The use of special characters in your category IDs may cause Salesforce's XML validation to fail. There's 2 things you can do:

  1. Change the category ID in Business Manager and then repeat the above usage steps.
  2. If you can't change the ID in Business Manager, then find the offending slot configurations in the XML file and remove them. Note that the old configurations will not be deleted this round, so keep that in mind when running through the steps in the future.

sfcc-bm-cli's People

Contributors

webtoast avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.