APIs for Declaring records using retention labels

%3CLINGO-SUB%20id%3D%22lingo-sub-2430077%22%20slang%3D%22en-US%22%3EAPIs%20for%20Declaring%20records%20using%20retention%20labels%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2430077%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20Sharepointonline%20(SPOnline%20CSOM%2016.1%20ver)%2C%20we%20were%20able%20to%20get%20labels%20using%20%3CEM%3ECompliancePolicy.SPPolicyStoreProxy%3A%3AGetAvailableTagsForSite%3C%2FEM%3E%20api.%20These%20calls%20will%20not%20work%20for%20Onpremisis(SP2019).%3CBR%20%2F%3EDo%20we%20have%20any%20Apis%20for%20SP%20OP%3F%26nbsp%3B%20Using%20SP2019%20CSOM%20version(16.0)%20has%20no%20related%20apis%20to%20get%20labels.%20Cant%20find%20any%20documentation%20for%20onpremisis%20around%20labels%2Fretention.%20Everything%20is%20talking%20abt%20online.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20is%20the%20above%20complaince%20API%20recommneded%20to%20be%20used%20for%20Online%3F%20as%20this%20below%20post%20suggests%20it%20should%20not%20be%20used%20from%20API%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-sharepoint-blog%2Fscripted-application-of-data-governance-labels%2Fba-p%2F242412%22%20target%3D%22_blank%22%3EScripted%20Application%20of%20Data%20Governance%20Labels%20-%20Microsoft%20Tech%20Community%3C%2FA%3E(under%20commnets%20section)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPl%20advise%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New 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