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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! 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