Skip to content

Moving items from one named bag to another #10046

Answered by Skrypt
DrewBrasher asked this question in Q&A
Discussion options

You must be logged in to vote

You will need to execute some SQL queries on your Document table to morph the JSON in the Content column. Search for SQL JSON Functions. The Named BagParts stores it's own data in the main content item JSON data. It basically allow to contain some more JSON data on a single content item (document). Moving data from one Named BagPart to the other should consist basically about changing the JSON Named BagPart name from "Section One" to "Section Two" of the JSON node.

You can't actually do this from the Admin UI. From code it could be done with some migration.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Skrypt
Comment options

@DrewBrasher
Comment options

Answer selected by DrewBrasher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants