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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to rename the Primary Content

adev
1-Newbie

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

Top Tags