Version

args Object structure

Property

Required

Type

Description

contentTypeId

See note

String

SharePoint content type’s ID that is unique within a site collection.

listName

See note

String

GUID of the SharePoint list (not the display name).

webUrl

See note

String

URL to the SharePoint site containing the list.

itemId

See note

String

ID of the SharePoint item to be edited.

document

Yes

String

File name that references the new file to be used as document.

attributes

Yes

Object

The attributes of the new item as name:value pairs (properties).

Note

Note: Not required when using a custom form defined for a library, where you already have contextual information available from the user navigation through the UI.

args.attributes Object structure example

{'Name':documentTitle,'Status':status,'Assigned_x0020_To':assigned}