@sysdoc/sharepoint-utils
Version:
Sysdoc's core Sharepoint utilities
14 lines (13 loc) • 556 B
JavaScript
;
/*!
* Copyright Sysdoc @ 2019
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getByContentTypeId = void 0;
function getByContentTypeId(ctId) {
var query = new SP.CamlQuery();
var queryXml = "\n <View><Query><Where>\n <BeginsWith>\n <FieldRef Name='ContentTypeId' />\n <Value Type='ContentTypeId'>" + ctId + "</Value>\n </BeginsWith>\n </Where></Query></View>";
query.set_viewXml(queryXml);
return query;
}
exports.getByContentTypeId = getByContentTypeId;