SPO API
The SPO API component allows you to interact with the SharePoint REST API.
See how it works:
SPO API Explainer
Creating document sets
Configuration
Inputs | Outputs
With the default templates, Create document set and Create folder use the following incoming fields. Metadata fields must exist on the selected content type.
{
metadata: JSON.stringify({
FileLeafRef: "name",
Title: "title",
Source: "SharePoint",
Price: "1234",
Partial_x0020_Source_x0020_Path: "line 1 line 2 line 3",
Source_x0020_Migration_x0020_Date: "2023-05-21T07:47:00.000Z",
IsFCDone: "Yes;#No",
Document_x0020_Purpose: ";#/Test/Testfolder|7bc62056-fe8c-4fab-a140-125c6a4368a0;#/Test/Document Purpose|520e01b5-0240-4f98-a1ed-72bfcb56a0b3",
Business_x0020_Units: "3;#TEST;#1;#TEST2;#",
Reviewed: "1",
Approver: "[{'Key':'Xillio test'}, {'Key':'test@xillio.com'}]",
ApproverSingle: "[{'Key':'test@xillio.com'}]"
}),
siteUrl: "https://tenantName.sharepoint.com/sites/testSite",
webUrl: "https://tenantName.sharepoint.com/sites/testSite/testDocLib/testSubFolder",
listId: "9e30f72e-06bd-43bf-a49e-1ec73b83a983",
contentTypeId: "0x012000A819CE8B4B46CD4FB219D6AAABCDBE05"
}
Delete list item uses siteUrl, listId, and listItemId.
{
"siteUrl": "https://tenantName.sharepoint.com/sites/testSite",
"listId": "9e30f72e-06bd-43bf-a49e-1ec73b83a983",
"listItemId": "16"
}