cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

windchill adapters

rey
1-Newbie
1-Newbie

windchill adapters

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
ssenthil
1-Newbie
(To:rey)

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);






Announcements

Top Tags