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.

document

Yes

String

File name that references the 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 list, where you already have contextual information available from the user navigation through the UI.

args.attributes Object structure example

{'Title':taskName,'StartDate':sDate,'Priority':priority,'Assigned_x0020_To':assigned}

Lookup Fields and Custom Data Types

For details about how to work with special fields like lookup, user, or URL refer to SPlusBridgeDataType

args.attachments Object structure example

{filename1:'add',filename2:'add',filename3:'add'}