Skip to main content
1-Visitor
Feb 22, 2016 12:53 PM UTC
Question

How to rename the Primary Content

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

1 reply

ShirishMorkhade
16-Pearl
Feb 23, 2016 8:21 PM UTC

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

Translate