Create Copy of DCR With OpenAPI
Options
I want to copy an existing DCR and give it a new DCR name using OpenAPI but not sure how to do this. I was able to make a copy of the DCR with IWFileHandle but then NOT able to edit the data record since its type is a file and not DCR. Can you add a DCR with OpenAPI?
Thx
Briscoe
Thx
Briscoe
0
Comments
-
Below is the code sniplet that updates an Extended Attribute just in case someone wants to reference.
Thanks,
Briscoe
IWSimpleFile sf = (IWSimpleFile) IWPathNamedObject.lookupByPath(fileSysService, tmpPath + "/" + fileName);
if( sf == null )
{
sf = dir.createChildSimpleFile(fileSysService, fileName, null, null, "LiveWoven Export");
}
if( sf == null )
{
logFile.Print("IWOpenAPI:ExportFileExAttr", "Could Not Create File - " + fileName + " In Export Path - " + tmpPath, "ERROR");
return false;
}
// Set Extended Attribute
sf.setVarValue fileSysService, "TeamSite/Templating/DCR/Type", "Category/Content Type");0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.