Skip to main content
1-Visitor
February 22, 2016
Question

How to rename the Primary Content

  • February 22, 2016
  • 1 reply
  • 1339 views

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

1 reply

ShirishMorkhade
16-Pearl
February 23, 2016

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