SPCFolder.NewFolderEx
This function creates a new child folder to this folder (with audit log explanation).
Syntax | Parameters | Return Value |
---|---|---|
Function SPCFolder.NewFolderEx( _ CreateInfo As FolderCreateInfo) As SPCFolder |
CreateInfo [in]
Information about the new folder. Type: FolderCreateInfo |
SPCFolder |
SVB Example
Adding a folder:
Sub Main Dim oOM As ObjectManager 'Reconnect into Enterprise ObjectManager Set oOM = New ObjectManager oOM.Reconnect Application Dim myFolderInfo As New FolderCreateInfo myFolderInfo.Name = "Blake's Materialss" myFolderInfo.AuditLogReason = "Adding personal folder for Blake" Dim myFolder As SPCFolder Set myFolder = oOM.RootFolder.NewFolderEx(myFolderInfo) 'After being added, folder can now further edited. Dim folderUpdate As New FolderUpdateInfo folderUpdate.AuditLogReason = """Materials"" was misspelled, Fix that." myFolder.ChangeName("Blake's Materials", folderUpdate) oOM.Disconnect End Sub
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.