On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
Create ConnectedWorkspace using OScript
Migrateduser
New
Hi,
I am trying to create workspace using OScript, but getting error "select a valid template to create a business workspace". Below is my code snippet can any one please help me in solving this.
Dynamic NewFolderName, LLNode, parentFolder, storingFolder, nodeStatus
Assoc fileData
wSession = prgCtx.Dsession().fSession Dynamic rootNode = DAPI.GetNodeByID( wSession, 2000 ) parentFolder = DAPI.GetNode( "EHS:Demo Incidents", rootNode ) LLNode = $LLIAPI.LLNodeSubsystem.GetItem ( $TypeEcmWorkspace ) NewFolderName = "TestFolderCreation" retVal = $LLIAPI.NodeUtil.IsNameUnique( NewFolderName, parentFolder ) if ( retVal.OK ) StoringFolder = LLNode.NodeAlloc( parentFolder, NewFolderName ) if ( StoringFolder.OK ) StoringFolder = StoringFolder.node fileData.comment = "Folder created via Script." fileData.provider = "EXTSHARED" else retVal.OK = FALSE echo( retval.errmsg ) end else echo( retval.errmsg + " Trapping error on Node Uniqueness" ) end if ( retVal.OK ) nodeStatus = LLnode.NodeCreate( StoringFolder,parentFolder, fileData ) if ( !nodeStatus.OK ) retVal.OK = FALSE echo( retval.errMsg ) else echo( "folder created" ) end end
Thanks,
Sagar
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax