Hay Everyone,
Is it possible to set the Library location within the OIR for a Change Request?
Currently, I have the OIR place the CR in a folder called 'Change Requests' but I would like all CR's created in any Library or Product context to be placed in that one Library / Folder.
Possible?
Arg>/Default/Change Requests</Arg>
PTC says no, can't do it
Hi @LG_10096154
The thread describes how to test the context name not how to set it.
So there is no way how to set the product/library name in the OIR
You can create a listener customization that sets the context post save
PetrH
Not possible OOTB , OIR is within context scope , you need a listener on CR creation and move them by APIs to that library
you can set location to your target context in a workflow expression robot, and tie the Workflow to your object using OIR to assign an advanced Lifecycle, calling the WF .
something like below , where I will create a document in a library and it will b e 'Auto Moved' to a product
//get 'Product AllDocs/Docs' folder
ObjectIdentifier oidF = ObjectIdentifier.newObjectIdentifier("wt.folder.SubFolder:5654784");
wt.folder.Folder f = (wt.folder.Folder) wt.fc.PersistenceHelper.manager.refresh(oidF);
//move the PBO to the 'Product AllDocs/Docs' folder
wt.folder.FolderHelper.service.changeFolder((wt.folder.FolderEntry )primaryBusinessObject, f );
System.out.println( "Moved !");