APIs for Declaring records using retention labels

Copper Contributor

For Sharepointonline (SPOnline CSOM 16.1 ver), we were able to get labels using CompliancePolicy.SPPolicyStoreProxy::GetAvailableTagsForSite api. These calls will not work for Onpremisis(SP2019).
Do we have any Apis for SP OP?  Using SP2019 CSOM version(16.0) has no related apis to get labels. Cant find any documentation for onpremisis around labels/retention. Everything is talking abt online.


Also, is the above complaince API recommneded to be used for Online? as this below post suggests it should not be used from API

Scripted Application of Data Governance Labels - Microsoft Tech Community(under commnets section)


Pl advise? 

0 Replies