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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to rename the Primary Content

adev
1-Visitor

How to rename the Primary Content

Hello is there is any way we can rename the primary content file using API

1 REPLY 1

Following API can be used:

// Get Primary content holder

wt.content.ContentItem holder = ContentHelper.service.getPrimary(doc);

// Get Primary content stream

ApplicationData applicationdata = (ApplicationData)holder;

//Getter -Setter for fileName

getFileName() and setFileName(“String”)

Announcements


Top Tags