New answers tagged

0

I think you want to use the overload that takes in a ViewFields param array: https://msdn.microsoft.com/en-us/library/office/ee543831.aspx Try the following: CamlQuery query = CamlQuery.CreateAllItemsQuery(1000, "Column1"); ListItemCollection items = pagesList.GetItems(query); ctx.Load(items); ctx.ExecuteQuery();


0

I just needed to grant the app read permissions to the user profiles.


0

For changing visual style, combining CSS and the :nth-child selector is likely to be the way to go. This isn't in JSGrid, but it also isn't javascript and won't break any scripts.


0

i solved the issue by moving clientContext.ExecuteQuery(); to above update attachments loop. oListItem["Title"] = EventTitle; oListItem["Description"] = EventBody; oListItem.Update(); clientContext.ExecuteQuery(); var site = "http://vr-si-web-qa01"; .... the problem is in client object model once you update the list item will ...


0

you can create your own file control in HTML and hook it up with the below script. I use an asynchronous loop to iterate through the files (works in IE9). //Enable Multiple Upload Script $('.attachmentButton').change(function(event){ //alert("change"); //startUpload(self, function (){ reloadPage(); }, event); ...


1

Reflector shows us that EnableAssignToEmail is not decorated with the ClientCallable attribute, thus is not accessible via CSOM.


0

always must use <SharePoint:ScriptLink language="javascript" name="sp.js" OnDemand="true" runat="server" Localizable="false" /> I lost 2 days fighting with this , i dont know why nut it doesnt works using script src


0

Solved! Trouble in JS for cross-site REST-query located in global.asax. This JS get User-agent from request header and replace request header in all query. Web application not send user-agent in request header and JS crash.


0

You can't get a subsite using ClientContext constructor. Try this: public string testRest() { try { // In constructor, put only the Site URL ClientContext context = new ClientContext(new Uri(@"http://sharepointRemoteServer/")); context.AuthenticationMode = ClientAuthenticationMode.Default; context.Credentials = ...


0

You're most probably facing what is known as a "double-hop" issue: Your client user connects and authenticate as himself against the Web app (through Windows NTLM protocol, that requires the client to know her/his password). The Web app uses impersonation. It means the code runs under the user's identity. With your context.Credentials = ...


0

ChathuraSam hasnt understood the question as his comment relates to running a search using a managed property that has already been created whereas the question is clearly about creating managed properties using CSOM. Unfortunately I dont have enough reputation to comment. I believe the way to do this (although I havent tried this myself) is with ...


0

I'm not sure where you are referencing title since it isn't in your method. If I execute the following code both objects contain the data I would expect when the done method executes. getSiteProperties().done( function(data,user){ console.log(data); console.log(user); } ); Are you sure you are working with the deferred object ...


1

If you want to get custom templates you have to use context.Site.GetCustomListTemplates() instead of context.Web.ListTemplates public static ListTemplate GetCustomSiteTemplate(ClientContext ctx, string templateName) { var site = ctx.Site; ctx.Load(site); ctx.ExecuteQuery(); ListTemplateCollection ltc = site.GetCustomListTemplates(ctx.Web); ...



Top 50 recent answers are included