All Questions
Tagged with sharepoint-clientobject sharepoint-2010
112 questions
3
votes
2
answers
5k
views
C# - Add a File as Attachment to Microsoft.SharePoint.Client.ListItem (SharePoint 2010)
I have no more ideas. I want to create a new element to Sharepoint List and adding a file as an attachment. I can create a new element with ListItem. But the file will not upload.
I try with ...
0
votes
1
answer
4k
views
Get document libraries in SharePoint WebSite
I need to use sharepoint client api in my project and list documents in folders that uploaded to sharepoint. My folders are under the link "https://mydomain.sharepoint.com/sites/blsmtekn/dyncrm/Shared%...
2
votes
1
answer
4k
views
Cannot Refer to Microsoft.SharePoint.Client.dll
I am creating a Windows application the will access a sharepoint website.
There for I need to use Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.runtime.dll in project.
I have add ...
0
votes
1
answer
687
views
Cannot load value of "multiple line of text" using COM in javascript
The column name is "Dialog Box". I tried this
var context = new SP.ClientContext.get_current();
var targetList = context.get_web().get_lists().getByTitle("myList");
...
1
vote
0
answers
217
views
object does not belong to a list error when loading file using clientcontext
I am trying to load a file and its properties in sharepoint
Microsoft.SharePoint.Client.File newFile = null;
newFile = clientContext.Web.GetFileByServerRelativeUrl(relativeURL);
ListItem item = ...
1
vote
1
answer
11k
views
How to grant user permission to certain folders using Client Object Model?
So far I am able to grant user certain permission with the following code:
ClientContext context = new ClientContext("http://myRealURL");
Principal user = context.Web.EnsureUser(@"...
0
votes
3
answers
6k
views
Get all sharepoint sites in a site collection to which user has access using Javascript client object model
I want to display all sites in a site collection using JSOM to which user has access to. In other words I only need to find collection of sites to which user has access in a site collection. I am able ...
0
votes
0
answers
832
views
Delete a list using SharePoint 2010 CSOM
I am trying to delete a list that contains documents using the SharePoint 2010 CSOM and am using the following code:
var list = context.Web.Lists.GetByTitle("Project Documents");
list.DeleteObject();
...
1
vote
1
answer
857
views
SharePoint 2010 CSOM - 401 on subsite query
I am trying to use the CSOM to access data from a root site, then loop through its subsites to get into files that are stored in its lists. When I go to create the ClientContext, it works fine with ...
0
votes
1
answer
34
views
Sharepoint 2010 and webservices sync
I have a List with Webservice URL,username and password. I have created a custom tab and ribbon tab. The webservice URL return a large xml file as output. Now when the list item with the URL is ...
1
vote
1
answer
3k
views
Sudden "Cannot contact site at the specified url" error for no apparent reason
I have a SharePoint site with a few subsites.
I also have a C# program which connect to one of these subsites and import files to SharePoint. A few days ago, I installed this program on a Windows ...
0
votes
1
answer
859
views
vb.net client object model: view content from sharepoint 2010 wikipage
On SharePoint 2010 i have many wikipages containing a table. Is it possible to view the content of that page in vb.net using the client object model?
I tried to get the file code using a stream but ...
2
votes
2
answers
6k
views
Sharepoint: How to easily get related child items using JSOM
Suppose I have 2 Lists: Teams and Employees. Each team has a number of employees:
Teams
ID
Name
Employees
ID
Name
TeamID (foreign key of Teams)
Is it possible to write a query in ...
0
votes
2
answers
11k
views
Access SharePoint online using client object model- Forbidden error
I tried to Create a new list item using client object model. I have created an asp.net application to do the task. It works if I pass the URL of SharePoint server which is installed in my machine.
But ...
0
votes
1
answer
2k
views
Cannot get the document library url in the Client Object Model
I am using Sharepoint 2010.
A document library has been created the Sharepoint portal.
I understand it is recommended that the Library url should not contain any spaces. So initially it is created ...