Skip to main content
1-Visitor
February 10, 2011
Question

windchill adapters

  • February 10, 2011
  • 1 reply
  • 610 views
Has anyone been successful using the windchill adapters to revise and then remove the primary content of a document? I've been able to revise the document using this Revise-Objects webject but unsuccessful in removing the contents using the Delete-ContentItems webject. We are using PDMLink 9.1 M060.

Rey

1 reply

1-Visitor
February 10, 2011
In delete contentitems webject, what are you passing for content_item,
staging-file_id and staging_area.

If you are not very specific in using I*E webject, you can consider the
following APIs (for deleting the primary doc)



ContentItem myPrimary = ContentHelper.service.getPrimary(document);

if(myPrimary != null)
ContentServerHelper.service.deleteContent((ContentHolder)document,
myPrimary);



HTH



Thank you and have a great time.

Best Regards

Swamy Senthil

Principal Solutions Architect, Swasen Inc

swamy.senthil@swasen.com(Email); 909 800 8423(M); 973 324 2729(W); 866
908 6561(F);