LogoLogo
About
  • Home
  • Guides
  • BDK
  • REST API
  • Release Notes
  • BDK Books
  • AWS S3
    • Copy Item To a Folder
    • Create Folder In Another Folder
    • Delete Item
    • Download a File
    • Get Folder At a Path
    • Get Root folder From a Bucket
    • Get Buckets From S3
    • Get a Folder's Items
    • Move Item To a Folder
    • Rename Item
    • Upload File To a Folder
  • GitHub
    • Get Commits
    • Get a User
    • Get a Team
    • Get Teams
    • Get Repositories
    • Issues
      • Get Issues
      • Create an Issue
      • Update an Issue
    • Pull Requests
      • Get a Pull Request
      • Get Pull Requests
      • Create a Pull Request
      • Update a Pull Request
      • Request Reviewers
  • HTTP
    • DELETE Request
    • GET Request
    • HEAD Request
    • PATCH Request
    • POST Request
    • PUT Request
  • Microsoft Excel
    • Clear the Worksheet Range
    • Create a Table on a Worksheet Range
    • Create a Worksheet Range in a Sheet
    • Delete a Column from the Table
    • Delete a Row from the Table
    • Get the Cell's Color
    • Get the Cell's Formula
    • Get the Cell's Value
    • Get the Column's Cells from the Table
    • Get the Column Count in a Table
    • Get the Column Count in a Worksheet Range
    • Get the File's Sheets
    • Get the Following Row Range In a Worksheet Range
    • Get the Row's Cells from the Table
    • Get the Row's Cells From the Worksheet Range
    • Get the Row Count in a Table
    • Get the Row Count in a Worksheet Range
    • Get the Sheet's Tables
    • Get the Sheet's Used Range
    • Get the Worksheet Range's Rows
    • Get the Worksheet Range from the Table
    • Insert a New Column in the Table
    • Insert a New Row in the Table
    • Read the Content from a Table
    • Read the Content from a Worksheet Range
    • Retrieve the Columns from the Table
    • Retrieve the Rows from the Table
    • Retrieve the Worksheet Range from a Table
    • Set the Cell's Content to a Value
    • Set the Cell's Formula to a Formula Value
    • Write the Content in a Table
    • Write the Content in a Worksheet Range
  • Microsoft Outlook
    • Delete Emails
    • Download an Attachment
    • Forward an Email
    • Get a User's Events
    • Get an Email's Attachments
    • Get Event's Attachments
    • Get Email Folders for a User
    • Get Email Folders
    • Get Events in Calendar
    • Get Events
    • Get Outlook Emails
    • Mark Emails
    • Move Outlook Emails
    • Reply to an Email
    • Send an Email
  • Microsoft SharePoint
    • Examples
    • Document Libraries
      • Create a Folder
      • Create a Folder in Another Folder
      • Copy an Item to a Folder
      • Delete an Item
      • Download a File
      • Edit an Item
      • Get a Folder
      • Get a Folder's Items
      • Get a Root Folder
      • Get Items From a Document Library
      • Get Document Libraries
      • Move an Item To a Folder
      • Rename an Item
      • Upload a File to a Folder
    • Lists
      • Add a Column
      • Add an Item
      • Create a List
      • Delete a Column
      • Delete a List
      • Delete an Item
      • Get Items
      • Rename a Column
      • Rename a List
      • Retrieve a List as a Table
      • Retrieve a List's Column Definitions
      • Retrieve Lists
    • Sites
      • Get Sites
  • OpenWeather
    • Get the Current Temperature
  • Slack
    • Read Messages
    • Retrieve a Channel
    • Retrieve a User
    • Send a Message
  • ServiceNow
    • Create Record
    • Delete Records
    • Retrieve Records
    • Update Record
  • Truckmate
    • Create An Order in Truckmate
    • Update An Order in Truckmate
  • Twilio
    • To Read Some SMS Messages
    • To Send an SMS Message
Powered by GitBook
On this page
  • Overview
  • 📝 Example 1: Employee Feedback Form
  • 📝 Example 2: Bulk Deletion

Was this helpful?

Export as PDF
  1. Microsoft SharePoint

Examples

End-to-end automation examples using the SharePoint BDK Book.

Overview

The SharePoint Book supports powerful automation capabilities for working with SharePoint sites, lists, and document libraries. This page provides end-to-end examples demonstrating how to use the Book’s procedures in an automation.

📝 Example 1: Employee Feedback Form

This automation demonstrates how to dynamically manage a SharePoint list for collecting employee feedback. It connects to a SharePoint site, creates a new list, adds a new column, and then simulates a form submission by creating a list item.

Manage an Employee Feedback Form
get sites from sharepoint whose name is "HR Resources"
use the first site as the site

create a list in the site
  the list name is "Employee Feedback Form"
use the above as the list

add a column to the list
  the name is "Satisfaction Score"
  the description is "Employee satisfaction rating from 1 to 5"
use the above as the column

retrieve column definitions from the list

create a json
use the above as the item body
set the item body's "Title" to "New Score"
set the item body's "Satisfaction Score" to "4"
add the item body to the list

get the list's items

The following procedures are used in this example:

Line #
Description
Procedure / Keyword

1

Gets sites from SharePoint with the name "HR Resources".

2

Sets the first site from the results to be designated as the site.

4-5

Create a SharePoint list with the name "Employee Feedback Form".

6

Sets the new list to be designated as the list.

8-10

Adds a new column to the SharePoint List.

11

Sets the new column to be designated as the column.

13

Retrieves the columns from the SharePoint List.

15

Creates a new JSON.

16

Sets the JSON to be designated as the item.

17-18

Sets values for the JSON.

19

Adds the item to the SharePoint List.

21

Get's the items from the list to check the new addition.

📝 Example 2: Bulk Deletion

This automation example demonstrates how to perform bulk deletion in SharePoint. It creates and populates a list with multiple items. Then, the list is filtered to identify all entries where the "My Col" column is set to "Value 1". These entries are then deleted in bulk, showcasing an efficient method for removing targeted data.

Get some sites from SharePoint whose name is "Testing"
use the first site as the site

create a list in the site
  the list name is "Item Deletion Example"
  
retrieve the site's lists whose name is "Item Deletion Example"
get the first list
use the first list as the list

add a column to the list
  the name is "My Col"

create a json
use the above as the first body
set the first body's "Title" to "First Item"
set the first body's "My Col" to "Value 1"
add the first body to the list

create a json
use the above as the second body
set the second body's "Title" to "First Item"
set the second body's "My Col" to "Value 1"
add the second body to the list

create a json
use the above as the third body
set the third body's "Title" to "First Item"
set the third body's "My Col" to "Value 2"
add the third body to the list

retrieve the list as a table

get the list as the slist
get the slist's items whose "My Col" is "Value 1"
use the above as the deletable items
delete the deletable items from the list

retrieve the list as a table

The following procedures are used in this example:

Line #
Description
Procedure / Keyword

1

Gets sites from SharePoint with the name "HR Resources".

2

Sets the first site from the results to be designated as the site.

4-5

Create a SharePoint list with the name "Items Deletion Example".

7

Retrieves SharePoint Lists from the site with the name "Item Deletion Example".

8

Gets the first list from the results.

9

Sets the first list as the list.

11-12

Adds a new column to the SharePoint List.

14, 20, 26

Creates a new JSON.

15, 21, 27

Sets the JSON to be designated as the first body, the second body, and the third body (respectively).

16-17, 22-23, 28-29

Sets values for the JSON.

18, 24, 30

Adds the first body, the second body, and the third body to the SharePoint List (respectively).

32

Retrieves the SharePoint List as a table.

34

Designates the SharePoint list as the slist

35

Gets specific items from the SharePoint List.

36

Marks the retrieved items as the deletable items

37

Deletes the items from the SharePoint list.

39

Retrieves the SharePoint List as a table.

Last updated 5 days ago

Was this helpful?

Get Sites
Create a List
Add a Column
Retrieve a List's Column Definitions
Add an Item
Get Items
Get Sites
Create a List
Retrieve Lists
Add a Column
Add an Item
Retrieve a List as a Table
Get Items
Delete an Item
Retrieve a List as a Table
Keywords
Keywords
Keywords
Keywords
Keywords
Keywords
Keywords
Keywords
Defining Data
Defining Data
Creating and Merging JSON Objects
Modifying JSON
Creating and Merging JSON Objects
Modifying JSON