Closed brandonritchie closed 1 year ago
Hi @brandonritchie, how do you migrate objects - with mstrio-py module or manually via Workstation?
GET /api/shortcuts/{shortcutid}/bookmarks
and get_bookmarks_from_shortcut()
won't work for Dossiers, only for Shortcuts, which are standalone objects that represent links to other objects.
@urszulajaczewska we are creating a configuration package in Object Manager to move the dossier and its elements from one project to another. This keeps the same dossier id in both projects. I am then checking each dossier in the old project to see which users have that dossier in their library using the following python:
from mstrio.api import library
library.get_document(connection, dossier_id).json()['recipients']
I am then repopulating the user's library with the dossier in the new project using POST /api/library
.
This works fine but the user's bookmarks from the dossier in the old project are lost.
@brandonritchie could you try migrating via Workstation (tutorials available here) or via mstrio-py migration module (code snippet) and see if the issue with bookmarks still occurs?
@urszulajaczewska sorry for the late reply, but when we migrate it does not keep the bookmark. We really need to just be able to identify who has bookmarks.
We are in the process of migrating dossiers from one project to another. We are able to repopulate user's libraries with the dossiers in the new project, however bookmarks are lost. Ideally, we want to migrate this bookmark information but at a minimum we want a list of users and dossiers with bookmarks so that we can notify the user.
I have tried to use GET /api/shortcuts/{shortcutid}/bookmarks or the get_bookmarks_from_shortcut() function. I can't seem to get this call to work for dossiers and there doesn't seem to be much clarity on what a shortcutID is. Any guidance would be appreciated.