0

I am trying to set up a workflow were the content item is either deleted or moved to another folder, if rejected. No wfFunctions seems to be able to do this, only thing related to deleting content is the services, specifically the DELETE_DOC service. But i can't seem to figure out how to call it from the workflow step.

Related question: I have tried to wfUpdateMetaData on the xCollectionID, with no result. Is there a metadata/path i can change to move the file.

Thank you in advance

1 Answers1

0

You should be able to move the item by updating the folder. Note that wfUpdateMetaData will only update the latest revision.

Some additional reading:

Jonathan Hult
  • 1,351
  • 2
  • 13
  • 19
  • Thank you for the answer! I have tried updating the folder path using <$wfUpdateMetaData(xFolder, "/Contribution Folders/Archive Folder UCM/MYPATH/")$> but with no succes. I would be okay with only updating the latest revision, but is it possible to update a standard field like "folder"? – Johan Pedersen Feb 13 '18 at 08:47
  • Yes, you should be able to update a standard field such as 'folder'. Have you tried updating another field such as 'dDocTitle'? – Jonathan Hult Feb 14 '18 at 05:18
  • I have tried updating the title, with strange results. When i update the dDoctitle nothing happens in UCM, but in the notifikation email the item uses the proper changed name? – Johan Pedersen Feb 20 '18 at 10:25