Forum Discussion
dlindinger
9 years agoCreator I
This is a snippet of code that does versioning from the method PE_ChangeItemTransition
Item versionItem = Utils.Innovator.newItem(type, "version");
String idList = String.Join(",", versionIds);
versionItem.setAttribute("idlist", idList);
Item res = versionItem.apply();
This will make new generations of all of the ids in idlist of the type "type".
Hope this helps, Dennis