Provide the ability to get and set compliance label at the document level. This will provide the ability to set compliance label rules based on content type and/or other documents metadata.
We need a way for either Flow or SPD workflows to be able to set an Office 365 Label (Compliance settings), preferably on add or edit of document properties in document libraries. This would be something similar to the "Declare as Record" and "Undeclare as Record" SharePoint Designer 2010 actions which we can still do but that only sets the setting related to "in place records management" . Microsoft suggests to use modern Labels for retention and policies so we should have some equivalent way to set these using Modern workflow technology called Flow or at least SPD workflows or CSOM or Powershell. Currently there isn't (or at least I don't know of ) a way to do this other than by end user using individual document property pane. Microsoft - how did you expect developers to get or set this ?
Just want to add that this is desirable for list objects as well. I also would want this to be true for sensitivity lables 🙂
Don't forget about sensitivity labels...