Client Object Model Sharepoint 2010
We are using client object model in sharepoint 2010
When we excute the ExcuteQuery method of clinet obejct model we are getting following error
The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again
Girish
Hi ,
A FormDigest control has to be included to create a digest for security validations when performing some modifications to SharePoint data. It adds a security token inside your page based on user, site and time. Once the page is posted back the security token
is validated. Once the security token is generated it’s valid for a configurable amount of time.
for more info check the below links
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.formdigest.aspx
http://ranaictiu-technicalblog.blogspot.com.au/2010/02/sharepoint-2010-client-object-model-for.html
if above link is not working, use below function before execute the query.
function CustomUpdateFormDigest()
if(window._spPageContextInfo != null)
var $v_2 = window._spPageContextInfo;
var $v_3 = $v_2.webServerRelativeUrl;
var $v_4 = window._spFormDigestRefreshInterval;
UpdateFormDigest($v_3, $v_4);
CustomUpdateFormDigest();
Please mark it as an answer/helpful if it is useful.
Thanks
Mahesh
Similar Messages
-
Cannot download master page using managed client object model SharePoint 2010
string siteUrl = "http://server:port/sites/demo";
string fileServerRelativeUrl = @"/sites/demo/_catalogs/masterpage/v4.master";
using (ClientContext context = new ClientContext(siteUrl)){ FileInformation fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(context, fileServerRelativeUrl);}
File.OpenBinaryDirect() throws "The remote server returned an error: (404) Not Found" error. while Microsoft.SharePoint.Client.File f1 = web.GetFileByServerRelativeUrl(fileUrl);
context.Load(f1);
context.ExecuteQuery();this gives the file object.File.OpenBinaryDirect() works if I pass "/sites/demo/_catalogs/masterpage/TabViewPageLayout.aspx" as fileServerRelativeUrl.Both the files are present in Master Page Gallery.File.OpenBinaryDirect() doesn't work if I pass any of ".master" file in the master page galleryPlease let me know whether downloading the master pages is supported using managed Client object model.Hi,
If don't change the default config, We are unble to download master page.
It's better to create your own (perhaps based on the default.master) and use that master page.
also,make sure there's no a permission issue on the website.
Thanks
Guangchao chen
TechNet Community Support -
Get current loggedin user using silverlight client object model SharePoint 2010?
Hello,
How can i get the current loged in user of sharepoint 2010 in silverlight4.XX version by programtically in C#?
Thanks
Lovkesh PatelHi,
ClientContext clientContext = ClientContext.Current;
clientContext.Load(clientContext.Web, s => s.CurrentUser);
clientContext.ExecuteQueryAsync((sender, args) => {
var currentUser = clientContext.Web.CurrentUser; }, null);
For more information:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.web.currentuser.aspx and
http://stackoverflow.com/questions/3441794/retrieve-current-user-login-in-sharepoint-from-a-silverlight-application
Hope this helps you
Senior Sharepoint Developer,STS [email protected] -
Value does not fall within expected range in client object model SharePoint online
Hi,
I might be missing something, at least i hope so because I don't see it anymore.
Yes, I used the search, and yes many had the same error, but I think my problem has to be something else.
It is not size related but more context related i think.
I've build a function to break inheritance on folders and libraries for several document librarys to implement a crud matrix.
The thing is, it works sort of. The function takes a list and foldername. If the foldername is null the
inheritance on the list is broken and the group is given the roles as provided.
If a foldername is given, i retrieve the folder, break the inheritance and set the new permissions for the given group.
The problem is: The second time the function is called with a foldername it breaks on the getItems for querying the folder.
It is not folder related, becaus changing the folder order gives the same problem on another folder.
I already tried creating a new clientcontext and a new list variable but i cant get it to work.
I cant get into the server logs because im querying SharePoint Online.
var list = GetList(clientContext, "Listx");
AddPermission(list, null, company_Groups.Beheerder, RoleType.Contributor, clientContext);
AddPermission(list, null, company_Groups.Projectleider, RoleType.Contributor, clientContext);
AddPermission(list, null, company_Groups.Constructeur, RoleType.Reader, clientContext);
AddPermission(list, null, company_Groups.Tekenaar, RoleType.Contributor, clientContext);
//Montagepartner
AddPermission(list, "Folder2", company_Groups.Montagepartner, RoleType.None, clientContext);
AddPermission(list, "Folder1", company_Groups.Montagepartner, RoleType.None, clientContext); <----- is where it breaks
AddPermission(list, "Folder3", company_Groups.Montagepartner, RoleType.None, clientContext);
AddPermission(list, "Folder4", company_Groups.Montagepartner, RoleType.None, clientContext);
private void AddPermission(List list, string folderName, company_Groups group, RoleType roleType, ClientContext clientContext)
//MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper();
//using (ClientContext clientContext = new ClientContext(ctx.Url))
//clientContext.ExecutingWebRequest += claimsHelper.clientContext_ExecutingWebRequest;
//clientContext.RequestTimeout = timeOut;
if (!list.HasUniqueRoleAssignments)
list.BreakRoleInheritance(false, true);
list.Update();
var principal = GetPrincipal(clientContext, group.ToString());
var role = GetRole(clientContext, roleType);
// Add the role to the collection.
//var collRdb = new RoleDefinitionBindingCollection(clientContext) { role };
if (folderName != null)
var query = new CamlQuery();
query.ViewXml = "<View Scope=\"RecursiveAll\"> " +
"<Query>" +
"<Where>" +
"<And>" +
"<Eq>" +
"<FieldRef Name=\"FSObjType\" />" +
"<Value Type=\"Integer\">1</Value>" +
"</Eq>" +
"<Eq>" +
"<FieldRef Name=\"Title\"/>" +
"<Value Type=\"Text\">" + folderName + "</Value>" +
"</Eq>" +
"</And>" +
"</Where>" +
"</Query>" +
"</View>";
// query.FolderServerRelativeUrl = Path.Combine(list.RootFolder.ServerRelativeUrl, folderName);
///This is where it breaks, the second time the function executes on a list with another folder name
var folderItems = list.GetItems(query); <----- is where it breaks
clientContext.Load(folderItems);
clientContext.ExecuteQuery();
ListItem folder = null;
if (folderItems.Count > 0)
folder = folderItems[0];
folder = list.GetItemById(folder.Id);
//if (!folder.HasUniqueRoleAssignments)
folder.BreakRoleInheritance(true, true);
folder.Update();
RoleDefinition roledef = clientContext.Web.RoleDefinitions.GetByType(roleType);
RoleDefinitionBindingCollection roleDefCol = new RoleDefinitionBindingCollection(clientContext);
// .Add(roledef);
roleDefCol.Add(roledef);
folder.RoleAssignments.Add(principal, roleDefCol);
folder.Update();
else
RoleDefinition roledef = clientContext.Web.RoleDefinitions.GetByType(roleType);
RoleDefinitionBindingCollection roleDefCol = new RoleDefinitionBindingCollection(clientContext);
// .Add(roledef);
roleDefCol.Add(roledef);
list.RoleAssignments.Add(principal, roleDefCol);
list.Update();
clientContext.ExecuteQuery();Hi,
What if you execute the AddPermission method once a time, will the error still occur or can your code works out the expected result?
As the program breaks in the GetItems() method, to narrow down this issue, I suggest to comment the other lines of code which has no relationship with the items retrieving, then debug your project to see whether the error will
still occur.
Best regards
Patrick Liang
TechNet Community Support -
Rename a File in a SharePoint document library through Client object model
Hi,
How to Rename a File in a SharePoint document library through Client object model?
Thanks
Poomani SankaranHi,
According to your description, you want to rename file in the document library using SharePoint Client Object Model.
Here is a code snippet works well in my environment for your reference:
static void Main(string[] args)
string url = "http://sp2013sps/sites/test/";
ClientContext clientContext = new ClientContext(url);
Microsoft.SharePoint.Client.List spList = clientContext.Web.Lists.GetByTitle("Documents");
clientContext.Load(spList);
clientContext.ExecuteQuery();
if (spList != null && spList.ItemCount > 0)
Microsoft.SharePoint.Client.CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml =@"<View> <Query> <Where><Eq><FieldRef Name='LinkFilenameNoMenu' /><Value Type='Computed'>New Microsoft Word Document.docx </Value></Eq></Where> </Query> <ViewFields><FieldRef Name='Title' /></ViewFields> </View>";
ListItemCollection listItems = spList.GetItems(camlQuery);
clientContext.Load(listItems);
clientContext.ExecuteQuery();
listItems[0]["Title"] = "word.docx";
listItems[0]["FileLeafRef"] = "word.docx";
listItems[0].Update();
clientContext.ExecuteQuery();
More information about SharePoint Client Object Model:
http://msdn.microsoft.com/en-us/library/office/ee537247(v=office.14).aspx
http://www.codeproject.com/Articles/399156/SharePoint-Client-Object-Model-Introduction
http://www.learningsharepoint.com/2010/07/12/programmatically-upload-document-using-client-object-model-sharepoint-2010/
Best regards -
Conflict between Client object model and Item Updated Event Receiver in sharepoint 2010
Hello All,
As per my requirement I have a two custom list.
Agent Details
Port Name
Agent Details contains Agent code, Port Name, email, address and phone of Agent. Its possible that one Agent Code is connected with multiple Port Name.
Basically what I am doing is I am getting port name connected with Agent code, using jquery and bind those values with check box(using javascript created dynamically) and bind all with Div tag.
Now when my custom edit form of Agent list open up it shows me different port name binding with checkbox group.
when user select the check box and click confirm button my clicent object model script will run and add this selected value into Port Name list.
After confirm one more button named Save will enable asking user to edit the email, phone or address value and when I click on save my Item updated event fires which update the values of the selected port name(These port name I am getting from port
name list) to Agent Details custom list.
Now when I am trying to update the values my event receiver fires or some times it got stuck(not firing). So could you please help me the possible alternative for this requirements.
Can we user the Ecma Script(Client object model to preserve the value of selectec port) and Item updated event receiver on the same time?
Is anything am doing wrong then please guide me.Hi,
As I understand, when you updated values in the agent details list the Item updated event receiver got stuck sometimes.
The item update event receiver will fire after the item has been saved, and the client object model script or the Ecma Script runs before the item is saved, so there is no conflict between the client object model script and item update event receiver.
You could find out the reason about the item update event receiver gets stuck by debugging the event receiver.
When you want to debug your event receivers, you have to attach to OWSTIMER.EXE and wait till they are executed. You can control this behavior using the Synchronization attribute. Also, if you’re looking for an easy way to debug an event receiver without
having to manually attach a debugger to your code, you can use the System.Diagnostics.Debugger.Launch() method.
The articles below are about how to debug in the event receiver in SharePoint 2010.
http://sharepoint-kings.blogspot.jp/2013/02/debugging-event-receivers-in-sharepoint.html
http://chakkaradeep.com/index.php/event-receivers-in-sharepoint-2010/
http://sharesaint.com/?p=77
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to get all previous versions page contents and other field values of a publishing page using SharePoint Client Object Model 2010?
Thanks,
OsmitaHi Osmita,
Greetings.
Here are the links that helps you. It has code attached to it.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/a0d2ab40-99ba-4368-8505-1dc559ef6469/get-content-of-previous-version-of-page-sharepoint-2010?forum=sharepointgeneralprevious
http://social.technet.microsoft.com/Forums/sharepoint/en-US/faaf419f-997e-4150-9911-48cc375c3b46/how-to-get-previous-published-versions-of-publishing-pages-in-sharepoint-2010?forum=sharepointdevelopmentprevious
Please remember to click 'Mark as Answer' on the answer if it helps you -
Create folder in Document Library using Sharepoint 2010 Client Object Model
I would like to check for the existence of a folder in s Sharepoint 2010 Document Library and if the folder is not found, create it. (I would then subsequently programmatically upload documents to that folder -- which I have figured out). Can someone
please help me figure out how to check for the extistence of and then create a folder using the Sharepoint 2010 Client Object Model?You can use this:
public static void CreateFolder_ClientOM(string listName, string folderName)
ClientContext clientContext = new ClientContext("http://basesmc2008");
Web web = clientContext.Web;
List list = clientContext.Web.Lists.GetByTitle(listName);
clientContext.Load(clientContext.Site);
string targetFolderUrl = listName + "/" + folderName;
Folder folder = web.GetFolderByServerRelativeUrl(targetFolderUrl);
clientContext.Load(folder);
bool exists = false;
try
clientContext.ExecuteQuery();
exists = true;
catch (Exception ex)
if (!exists)
ContentTypeCollection listContentTypes = list.ContentTypes;
clientContext.Load(listContentTypes, types => types.Include
(type => type.Id, type => type.Name,
type => type.Parent));
var result = clientContext.LoadQuery(listContentTypes.Where
(c => c.Name == "Folder"));
clientContext.ExecuteQuery();
ContentType folderContentType = result.FirstOrDefault();
ListItemCreationInformation newItemInfo = new ListItemCreationInformation();
newItemInfo.UnderlyingObjectType = FileSystemObjectType.Folder;
newItemInfo.LeafName = folderName;
ListItem newListItem = list.AddItem(newItemInfo);
newListItem["ContentTypeId"] = folderContentType.Id.ToString();
newListItem["Title"] = folderName;
newListItem.Update();
clientContext.Load(list);
clientContext.ExecuteQuery();
Blog | SharePoint Field Notes Dev Tool |
ClassMaster -
Setting the default value to taxonomy column in sharepoint 2010 using client object model
I am creating a metadata column and I want to set its default value in sharepoint 2010 using client object model. Can anyone help me?
My code for creating metadata column is as below:
ClientContext clientContext = new ClientContext(siteUrl);
Web site = clientContext.Web;
List list = site.Lists.GetByTitle("LibraryName");
FieldCollection collField = list.Fields;
string fieldSchema = "<Field Type='TaxonomyFieldType' DisplayName='SoftwareColumn' Name='SoftwareColumn' />";
collField.AddFieldAsXml(fieldSchema, true, AddFieldOptions.DefaultValue);
//oneField.DefaultValue = "ASP.NET|4c984b91-b308-4884-b1f1-aee5d7ed58b2"; // wssId[0].ToString() + ";#" + term.Name + "|" + term.Id.ToString().ToLower();
clientContext.Load(collField);
clientContext.ExecuteQuery();Hi,
Please try the code like this:
ClientContext clientContext = new ClientContext("http://yoursite/");
List list = clientContext.Web.Lists.GetByTitle("List1_mmsfield");
clientContext.Load(list);
clientContext.ExecuteQuery();
FieldCollection fields = list.Fields;
clientContext.Load(fields);
clientContext.ExecuteQuery();
Field f = fields.GetByTitle("mms");
clientContext.Load(f);
clientContext.ExecuteQuery();
Console.WriteLine(f.Title + "---" + f.DefaultValue);
//2;#A2|a0a95267-b758-4e4d-8c39-067069fd2eef
//1;#A1|641f5726-992c-41c8-9ddc-204a60b88584
f.DefaultValue = "1;#A1|641f5726-992c-41c8-9ddc-204a60b88584";
f.Update();
clientContext.Load(f);
clientContext.ExecuteQuery();
Console.WriteLine(f.Title + "---" + f.DefaultValue);
Best regards
Patrick Liang
TechNet Community Support -
How to activate Custom Feature in SharePoint 2010 using Client Object model
I am trying to Activate a custom feature using Client Object Model in SharePoint 2010. Here is the code I used. When I execute the code, I got the error "Feature with Id 'xx' is not installed in this farm, and cannot be added to this scope while
creating site collection". Can anyone help?
ClientContext clientContext = new ClientContext(spURL);
//GUID of the custom feature
Guid districtFeatureId = new Guid("5b3529de-5045-46da-af87-8d2e32c121a7");
Site clientSite = clientContext.Site;
FeatureCollection clientSiteFeatures = clientSite.Features;
clientContext.Load(clientSiteFeatures);
clientContext.ExecuteQuery();
//Activate the feature
clientSiteFeatures.Add(districtFeatureId, false, FeatureDefinitionScope.Site);
clientContext.ExecuteQuery();Hi shil chan,
When you activate a feature on the site collection, the feature should be scoped to site or farm, the error message shows it cannot find the specific feature, this will happen when you have a feature in web
scope or the feature isn’t installed.
So, to troubleshooting this issue:
Verify whether the feature is scoped to web. Please go to
Site Setting->Site Features . If the feature is a web scope feature, then add the feature to webfeatures.
Make sure the feature is installed correctly.
Please inform me freely if you have any questions.
Thanks -
Cannot create list in SharePoint 2010 using Client Object Model
I am trying to utilize SharePoint 2010 Client Object Model to create a List based on a custom template. Here's my code:
public void MakeList(string title, string listTemplateGUID, int localeIdentifier)
string message;
string listUrl;
List newList;
Guid template;
ListCreationInformation listInfo;
Microsoft.SharePoint.Client.ListCollection lists;
try
listUrl = title.Replace(spaceChar, string.Empty);
template = GetListTemplate((uint)localeIdentifier, listTemplateGUID);
listInfo = new ListCreationInformation();
listInfo.Url = listUrl;
listInfo.Title = title;
listInfo.Description = string.Empty;
listInfo.TemplateFeatureId = template;
listInfo.QuickLaunchOption = QuickLaunchOptions.On;
clientContext.Load(site);
clientContext.ExecuteQuery();
lists = site.Lists;
clientContext.Load(lists);
clientContext.ExecuteQuery();
newList = lists.Add(listInfo);
clientContext.ExecuteQuery();
catch (ServerException ex)
Now, this particular part, newList = lists.Add(listInfo); clientContext.ExecuteQuery();, the one that is supposed to create the actual list, throws an exception:
Message: Cannot complete this action. Please try again.
ServerErrorCode: 2130239231
ServerErrorTypeName: Microsoft.SharePoint.SPException
Could anyone please help me realize what am I doing wrong? Thanks.I've made progress - well, at least to some extent. The previous message related to the "Invalid file name" is not appearing any more. I now realize that it is necessary to specify feature ID, list template kind, as well as custom schema in order
to order SharePoint 2010 to create the document library.
However, there's a new problem which isn't documented on the net almost at all (at least I was unable to find anything): The document library gets created, but I cannot access it. Further inspection showed that the doc lib views are not created. Basically,
the only accessible doc lib page is the document library settings page. Also, I get the server exception with the message:
Server Out Of Memory. There is no memory on the server to run your program. Please contact your administrator with this problem.
Any idea what is causing this issue? Thanks.
Hi Boris
Borenović,
I think I found the reason for this notorious "Server Out Of Memory" error.
(Man, it took 4 hrs of frustrating troubleshooting without any direct hints... very disappointing
MSFT developers :( ).
Anyway,
All the "Form" elements at the bottom need to have SetupPath="pages\form.aspx"
attribute (by default this attrib is missing when you copy the whole List element from inside the stp's manifest.xml file).
Also, just make sure that each "View" element has correct "WebPartZoneID", "SetupPath" and "Url" attribute values otherwise that list/library will
be created successfully but will fail to load when you try to access it (with the VERY helpful "Cannot complete this action, contact administrator" error). Even if you enable stack trace (or check ULS logs) you will find "An unexpected
error has been encountered in this Web Part. Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe." and you will never realize it's because of the
incorrect attributes ("WebPartZoneID", "SetupPath" or "Url" as mentioned above).
Come on Microsoft, you can do better than that?
If the API needs this attrib then why is it missing inside the manifest.xml file when
an STP file generated in the first place? -
SharePoint 2010 client object model read survey list
Hello all,
please suggest me how to read
questions and answers in a survey list using
client object model
if possible some code is fine.
Like CricketHi,
below is the code for reading the items from survey list in .Net managed client object modal share point 2010
using (ClientContext context = new ClientContext("siteUrl"))
context.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
Web web = context.Web;
context.Load(web);
List survey = web.Lists.GetByTitle("SurveyListName");
FieldCollection fldColl = survey.Fields;
context.Load(fldColl);
ListItemCollection coll = survey.GetItems(CamlQuery.CreateAllItemsQuery());
context.Load(survey);
context.Load(coll);
context.ExecuteQuery();
//Load the questions and answers in the dictionary object
Dictionary<string, List<string>> questionAnswers = new Dictionary<string, List<string>>();
foreach (Field fld in fldColl)
if (fld.FieldTypeKind == FieldType.Choice && !fld.FromBaseType)
foreach (ListItem item in coll)
if (item.FieldValues.ContainsKey(fld.InternalName))
string value = item.FieldValues[fld.InternalName].ToString();
if (!string.IsNullOrEmpty(value))
if (!questionAnswers.ContainsKey(fld.Title))
List<string> values = new List<string>();
values.Add(value);
questionAnswers.Add(fld.Title, values);
else
List<string> oldValues = questionAnswers[fld.Title];
oldValues.Add(value);
questionAnswers[fld.Title] = oldValues;
Thanks,
Anil
Anil -
Item.SystemUpdate for Client Object Model in sharepoint 2010
I have a javascript that modifies a column/field in the list item when opened. However, this changes the Last Modified By field of the item.
is there a SystemUpdate method for Client Object Model?
----------------------- Sharepoint NewbieI got a work around for this problem..
Before updating the Modified, Modified By values, First we need to Disable the version settings for document library. Once the fields updated then again we need to enable the version settings.
find the updated code below..
//Disable Version settings for DOC LIB
before update Metadata
_List.EnableVersioning
= false;
_List.Update();
_cContext.ExecuteQuery();
ListItem item = newFile.ListItemAllFields;
_cContext.Load(item);
//Updating Metadata Created,
CreatedBy, Modified, Modified By
item["Created"]
= "8/10/2013 7:04 PM";
item["Author"] = CreatedUserValue;
item["Modified"] = "8/10/2013 7:04 PM";
item["Editor"] = ModifiedUserValue;
item.Update();
_cContext.ExecuteQuery();
//Enable Version settings
for DOC LIB after update Metadata
_List.EnableVersioning
= true;
_List.Update();
_cContext.ExecuteQuery();
Rajendra -
Unable to get the SharePoint 2013 List names using Client object model for the input URL
Please can you help with this issue.
We are not able to get the SharePoint 2013 List names using Client object model for the input URL.
What we need is to use default credentials to authenticate user to get only those list which he has access to.
clientContext.Credentials = Net.CredentialCache.DefaultCredentials
But in this case we are getting error saying ‘The remote server returned an error: (401) Unauthorized.’
Instead of passing Default Credentials, if we pass the User credentials using:
clientContext.Credentials = New Net.NetworkCredential("Administrator", "password", "contoso")
It authenticates the user and works fine. Since we are developing a web part, it would not be possible to pass the user credentials. Also, the sample source code works perfectly fine on the SharePoint 2010 environment. We need to get the same functionality
working for SharePoint 2013.
We are also facing the same issue while authenticating PSI(Project Server Interface) Web services for Project Server 2013.
Can you please let us know how we can overcome the above issue? Please let us know if you need any further information from our end on the same.
Sample code is here: http://www.projectsolution.com/Data/Support/MS/SharePointTestApplication.zip
Regards, PJ Mistry (Email: [email protected] | Web: http://www.projectsolution.co.uk | Blog: EPMGuy.com)Hi Mistry,
I sure that CSOM will authenticate without passing the
"clientContext.Credentials = Net.CredentialCache.DefaultCredentials" by default. It will take the current login user credentials by default. For more details about the CSOM operations refer the below link.
http://msdn.microsoft.com/en-us/library/office/fp179912.aspx
-- Vadivelu B Life with SharePoint -
SharePoint Online / Office 365 -- Client Object Model
Hello,
i try to get some Data from the SharePoint Online "Office365" Beta with the Client Object Model. I use an Sample from the MSDN but i always get the Error
"Server was unable to process request. ---> The server was unable to process the request due to an internal error. ...." in Visual Studio 2010.
Following the Code Snip:
ClientContext clientContext = new ClientContext("https://URI.sharepoint.com/");
clientContext.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;
clientContext.FormsAuthenticationLoginInfo = new FormsAuthenticationLoginInfo("USER", "PASS");
Web web = clientContext.Web;
ListCollection allLists = web.Lists;
clientContext.Load(web);
clientContext.Load(allLists);
clientContext.ExecuteQuery();
Console.WriteLine("{0} ({1})", web.Title, web.Description);
foreach (List list in allLists)
Console.WriteLine("{0} ({1})", list.Title, list.BaseType);Hi M.Litschke. You should have received a welcome email when you signed up for the Beta that had the community forum link & login details in it. Did you not recieve one?Myles Jeffery | Thinkscape |
SharePoint Online Deployment |
SharePoint Online File Migration Tool
Maybe you are looking for
-
When I try to mirror my late 2012 macmini to my apple tv. I only see a black screen. I have no problems if I use my mid 2012 MBPr. The mac mini is still on mavericks at present any advice welcome please. (There is no other monitor attached to the m
-
How do I delete some of my music from iphone 4s so I can get the new update?
My phone says I don't have enough room to upload the new update 7.1 or anything else for that matter. My music is what is taking up so much room. How do I get rid of some of my music so I have more room on my phone?
-
Problems when setting SSL for a MQSeries Adapter
I'm trying to enable SSL and so far these are the steps I've done: - I've been using the DemoIdentity.jks and DemoTrust.jks files located under <MIDDLEWARE_HOME>\wlserver_10.3\server\lib for all my certificate operations. - I created a PrivateKey and
-
Extraction Error: ERROR occured in the data selection
Hello everybody, I have made configurations for the BW connectivity. Finally I was able replicate data sources from R/3 to BW. But when I try to extract the data its giving me the error. In monitor details, in extraction node its showing like "Error
-
Hi everyone, Is there a way to open any type of document and to display to the user ? How can I do it ? Thanks.