
Announcements
Trying to expand on this idea - https://www.linkedin.com/pulse/programatic-way-apply-sensitivity-label-file-sanjoyan-mustafi
Instead of reacting when user posts a file, I want to label files not already labeled.
I'm obtain all files in the SharePoint Site and loop through each file and perform the "send an http request to sharepoint" for each file to get the drive ID guid and file etag guid for the update method.
First question - Do I have to use GUIDs for this update? (thought I'd post before trying)
This is the post method - "https://<foo_domain>.sharepoint.com/_api/v2.1/drives/<driveID>/items/<docID>/setsensitivityLabel"
The article shows using GUIDS instead of numeric IDs that I could probably obtain via get file properties.