sharepoint-api

Save Sharepoint Data outside of Lists

What is the best way to store your Data outside of SharePoint. I want to use the default Edit/View options in SharePoint (though I do plan on extending their functionality). I need to store the data outside of the SharePoint Lists as I am expecting a large record set(150,000 to start with). ...

SharePoint Document Library 404 Error

Help- Any idea what would cause sharepoint's doc library's tree view navigation to break? What- We have a sharepoint site that uses the template Document Center to hold all of our docs. In the master page of the site there is a site hierarchy showing a tree view for all the folders in the document library. When clicking on the folde...

Finding SharePoint list item by its display form's URL

Sometimes users require to change information in SharePoint list item that is not editable for them, for instance, a field that is hidden in edit form (in my case it was the records number). I decided to create a small Windows GUI application that the administrator would run on the server and make the requested change. However, the simp...

The search request was unable to connect to the Search Service

Hi, I am developing a sharepoint site using sharepoint object model. I am getting "The search request was unable to connect to the Search Service" message on execute FullTextSqlQuery. Office Sharepoint Server Search and Indexing Service are running. How can I solve this problem? Here is code: FullTextSqlQuery qry = new FullTextSqlQuer...

Is calling the SharePoint Web Services from a Silverlight application secure?

In a public internet scenario, is it possible to call the SharePoint Web Services from within a Silverlight application (hosted in the same site)? Is this secure? The SharePoint site is a public-facing one. ...

Determine the SharePoint Application Pool Account Using Sharepoint API?

Hi, Is there a way of determining the user login used for the Application Pool identity using the SharePoint API? Thanks, MagicAndi ...

Problem in iterating sharepoint folder content

Hi, I am trying to access Folder from Document Library using web services in C#. I am using SiteData's EnumerateFolder() method to get sub folders and files. But the method gives me only 3 properties for each entry. IsFolder Url Last modified date So how can we get 'Modified By' field value. Or there is another solution ...

Copy folders when copying list items from source to destination

Hi, This is my code to copy files in a list from source to destination. Using the code below I am only able to copy files but not folders. Any ideas on how can I copy the folders and the files within those folders? using (SPSite objSite = new SPSite(URL)) { using (SPWeb objWeb = objSite.OpenWeb()) ...

Sharepoint 2010 Managed Metadata - unable to get Term from TermSet

Hi guys, Having a really aggravating problem using Managed Metadata in SP2010 where I can get a Taxonomy Session, Term Store and Term set fine, but when I try to retrieve a term from the term set, I get a TermStoreOperationException which says that it "failed to read from or write to database". Does anyone have any idea as to why I ca...

Windows Sharepoint Services - FullTextSqlQuery Document library Unable to find items created by SYSTEM ACCOUNT

We have created an ASP.NET web app that upload files to WSS Doc Libary. The files get added under 'SYSTEM ACCOUNT' in the library. The FullTextSqlQuery class is used to search the document libary items. But it only searches files that has been uploaded by a windows user account like 'Administrator' and ignores the ones uploaded by 'SYSTE...

Accessing a share point site using the object model.

Hi I am trying to access a share point site using the SP object model from a console application. I am trying to do something like this.. SPSite site = new SPSite(sitePath) //Operations go here This works fine when the share point site and the console app are on the same machine. However when the console app and the site are on dif...

How to display "ContentType" name in search results?

I have a MOSS site where I have created custom content types and activated those on a document library. Now I want to use a custom XSL stylesheet with search results to pull back those documents and display the name of the custom content type assigned for each one. I know how to create managed properties and map those, etc... but can n...

How to get unique values from a sharepoint list column?

Hi, I have a column of date datatype. The user may type in any date. I need to check in the code for unique year values in the column. Is there any C3 direct syantax is tere or I need to use CMAL query... Thanks in advance. ...

How to track folder permission event?

Hi, This is about folder level permissions. We have a document library with break inheritance. While adding folders, sub folders through code, again we coded for break inheritance. Now the requirement is, when a user/group is added to subfolder permission list, we need to track this event. Which sharepoint event do we use and on what le...

What is the best way to migrate documents into Sharepoint (MOSS) 2007?

I'm working with a customer that needs to migrate documents from their current document management system (not Sharepoint) into Sharepoint MOSS 2007 retaining document history and metadata. I've written a proof of concept using the Sharepoint web services and that looks promising, but the snag so far seems to be programmatically setting...

Upload a .pdf file to a Sharepoint Document Library using Access vba

Within an Access 2007 application, I'm creating a static report in .pdf format. I want to create it, then export the static report (not the data itself) to a Sharepoint Document Library. The intent is for it to be a public repository, no versioning. Each report will carry a unique name. I'm a seasoned vba programmer, but using Sharepoin...

Looking for search syntax documentation for SharePoint UserProfileManager.Search Method

Greetings - I have a SharePoint 2010 server running with the User Profile service setup to synchronize to Active Directory. I'd like to use the UserProfileManager.Search() method to return user profiles based on specific criteria. MSDN documentation for this method is here. It states that the method will return user profiles that match...

How to extend Sharepoint AclInv.aspx page?

Hi all, I have a requirement wherein I am supposed to customize the aclinv.aspx page for a particular document library. I implemented an URL listener to redirect to customized AclInv.aspx page. I modified the source and appended my custom parameter to the url. The page was working perfectly fine till I used Windows authentication. But w...

What are some recommendations for books, when talking strictly about programming against the Object Model API for SharePoint 2007?

I've read quite few books regarding programming for SharePoint 2007, but in reading these books*, and referencing the online MSDN documentation there still seem to be large gaps/flaws/errors in what is documented, and how the API works. Is there any book about the SharePoint 2007 API that delves deeply into everything? I would think tha...

Specifying Item Level Permissions using Sharepoint List Event Handler but to a list on which user has Contribute rights

I have a List to which users have contribute rights I have a Event Handler which changes the Item Level Permissions on adding or Updating events on list by 2.a CurrentlistItem.BreakRoleInheritance(true); 2.b and by adding users to that list Now above does not work if user who is adding has rights of contribute but works if users has ...