ByteChef LogoByteChef
Components

Microsoft SharePoint

Microsoft SharePoint is a web-based collaborative platform that integrates with Microsoft Office, providing document management, intranet, and content management features for organizations.

Categories: File Storage, Communication

Type: microsoftSharePoint/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue
tenantIdTenant IdSTRINGtrue

Actions

Create Folder

Name: createFolder

Creates a new folder at path you specify.

Properties

NameLabelTypeDescriptionRequired
siteIdSite IDSTRINGtrue
parentFolderParent Folder IDSTRING
Depends On siteId
If no folder is selected, file will be uploaded to root folder.false
nameFolder NameSTRINGtrue

Example JSON Structure

{
  "label" : "Create Folder",
  "name" : "createFolder",
  "parameters" : {
    "siteId" : "",
    "parentFolder" : "",
    "name" : ""
  },
  "type" : "microsoftSharePoint/v1/createFolder"
}

Output

Type: OBJECT

Properties

NameTypeDescription
createdDateTimeDATE_TIMEThe date and time when the folder was created.
eTagSTRING
idSTRINGID of the folder.
lastModifiedDateTimeDATE_TIMEThe date and time when the folder was last modified.
nameSTRINGName of the folder.
sizeINTEGERSize of the folder in bytes.
webUrlSTRINGURL to access the folder in a web browser.
cTagSTRING
commentSettingsOBJECT
Properties {{BOOLEAN(isDisabled)}(commentingDisabled)}
createdByOBJECT
Properties {{STRING(id), STRING(displayName)}(user)}
lastModifiedByOBJECT
Properties {{STRING(id), STRING(displayName)}(user)}
folderOBJECT
Properties {INTEGER(childCount)}
sharedOBJECT
Properties {STRING(scope)}

Output Example

{
  "createdDateTime" : "2021-01-01T00:00:00",
  "eTag" : "",
  "id" : "",
  "lastModifiedDateTime" : "2021-01-01T00:00:00",
  "name" : "",
  "size" : 1,
  "webUrl" : "",
  "cTag" : "",
  "commentSettings" : {
    "commentingDisabled" : {
      "isDisabled" : false
    }
  },
  "createdBy" : {
    "user" : {
      "id" : "",
      "displayName" : ""
    }
  },
  "lastModifiedBy" : {
    "user" : {
      "id" : "",
      "displayName" : ""
    }
  },
  "folder" : {
    "childCount" : 1
  },
  "shared" : {
    "scope" : ""
  }
}

Create List

Name: createList

Creates a new list

Properties

NameLabelTypeDescriptionRequired
siteIdSite IDSTRINGtrue
displayNameList NameSTRINGtrue
descriptionList DescriptionSTRINGtrue

Example JSON Structure

{
  "label" : "Create List",
  "name" : "createList",
  "parameters" : {
    "siteId" : "",
    "displayName" : "",
    "description" : ""
  },
  "type" : "microsoftSharePoint/v1/createList"
}

Output

Type: OBJECT

Properties

NameTypeDescription
createdDateTimeDATE_TIMEThe date and time when the list was created.
descriptionSTRINGDescription of the list.
eTagSTRING
idSTRINGID of the list.
lastModifiedDateTimeDATE_TIMEThe date and time when the list was last modified.
nameSTRINGName of the list.
webUrlSTRINGURL to access the list in a web browser.
displayNameSTRINGThe displayable title of the list.
createdByOBJECT
Properties {{STRING(id), STRING(displayName)}(user)}
listOBJECT
Properties {BOOLEAN(contentTypesEnabled), BOOLEAN(hidden), STRING(template)}

Output Example

{
  "createdDateTime" : "2021-01-01T00:00:00",
  "description" : "",
  "eTag" : "",
  "id" : "",
  "lastModifiedDateTime" : "2021-01-01T00:00:00",
  "name" : "",
  "webUrl" : "",
  "displayName" : "",
  "createdBy" : {
    "user" : {
      "id" : "",
      "displayName" : ""
    }
  },
  "list" : {
    "contentTypesEnabled" : false,
    "hidden" : false,
    "template" : ""
  }
}

Create List Item

Name: createListItem

Creates a new item in a list.

Properties

NameLabelTypeDescriptionRequired
siteIdSite IDSTRINGtrue
listIdList IDSTRING
Depends On siteId
true
columnsDYNAMIC_PROPERTIES
Depends On siteId, listId
null

Example JSON Structure

{
  "label" : "Create List Item",
  "name" : "createListItem",
  "parameters" : {
    "siteId" : "",
    "listId" : "",
    "columns" : { }
  },
  "type" : "microsoftSharePoint/v1/createListItem"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Upload File

Name: uploadFile

Upload file to Microsoft SharePoint folder.

Properties

NameLabelTypeDescriptionRequired
siteIdSite IDSTRINGtrue
parentFolderParent Folder IDSTRING
Depends On siteId
If no folder is selected, file will be uploaded to root folderfalse
fileFileFILE_ENTRYFile to upload.true

Example JSON Structure

{
  "label" : "Upload File",
  "name" : "uploadFile",
  "parameters" : {
    "siteId" : "",
    "parentFolder" : "",
    "file" : {
      "extension" : "",
      "mimeType" : "",
      "name" : "",
      "url" : ""
    }
  },
  "type" : "microsoftSharePoint/v1/uploadFile"
}

Output

Type: OBJECT

Properties

NameTypeDescription
createdDateTimeDATE_TIMEThe date and time when the file was created.
eTagSTRINGeTag for the entire item (metadata + content).
idSTRINGID of the file.
lastModifiedDateTimeDATE_TIMEThe date and time when the file was last modified.
nameSTRINGName of the file.
sizeINTEGERSize of the file in bytes.
webUrlSTRINGURL to access the file in a web browser.
createdByOBJECT
Properties {{STRING(email), STRING(id), STRING(displayName)}(user)}
lastModifiedByOBJECT
Properties {{STRING(email), STRING(id), STRING(displayName)}(user)}
fileOBJECT
Properties {{STRING(quickXorHash)}(hashes), STRING(mimeType)}

Output Example

{
  "createdDateTime" : "2021-01-01T00:00:00",
  "eTag" : "",
  "id" : "",
  "lastModifiedDateTime" : "2021-01-01T00:00:00",
  "name" : "",
  "size" : 1,
  "webUrl" : "",
  "createdBy" : {
    "user" : {
      "email" : "",
      "id" : "",
      "displayName" : ""
    }
  },
  "lastModifiedBy" : {
    "user" : {
      "email" : "",
      "id" : "",
      "displayName" : ""
    }
  },
  "file" : {
    "hashes" : {
      "quickXorHash" : ""
    },
    "mimeType" : ""
  }
}