New answers tagged

0

Use SVC to get count https://<site>.com/<subsites>/_vti_bin/ListData.svc/<ListTitle>/$count


0

FOR CREATED BY: /_api/web/lists/getbytitle('Pages')/items(1)?$select=Author/Name,Author/Title&$expand=Author/Id FOR MODIFIED BY: /_api/web/lists/getbytitle('Pages')/items(1)?$select=Editor/Name,Editor/Title&$expand=Editor/Id I TRIED THIS QUERY. IT WILL GIVE YOU THE CREATED BY OR MODIFIED BY USER'S DISPLAY NAME


0

Couple of issues Person class should be set as Serializable GetDate method accepts 0 parameters but you are passing two values from the Ajax call. Sample Service public partial class Services : LayoutsPageBase { [WebMethod] public static string Hello() { return "Hello"; } } Sample Ajax Call var url = _spPageContextInfo....


1

grup.Owner returns Principal object. so you can't load it using LINQ. You can load owner object for group inside foreach loop like this. ` GroupCollection collGroup = context.Web.SiteGroups; context.Load(collGroup); context.Load(collGroup, grups => grups.Include(grup => grup.Title, grup => grup.Description, grup => grup....


0

In order to execute batch request, data format of user field is: {user id};#{user name} For example, we have two users like spUser1 (user Id is 1) & spUser2 (user Id is 2). For single user field, the data format should look like according to above format 1;#spUser1 Or 2;#spUser2 Now, if our user field allows multiple users and we wish to ...


0

This is from the sharepoint documentation. function createFolder(resultpanel) { var clientContext; var oWebsite; var oList; var itemCreateInfo; clientContext = new SP.ClientContext.get_current(); oWebsite = clientContext.get_web(); oList = oWebsite.get_lists().getByTitle("Shared Documents"); itemCreateInfo = new SP.ListItemCreationInformation(); ...


0

SharePoint provides you with List.asmx web service out of the box. The web reference URL is http:///_vti_bin/Lists.asmx. However, a better way would be to use the REST API to connect to the list and get the required data. SharePoint 2013 has enhanced REST APIs that you can leverage. Detailed explanation can be found here. As precisely pointed out by Danny, ...


0

Main issue (and not easy) is you need to authenticate to get into you locally hosted site. These will get you started, but be sure to Google, lots of changes/additions in the past year https://msdn.microsoft.com/en-us/library/azure/dn151135.aspx https://github.com/AzureAD/azure-activedirectory-library-for-js http://www.cloudidentity.com/blog/2014/10/28/...


3

I tried your code and got an unknown error. So i tried removing each field in the LINQ query and I found the error is due to grup => grup.Owner. I have changed it to grup => grup.OwnerTitle and the code worked fine. Also for getting each property value of a group loop the group collection object and get its value as per below code. GroupCollection ...



Top 50 recent answers are included