Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url="/_api/web/lists/getByTitle('Documents')/GetItems(query=@v1)?$select=Title,FileRef&@v1={"ViewXml":"<View><Query><Where><Eq><FieldRef%20Name='societe'/><Value%20Type='TaxonomyFieldType'>"+currentCompany+"</Value></Eq></Where></Query></View>"}";
- console.log(url);
- return $http({
- method: 'POST',
- url: "/_api/web/lists/getByTitle('Documents')/GetItems(query=@v1)?$select=Title,FileRef&@v1={"ViewXml":"<View><Query><Where><Eq><FieldRef%20Name='societe'/><Value%20Type='TaxonomyFieldType'>"+currentCompany+"</Value></Eq></Where></Query></View>"}",
- headers: {
- 'Accept': 'application/json;odata=verbose'
- , 'X-RequestDigest': $('#__REQUESTDIGEST').val()
- }
- });
Add Comment
Please, Sign In to add comment