Introduction: Access Recycle Bin
of SharePoint using Power Automate.
Steps:
- Actions: select "Send an HTTP request to SharePoint"
- Enter the below details:
Site
Address: Select your site address from the list.
Method:
GET
Uri,
Headers: Refer the screenshot below.
Pls.
Note: Trigger used was When a File is Deleted- SharePoint Connector.
- Select Action "Parse JSON"
- In parse JSON, the content is the body of HTTP Response
Enter
the below Schema:
{
"type": "object",
"properties":
{
"odata.metadata": {"type":
"string"},"value": {"type": "array","items": {"type":
"object",
"properties":
{"odata.type": {"type": "string"},"odata.id": {"type": "string"},
"odata.editLink":
{"type": "string"},"AuthorEmail": {"type": "string"},"AuthorName": {
"type": "string"},"DeletedByEmail":
{"type": "string"},"DeletedByName": {"type": "string"},
"DeletedDate":
{"type": "string"},"DeletedDateLocalFormatted": {"type": "string"},
"DirName": {"type": "string"},"DirNamePath":
{"type": "object","properties": {
"DecodedUrl":
{"type": "string"}}},"Id": {"type": "string"},"ItemState": {"type": "integer"},
"ItemType": {"type": "integer"},"LeafName": {"type": "string"},
"LeafNamePath":
{"type": "object","properties": {"DecodedUrl": {"type": "string"}}},
"Size": {"type": "string"},"Title": {"type": "string"}},"required": [
"odata.type","odata.id","odata.editLink",
"AuthorEmail","AuthorName","DeletedByEmail",
"DeletedByName","DeletedDate","DeletedDateLocalFormatted","DirName","DirNamePath","Id",
"ItemState","ItemType","LeafName","LeafNamePath","Size","Title"]
}}}}
Comments
Post a Comment