As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi you may want give a look to the official JS-API documentation alfresco-js-api/SharedlinksApi.md at 728cbf5a4da1a57f4e9edaffe4b0efa5983c361d · Alfresco/alfresco-js-api · GitHub
Hi Eugenio,
The code there is for the API
var sharedId = "sharedId_example"; // The identifier of a shared link to a file.
this.alfrescoJsApi.core.sharedlinksApi.deleteSharedLink(sharedId).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
I am trying to figure out if the sharedID is a document property, aspect, attribute, or ?? Then I would like to write a Javascript that would remove it. From what I understand about the code above, I would already have to know the sharedID and then execute this using the API.
Tom
yep you should know the ID in order to delete it
Yep, I need to know the shareID in order to delete it. That means I have to be able to write a Javascript that can get the ID when the document enters the folder. But I do not know if the ID is a property, category, tag, aspect or something else.
Any ideas?