Helpful-Libraries icon indicating copy to clipboard operation
Helpful-Libraries copied to clipboard

Make it possible to replace content items with an unknown ID using recipes (OSOE-648)

Open sarahelsaig opened this issue 1 year ago • 2 comments

Currently it's not possible to overwrite a content item with a recipe if its ContentItemId is unknown - for example if it was created from a recipe using "ContentItemId": "[js: uuid()]". We should include some recipe mechanism to get around this. Some ideas:

  1. Add a IGlobalMethodProvider that let's you find the ContentItemId from alias, e.g. "ContentItemId": "[js: idFromAlias('main-menu')]".
  2. Create a new recipe step that removes a content item by query.

I'm not sure if either of these is possible during setup, if the alias index may not be populated yet?

Jira issue

sarahelsaig avatar Jun 18 '23 15:06 sarahelsaig