Questions tagged [sharepoint-api]

Microsoft SharePoint API

Microsoft SharePoint can be used to provide intranet portals, document & file management, collaboration, social networks, extranets, websites, enterprise search, and business intelligence. It also has system integration, process integration, and workflow automation capabilities.[1]

Microsoft make available an API to interact with SharePoint servers, this API is accessible through a REST interface or a collection of .NET libraries, primarily the client library (can execute on a different machine to the SharePoint server) and the server library (must be executed on the same machine as the SharePoint server).

Both of these libraries can be obtained from the files installed by the SharePoint SDK. They contain the namespaces Microsoft.SharePoint.Client and Microsoft.SharePoint.Server respectivley.

Further functionality can be accessed through additional libraries, however these libraries are only available from the install path of the SharePoint server and they provide functionality (such as email) only available when executed on the same machine as the server.

355 questions
0
votes
1 answer

How to upload document with metadata to avoid duplicate versioning?

I am upload document to document library along with metadata using server object model in sharepoint foundation 2010. I am using following code // Initialize instance of existing site collection using (SPSite site = new…
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
0
votes
1 answer

Sharepoint SPWeb rename - Exception SPException - The security validation for this page is invalid

When attempting an SPWeb rename I receive the following SPException: Exception SPException - The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again. - Failed to create…
Chris Ballance
  • 33,810
  • 26
  • 104
  • 151
0
votes
1 answer

Getting permissions of a user in SharePoint 2K3 List

I have been using SharePoint server 2003. I need to retrieve the list of permissions using SPList.Permissions.Xml. But I dont find the permissions given to the user anywhere in the Xml returned. Say I have a user 'A' whose Login name comes as an…
Prabhu
  • 3,434
  • 8
  • 40
  • 48
0
votes
1 answer

Re-creating a file in SharePoint

I have developed a sharepoint application using object model. It reads the contents of the file using SPFile.OpenBinary() object and saves the contents of the file in the local disk. When I try to create the same file again with the saved content,…
Prabhu
  • 3,434
  • 8
  • 40
  • 48
0
votes
1 answer

Accessing SharePoint Event Attachment

I have a SharePoint calendar event that can have any type of file as attachment. Is there any way to access the contents of the file/ download them? I have to calculate the check sum of these files.
Prabhu
  • 3,434
  • 8
  • 40
  • 48
0
votes
3 answers

Sharepoint web service error 0x81020030 when adding new list item

I am trying to add a new listitem using the sharepoint list service. But Iam getting this error in the result xml from sharepoint "0x81020030Invalid file name. The file name you specified could not be used. It may be the name of an existing file…
user1701550
  • 23
  • 1
  • 6
0
votes
1 answer

Creating a calendar event in SharePoint

I need to create a recurring event in SharePoint calendar. I am able to create non-recurring events. Please help.
Prabhu
  • 3,434
  • 8
  • 40
  • 48
0
votes
1 answer

SharePoint, Workflow and Web Services - restart workflow

Can you restart a workflow or push a workflow to its next step using SharePoint Web Services? If so which web service do you use? If you change a field like "Status" and the workflow uses this to know what it should do next... will it "nudge" the…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
0
votes
1 answer

How to get “Modified By” value for “custom list in datasheet view” app?

We get the "Modified By" attribute for all the files we upload to a document library in SharePoint Online. However, I am not able to fetch the field for "custom list in datasheet view" and "Calendar" applications. I am using GetListItems() API of…
Srikanth P Vasist
  • 1,327
  • 2
  • 14
  • 26
0
votes
1 answer

How to hide webpart in sharepoint only for specific user or case

I have PublishingLayoutPage and depends on query params i should hide few webparts. But i dont now how to do this. Because if i understand problem correctly SPLimitedWebPartManager will hide webpart for all users! using…
Ievgen
  • 4,261
  • 7
  • 75
  • 124
0
votes
2 answers

SharePoint many-to-many strategies

I have a SharePoint site collection that contains a custom site definition and a couple dozen deployed sites for a "Project". Each project contains many "Documents" (each represented by an actual document and a site about the document). So,…
Chris Farmer
  • 24,974
  • 34
  • 121
  • 164
0
votes
3 answers

Web part to record performance metrics?

I'm trying to write a web part that will log some performance metrics to the database when the user loads the page that the web part is placed on. Although I can write to the database with no problems I'm unsure how to capture any relevant…
Michael A
  • 9,480
  • 22
  • 70
  • 114
0
votes
1 answer

Is there a way get lookup fields in random lists associated with a specific list programmatically?

I have a sharepoint list, for example it is named as SourceList. I also have several lists which are associated to SourceList via lookup fields. I don't know the names or number of these lists\ they are created and being created dynamically. And any…
0
votes
1 answer

Sharepoint - UserProfile.PersonalSite is null for couple of users

I am trying to get Public URL of all my sites. i have ran this code for every loginname and its working fine except for one user. for this user i am getting null in up.PersonalSite. i have checked it manually and mysite for that user exists. any…
Raheel
  • 595
  • 8
  • 21
0
votes
1 answer

Custom SharePoint Save Button

Help.. I have a custom new list item ASPX form. The form is working great, but I need to add custom functionality around the List Item name. I want to programmatically name the item upon the user clicking the save button. I have read a few ideas,…
terahex
  • 81
  • 1
  • 2
  • 14
1 2 3
23
24