Function
CreateContent
Description
Creates a content
Arguments
ContentStruct containing information for a new content
Return Value
Returns an ID number of a content created or raises error with a verbose message
Notes
Title, Description, HeaderTo, HeaderFrom, DocType, NativeTitle (subject) and DocParts must be provided.
ContentID member of the structure is ignored.
Content title must be unique.
* MimePartName member of every DocPart record can be ‘html’, ‘text’ for html and text parts respectively OR a filename for attaching a file to the content (e.g. “document.txt” )
Rights
If neither SiteName or ListName are provided a user must be a server admin and the content will be created for all lists.
If ListName is provided – user must be allowed to admin that list; content will be created for this list only.
If SiteName is provided – user must be allowd to admin that site; content will be created for this site only.
Return Data Type
int
Access Rights (learn more)
List | Site | Server | Listname Required |
x |
x | x |
Version
ListManager 10.0