Microsoft SharePoint API
3
votes
1answer
404 views
Get list of installed apps using Client Object Model
I have been trying hard to find any example, resource which explains how to get a list of installed apps in SharePoint 2013 environment using Client Object Model. So far I have found nothing.
Could ...
0
votes
0answers
131 views
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
...
2
votes
1answer
121 views
How to impersonate Farm Administrator in server object model?
We are using SharePoint Foundation 2010. We are creating content database and site collection using server object model. We have more than 1000 users in SharePoint. As content database and site ...
1
vote
2answers
537 views
How to programmatically add a hashtag to a List item in Sharepoint 2013?
I would like to add specific hashtags to List items on a Sharepoint 2013 App using the C# components.
I want to mimic the "Tags and Note Board" feature.
I found how to add a tag on the server here ...
1
vote
1answer
274 views
Get all Document Libraries on a sharepoint 2013 site RESTfuly
I want to fetch all the 'document libraries' from a sharepoint 2013 site Restfuly.
I tried using
http:///_api/web/folders
but it fetches the list of all possible folders including some internal ...
0
votes
0answers
116 views
SharePoint autohosted App - Retrive Users from the 'app web'
I'm trying to develop an App for SharePoint (2013/Online). As part of the App initialisation and onboarding process, I need to read the list of 'app web' users and create corresponding user records ...
0
votes
0answers
69 views
Programmatically recreate Fast Search Layout list control
The Content Sources section under the Fast search Service application displays a list of all the content sources. The Content sources section gets is rendered by the ListContentSourceControl.acsx on ...
0
votes
0answers
104 views
populating document library column from sql server sharepoint 2010
I would like to populate a document library column in sharepoint 2010 with data coming from sqlserver DB. I have a sql query which returns the results and I would like to populate my document library ...
1
vote
1answer
276 views
office web apps integration
We would like to allow users of our site display office documents in Office WebApps. Since the Office WebApps are allowed only for skydrive or sharepoint and we have lot of documents for lots of ...
1
vote
1answer
465 views
programmatically get SharePoint Fast search content sources
Need help to complete my C# program. I have four content sources in my farm. I need to get all the content sources and start full crawl if the content source is idle.
What is the best way to do it. ...
0
votes
1answer
494 views
Get a weburl from Sharepoint Client Side Object Model
So let's say I have a full url into a sharepoint website.
In the past when I wanted to get the weburl and doc url, I used the "url to web url" method of the Front Page Server Extensions. ...
1
vote
1answer
202 views
How can I give a custom service application to a content database
I've got a custom service application that looks at a site collection and stamps pdf's on that site collection.
The problem is that the application pool that the service applications runs as ...
0
votes
1answer
691 views
Uploading large files to Sharepoint 365
I'm using the CSOM to upload files to a Sharepoint 365 site.
I've logged in succesfully with Claims based authentication using methods found here ...
3
votes
1answer
3k views
Adding list items with SharePoint 2013 REST API
I'm trying to add a new item in a existing list using SharePoint 2013 with the REST API.
There is pretty good documentation for this here: ...
0
votes
0answers
55 views
SPBusinesDataField field is not appearing in sharepoint mobile view
I have created custom list on SharePoint Foundation 2010. It has few External Data (![SPBusinesDataField][1]) fields. These fields are working properly on SharePoint site. When I access this list on ...
0
votes
1answer
253 views
Recursive search for sites using Client Object Model using Site Id (GUID)
Using the Client Object Model I am looking for the most efficient way to search a SharePoint server and determine if a specific subsite exists given its unique ID (GUID). We are storing the GUID in ...
0
votes
2answers
318 views
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 ...
-1
votes
1answer
398 views
Adding a document to a SharePoint list using a Ribbon button
I have a SharePoint solution using a custom document library. I need a way to allow users to added documents, but I need to specify the file name based on strict naming conventions. I am currently ...
0
votes
0answers
138 views
GetListItems Method + ViewFields parameter not getting overridden + sharepoint
I want to get the data for all the fields and rows from a sharepoint list. So, i gave all the fields in the viewFields parameter in the GetListItems() method specifying like below:
<ViewFields>
...
0
votes
1answer
208 views
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" ...
1
vote
4answers
562 views
SPListItem.Tasks always empty
I have a custom sharepoint (2007) list (named testlist) on which I attached a test workflow (built with sharepoint designer 2007 and named testwf), which only task defined in the 'Actions' section at ...
1
vote
1answer
1k views
How to programmatically create editable wiki pages within the Pages library of an Enterprise Wiki site
I'm new to SharePoint. I'm trying to programmatically create a wiki page within the Pages library of an Enterprise Wiki site in SharePoint 2010. Here is my code:
using (SPSite site = new ...
0
votes
0answers
113 views
How can I revert all Web Part Personal Page to the Shared View using the SharePoint API
Sharepoint 2010...
For each site I'd like to know if it's possible and where I should look to be able to revert all of my user's personalized views of those sites to the default shared view.
...
0
votes
0answers
73 views
How to get ChangeToken for the site specified in sharepoint client object model
ChangeCollection siteChanges = clientContext.Web.GetChanges(new ChangeQuery(true,true));
clientContext.Load(siteChanges);
clientContext.ExecuteQuery();
siteChanges.LastChangeToken; is not there as ...
4
votes
4answers
6k views
Reading the list items Sharepoint 2010 client object model
I have a list where I am storing the image URLs and I am trying to read list of items and display the images on the page. For that I wrote the script something like below....
<script ...
1
vote
0answers
911 views
how to Edit a Sharepoint Calendar event Item on event Click in SPCalendarView control
I have created a custom Calendar, using the <SharePoint:SPCalendarView id=spcalView runat="server"> </SharePoint:SPCalendarView>.
Then I had inserted some events to the Calendar List, ...
0
votes
1answer
2k views
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 ...
0
votes
0answers
226 views
Sharepoint 2010 Soap webservices: GUID vs ObjectId
I am devising a program that consumes the Sharepoint 2010 SOAP web services. One of the methods uses the Web Search service Query method that retrieves a bunch of results, of which neither are GUIDs. ...
0
votes
1answer
355 views
400 Bad error using Sharepoint web services
I am getting a 400 HTTP error while attempting to use the Sharepoint Query Web Service. My rationale is that this is largely due to a malformed XML which I am unable to wrap my head around as to why:
...
0
votes
3answers
143 views
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 ...
1
vote
1answer
372 views
How to remove “Lists” and “Sites” nodes from quick launch menu?
I have custom sharepoint site xml template.
sharepoint when i am creating custom site based on my site template.
Features included:
<Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416">
...
0
votes
1answer
160 views
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 ...
0
votes
1answer
483 views
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 ...
2
votes
1answer
602 views
User Profile Pictures from Sharepoint 2010 - C#
What are the ways by which we can download all profile pictures of all users from sharepoint 2010.
I want to develop a code which can be run from a remote machine.
Does this can be done using ...
1
vote
1answer
2k views
Programatically Approve/Reject workflows and add comments
I'm trying to programatically approve/reject workflows in SharePoint. I can successfully do this, but I cannot add comments. I got my code from a year old question, which hasn't been answered ...
2
votes
2answers
257 views
Application to copy a SharePoint Group
As per this entry: Cloning a sharepoint rolegroup I'm trying to create a console application to copy a SharePoint group, including its permissions.
Based on the answer from Tjassens I've reached the ...
1
vote
1answer
217 views
SharePoint returns extra system columns
I do query to SherePoint. I have created query, viewquery and query options.
Web services returns me great results, but it include some other system columns such as:
ows_Modified , ows_DocIcon, ...
0
votes
1answer
503 views
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 ...
2
votes
1answer
482 views
Modifying sharepoint edit dialog
I have successfully created a feature in sharepoint that modifies the existing edit dialog and adds a custom button to it like this.
and I am aware that I can pass back data when the user clicks ...
0
votes
1answer
1k views
Paging through SharePoint 2010 List via SOAP
I'm having trouble paging through a list via SOAP.
I can retrieve a list, but it only ever returns the first 30 items. (which is the setting in the default view).
$methodName = 'GetListItems';
...
0
votes
2answers
2k views
How do you create a new form for a custom Content Type
I am creating a new content type through an Elements.xml file in Visual Studio. I have reference a custom New form document in the XmlDocment node
<XmlDocument ...
1
vote
1answer
699 views
Developing Custom DocumentSet Content Type that includes other Document Content Types
I have sucessfully created and deployed a couple of new content types in Visual Studio. One is based on a Document Set and the others are based on Documents. What I want to do is specify the ...
0
votes
1answer
2k views
Need Onchange events for SharePoint:FormFields
I need to call a javascript function when a SharePoint:FormField has changed. This is to provide some client side feedback about there selection.
I need to add this on a new content type form, in my ...
-1
votes
3answers
392 views
Where I can find sharepoint api [closed]
I am new one to sharepoint. I want to gather all the methods and class available in sharepoint. Where I can get them. Just like API. I searched with Sharepoint API in google. But results are not much ...
0
votes
1answer
489 views
Custom Sandboxed Workflow Activity Issues
I have a custom SharePoint sandboxed workflow activity that I am trying to pass an optional parameter to. However, ULS gives me the following exception message:
...
0
votes
1answer
808 views
Debugging a SharePoint 2010 Custom Activity
I'm trying to build a custom activity for SharePoint 2010 to be used in a work flow. In the designer, I can see the activity in Action drop down menu on the ribbon under "Custom Activities". However, ...
1
vote
1answer
288 views
Generate Report(.docx) from Excel Web Part
Basically I am generating report .docx and .pdf format from the Excel file. The excel file is displayed as Excel Webpart and allowing the user to edit the excel file.
To Save the excel file:
I am ...
0
votes
5answers
240 views
What's wrong with this function. unable to return string value
public static string GetContentFromSPList(string cValueToFind)
{
string cValueFound = "";
try
{
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using ...
0
votes
1answer
533 views
Simple URL Picker
hi my scenario is I want to give the user the ability to browse SharePoint for a file and then the dialog should give me back the URL of that file.
Is this simple? And how to do it?
2
votes
2answers
645 views
ConversionJob in SharePoint2010 to convert docx to pdf takes long time or very slow
I have been using ConversionJob in SharePoint 2010 to convert the docx file to pdf and it takes a long time, around 10 mins.
Is that really very slow or is it because of the resources on my server ...