AnswerBun.com

Rest api to get all item Item is a Record equal to yes

SharePoint Asked on December 12, 2021

does SharePoint Online have a rest api to get all items where an item as a record?

One Answer

SharePoint uses some hidden columns to indicate if an item is a record.

Since, you have specified SharePoint online, typically, you would be setting a retention label or a compliance label to a document, hence you can check if _ComplianceTag (this is the internal name of the compliance label column) is not null or empty.

However, it is not mandatory that a compliance label when assigned to a document will convert it to a record (depends upon a setting in the compliance center).

Hence you can also check the "item is a record" column in your library, the internal name of the column is _ISRecord, and will hold a non-zero value if the item is declared as a record.

The rest url would be of the form: GET https://{site_url}/_api/web/lists/getbytitle('ListName')/Items?(Column Internal Name operator value)

refer: https://www.c-sharpcorner.com/article/sharepoint-2013-using-rest-api-selecting-filtering-sortin/

Answered by SOURAV MUKHERJEE on December 12, 2021

Add your own answers!

Related Questions

Auto-populate email address from pc:Person?

1  Asked on December 17, 2020 by zeno

   

Org Browser start at a specific user for SP 2013

2  Asked on December 16, 2020 by brandon-black

     

Form based Login Authentication for Public Site Sharepoint online

1  Asked on December 8, 2020 by jitender-singh-tomar

   

Sharepoint PHP File Upload

1  Asked on December 7, 2020 by markvdb

     

CSS Script for Multiple Columns Boxed Style

1  Asked on December 6, 2020 by elebie

 

Faulting application name: csc.exe

2  Asked on December 4, 2020 by emaborsa

         

sharepoint 2013,RSS viewer web part error

1  Asked on December 4, 2020 by pasha

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP