0

When getting properties from a document library with the SharePoint API, I'm using the following call

var httpRequest = new HttpRequestMessage(HttpMethod.Get, spPath + spSubSite + "/_api/web/lists(\'" + spAppId + "\')/items?$filter=EnvelopeId eq \'" + envelopeId + "\'");

For a document library, I created multiple views where I have set some view level permissions, following this link https://www.netwoven.com/2016/01/21/how-to-set-view-level-permission-for-a-listlibrary-in-sharepoint/.

When I then try to get the properties, I'm getting the following error

{"odata.error":{"code":"-1, System.Collections.Generic.KeyNotFoundException","message":{"lang":"en-US","value":"The given key was not present in the dictionary."}}}

Because content type was setup and a folder is created at that document library, I tried to get properties with the following code

var httpRequest = new HttpRequestMessage(HttpMethod.Get, spPath + spSubSite + "/_api/web/lists/getbytitle(\'ViewICLExport\')/items?$filter=EnvelopeId eq \'" + envelopeId + "\'");

Then I got {"odata.error":{"code":"-1, System.ArgumentException","message":{"lang":"en-US","value":"List 'ViewICLExport' does not exist at site with URL 'SPSite/DigitalSignatures/InternalLimits'."}}}

When I open a view, the URL is SPSite/DigitalSignatures/InternalLimits/Internal%20limits%20Export/ViewICLExport/Africa.aspx

So my question is, how do I get the properties of this document library with his folder?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.