Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hi,
There is a way to automatically create a folder in a project ?
Someone has an example like this in case create a folder within a project
Thanks for the info that can provide me.
example: create folder in aproduct.
Ezio,
You should be able to use similar code, but instead of instantiating a PDMLinkProduct you instantiate a Project2 object:
Project2 project= <SOMETHING>;
WTContainerRef projCref = WTContainerRef.newWTContainerRef(project);
SubFolder f4 = FolderHelper.service.createSubFolder("/Default/Folder4", project.getDefaultDomainReference(), projCref);
Hi Lori,
In case the project is different but thank you.
Ezio.
See this example of code java.
ObjectIdentifier oid = ObjectIdentifier.newObjectIdentifier("wt.projmgmt.admin.Project2:144335");
Project2 project = (Project2) PersistenceHelper.manager.refresh(oid);
WTContainerRef project_ref = WTContainerRef.newWTContainerRef(oid);