Tag Info

New answers tagged

0

Yes use SharePoint Rest Services and then calling: https://<weburl>/_api/Web/GetFolderByServerRelativeUrl('</sites/site/subsite/library>')/Folders Just loop through all the results and when ItemCount = 0 and Name of the folder is not equal to Forms(default in every library) send out an email. It does not list out the subfolders. Still ...


1

It could be done by leveraging SharePoint REST services. In SharePoint 2013 workflows was introduced a new action named Call HTTP Web Service. This action is flexible enough to make requests to a variety web services including SharePoint REST service. The following REST request demonstrates how to determine whether Folder contains items: ...


0

The SPServices library is only allowing you to do what is available through the web services. A workaround, but not really recommended, would be to create a custom permission level that granted the ability to manage permissions and add users into this group. That would allow them to then execute your code.


2

You cannot do impersonation or permission elevation in client side object model. http://sympmarc.com/2011/05/27/elevating-permissions-with-sharepoints-web-services/ http://spservices.codeplex.com/discussions/392133


0

If I understand the question correctly, SPServices or any other client-side development is not the way to go. Better use out-of-the-box settings of the group to allow any users to view membership and auto-accept requests for joining and leaving the group if that's appropriate for the group. Then simply provide a hyperlink to the group's page ...


2

You could use AddUserToGroup operation for that purpose, for example: $().SPServices({ operation: "AddUserToGroup", groupName: groupName, userLoginName: userLoginName, completefunc: function(data,status){ //... } }); References Managing SharePoint Site User Memberships in Multiple Groups Using SPServices


0

use some LDAP code to search for a usable field (if the UID in the document exists in some field in AD) Replace FIELD with your equivalent field. Replace DOMAIN with your domain like LDAP://example.corp: string sFilter = String.Format("(&(objectCategory=user)(objectClass=user)(FIELD={0}))", query); string adPath = "LDAP://DOMAIN"; using (DirectoryEntry ...


1

In the SPServices library, you just need to add an option like this in your GetListItems configuration: CAMLRowLimit: 6 Marc then tacks this onto the appropriate place in the dynamically built CAML query to get your data.


2

Your <RowLimit> tag is inside <Query> tag which is wrong, it should be out side the <Query> and inside <View>. Try below camlQuery = "<View><Query><CalendarDate>" + calendarDate + "</CalendarDate><Where><DateRangesOverlap><FieldRef Name='EventDate' /><FieldRef Name='EndDate' ...


0

I created a PeoplePicker widget a while back to fulfill this same need. You can read about it here: http://purtuga.github.io/SPWidgets/ Look at the PeoplePicker. It's part of a suite of widgets I use for client side customizations. You can also download the demo aspx page if you just want to try it out in your sharepoint: ...


1

You could use clientpeoplepicker.js. Here is a simple example on how to use it: if (LoadSodByKey('clientpeoplepicker.js', null) == Sods.missing) { RegisterSod('clientpeoplepicker.js', '/_layouts/15/clientpeoplepicker.js'); } if (LoadSodByKey('clientforms.js', null) == Sods.missing) { RegisterSod('clientforms.js', '/_layouts/15/clientforms.js'); } if ...


0

Most probably it occurs since UpdateListItems operation accepts HTML escaped string as a parameter. The following function could be used for encoding HTML string: function htmlEncode(value){ //create a in-memory div, set it's inner text(which jQuery automatically encodes) //then grab the encoded contents back out. The div never exists on the page. ...



Top 50 recent answers are included