Tagged Questions

The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

3
votes
2answers
542 views

CAML query for sharepoint list not working

I have a CAML query where I am getting records between a date range for a sharepoint 2010 list through an asmx web method call. It looks like this ...
0
votes
1answer
119 views

SharePoint adds +1 to time when I set it

I have an issue with SharePoint date time field. Basically I have a date time field, and this field contains for example 19/12/2014 11:30:00. I would like to get this date and remove the time part, ...
3
votes
2answers
2k views

Custom Page Layout in Sharepoint 2013 Foundation

Sharepoint comes with a set of Text Layout Templates. How can I create my own custom Text Layouts under Sharepoint 2013 Foundation. What I'm trying to achieve is a shown below. PS: I do not have ...
0
votes
1answer
683 views

Unable to get event receiver to work with Document Library

I have created a Document Library named Attachments Library. In the library I have created an additional mandatory column of File Details. I intened to use this field to capture some metadata about ...
0
votes
1answer
76 views

Get Items from limited list by providing username and password - C#

I'm using this code in order to get items from SharePoint list. I have a SharePoint list that limited to certain users. How can I provide by this code (or else) a username and password and login as a ...
2
votes
3answers
3k views

Create list item in sharepoint list using REST API using C#

I have a requirement to create list item in a sharepoint online list using the REST API and c#. How to achieve this. Most of the article show using REST API in jquery and Javascript but I have a ...
1
vote
2answers
830 views

running SharePoint utility on non-SharePoint server

I wrote a utility in C# to copy files from a network directory to a SharePoint document library. When the sys admin tries to run the .exe from a non-SharePoint server, he gets the following error: ...
0
votes
1answer
180 views

How to Create WF with C#

I have learned about Workflow by dropping and clicking and the next phase is learn how to create WF with C# based this link ...
0
votes
0answers
92 views

sharepoint app user's self-service registration and authentication

I need to develop an application where users register and authenticate to a website in a self-service manner,and the application is a provider hosted application in Sharepoint 2013. Any ideas of how ...
3
votes
1answer
224 views

C# - Why impersonation is expired while ClientContext.ExecuteQuery() is performed

What I’m trying to do is to connect to SharePoint list by other credentials (impersonation) and print its items. I’m using this code for the impersonation, and it works almost perfectly, until ...
1
vote
1answer
422 views

RichHtmlField showing html markup in display mode

I am trying to render html tags with text in RichHtmlField control in SharePoint. Following is html code. <%@ Register TagPrefix="Publishing" ...
1
vote
1answer
99 views

Potential memory leak with SPListItem?

I have created a Timer Job that iterates through a list of 100,000 items and finds the ones that are older than 120 days and "moves" them to a new site collection for archival. I am using a ...
0
votes
0answers
99 views

How to programmaticily create “SharePoint Sites Links” from SharePoint 2013 which are acessible from saveDialogs

First I would like to note that I have a similar post here to avoid doubleposting several posts many places: MSDN SharePoint Development 2013 Question My Customer wants to have a list of 10-20 their ...
1
vote
1answer
168 views

How to move the suiteBar so its centered

I'm having trouble moving the suiteBar using the margin:0 auto 0 auto; method. I'm trying to make the my sharepoint site's content centered no matter the monitor's screen size (adjusting the width of ...
1
vote
1answer
100 views

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using

public void CheckOut()// CHECK OUT FUNCTION { try { string siteurl = ""; string filePath = ""; ClientContext context = new ClientContext(siteurl); context.Credentials = ...
1
vote
0answers
136 views

How can I tell which service application proxy belongs to a specific service application?

I am new to creating custom service applications, and I have been following the walkthrough given here to begin building my own. In that example though, the service app is built to only allow one ...
0
votes
1answer
59 views

Root site collection token in appending html

I have following code builder.AppendFormat("<img style='border:0; left:-0px !important;position:absolute;' id='AddQuickTagImg_{0}' alt=\"{1}\" src='<% $SPUrl:~sitecollection/Style ...
2
votes
1answer
214 views

Force create SPUser for disabled AD account

I am trying to get SharePoint to create an SPUser for a disabled active directory account. The reason for this is that I am archiving items across site collections. As the items are copied I am ...
0
votes
1answer
330 views

Check-In & Checked Out files inside folder in Document library using Client Object Model

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using. public void CheckOut()// CHECK OUT FUNCTION { try { ...
0
votes
1answer
31 views

Creating a Table in PDF and updating the values in the table SharePoint 2010 programmatically

I am looking into adding a table into pdf with the columns - approver name and approver comments using c# code in console application. and then update the columns with values like "approver1" ...
4
votes
3answers
1k views

How to create a site in a sitecollection on a remote SPServer using C#

I am currently trying to write a Dynamics CRM 2011 plugin that creates a new SharePoint 2010 site (within an existing site collection) for every account that is created. I have the code for creating a ...
3
votes
1answer
588 views

Check- in & check-out files using client object model

As the title says, how can I Check- in & check-out files using client object model?
0
votes
0answers
126 views

Request for the permission of type 'System.Data.OracleClient.OraclePermission failed

I am facing a permission issue. I am deploying my asp.net application to SharePoint 2010 environment as a WSP solution package. Our application uses Oracle client to contact our Oracle database and ...
0
votes
1answer
1k views

Sharepoint 2013 foundation custom css

I am having trouble adding my custom css file work in Sharepoint 2013 foundation. I added a link tag in both v4.master and seattle master pages but to no avail. I thought it would be straight forward ...
1
vote
2answers
629 views

Updating 'Created By' field in SP2010 programatically

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically). I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only ...
1
vote
1answer
31 views

Site collection not created programmatically only in LIVE Server

I am using SharePoint 2007 and was not able to create site collection and add sites pro grammatically using c# code. Some times it creates the site collection and some times it doesn't. works fine ...
0
votes
1answer
734 views

Creating an Approval workflow based on the list values using visual studio 2010

I have a list with the company name, business process and workflow initiation. The Business Process could be Purchase Order/ Leave Request. Workflow Initiation is a radio button which could be ...
0
votes
0answers
86 views

SharePoint 2010 - Create Group Manager programatically in Term store

I have developed code to add user to group manager in Term Store management for particular Term Set, I read the Microsoft article from here. So as per the hierarchy of permission logged in; user must ...
1
vote
2answers
105 views

Update metadata on n amount of files at the same time programmatically, using SPListItem update methods or SPWeb update batch?

I need to update meta data on multiple files that exist on my SharePoint 2010 site. When starting the method that will update the metadata i do not know how many file that will need to be updated, ...
0
votes
1answer
244 views

Lookup field with formatted text

I've created several lookup fields programmatically in existing lists, currently they render with just one field as the text value, however I'd like them to display the contents of two text fields ...
1
vote
2answers
2k views

How to pass values from SP UI Modal Dialog back to the server side code upon button click event

I have a click event on a button that opens a sp ui modal dialog page. and returns a specific value from a text area on that page. I was able to open the page in the modal dialog and able to return ...
0
votes
0answers
334 views

clientContext.ExecuteQuery() giving an error: The remote server returned an error: (403) Forbidden

I'm trying to connect to SP site programmatically and get List data (external list) But getting an error: The remote server returned an error: (403) Forbidden. At clientContext.ExecuteQuery(); ...
2
votes
2answers
359 views

Looping retrieved Items throws an InvalidCastException

I have some very simple code using the client object model to retrieve a list and all items from that list from a SharePoint 2013 Online site. When the ExecuteQuery() fires, I use Fiddler to view the ...
0
votes
1answer
205 views

How to read values from Secure Store Service Application in a timer Job

I have in my sharepoint application an external source that must be accessed by 2 parts of my application The first part is a page, where the users can search on a form, the external data. The second ...
1
vote
1answer
812 views

SharePoint 2013 Search Rest API POST request format

I am hoping to save someone some time as I couldn't find anyone talking about this anywhere. I am looking at the SharePoint 2013 Search Rest API documentation and decided to switch my GET calls to ...
0
votes
2answers
308 views

Use server object model check if SPListItem field is a SPUser or SPGroup

I am making a TimerJob that duplicates ListItems from one SiteCollection to another. In order to do this I need to copy the Users and Groups over to the other site. I am having trouble identifying ...
0
votes
1answer
135 views

Central admin: Job definition (_admin/ServiceJobDefinitions.aspx) page throwing object reference error

The Central admin: Job definition (_admin/ServiceJobDefinitions.aspx) page throwing object reference error. Everything was working as expected 3-4 days back , i tried to check if my custom timer jobs ...
0
votes
0answers
51 views

How expensive is it to pass around SPListItem objects?

I'm working on a service application to keep lists in different site collections in sync. Part of what is going to happen is that, when an item is updated in any of the lists, an event receiver is ...
3
votes
1answer
42 views

Sharepoint 2010 on a Sharepoint 2013 farm? Beneficial?

Here is an article that shows how to present SharePoint 2010 on a SharePoint 2013 farm: http://nikpatel.net/2012/10/13/understanding-sharepoint-2010-experience-in-sharepoint-2013/ If I do the process ...
0
votes
3answers
350 views

Sync two SP calendars

My criteria is as follow: If I add an event in Calendar A , then I want the same event to be added in a different calendar B with some condition. So that I don't have to pick a specific item from ...
1
vote
1answer
674 views

Check box in gridview should update the splistitem check box

I am a newbie in visual studio. I have a Sharepoint list which contains the following fields group name, user, section and active(which is a check box) . I have a grid view visual web part which will ...
2
votes
1answer
111 views

How can I found out he page name I'm currently on in a Farm Wide feature?

I have a farm wide feature that overrides the suite control, the substance of which is similar to the following: public partial class SuiteLinksDelegateCtrl : UserControl { protected void ...
1
vote
1answer
76 views

How to edit web part from wsp solution

I have wsp files that contain some web parts that I need to change the functionality of. Without the actual solution or project files, using just the wsp, is it possible to edit them? I changed the ...
6
votes
1answer
377 views

Programmatically set a WebPart title to a $Resources value

I need to programmatically add a web part to a page where the title is using a $Resources:Filename,Key; string. I know I can use SPUtility.GetLocalisedString() to retrieve the correct value (and loop ...
2
votes
1answer
2k views

Access is denied to the Secure Store Service

I have a sql database which connection string was hardcoded on a property bag I am changing it to use the secure store service application. I already created the application id on the store with the ...
0
votes
1answer
176 views

'Url' for SharePoint item in SocialDataService.GetTags(url)

I am calling the 'SocialDataService.GetTags' web service method to try and obtain the Tags for a specific SharePoint item in a list or for a SharePoint document in a Document library. For the ...
2
votes
0answers
215 views

Adding an existing app part using the client object model( finding the xml)

I've recently found this nice thread on adding an existing webpart using the csom: Add an existing WebPart Using the Sharepoint client object Model I've tried the same approach for an app part (so an ...
1
vote
1answer
82 views

Create File in sharepoint mapped directory

I am creating a farm solution, I want to create zip file from 2 or more files taken from sharepoint library. I want to temporarily save these files in my mapped folder ("Layout/MyFolder"). and allow ...
0
votes
1answer
506 views

ProcessBatchData error

I am trying to run a batch process to insert items into a list. I am running into an error "Cannot complete action. Please try again." which I believe means that there is something wrong with my batch ...
0
votes
1answer
88 views

Obtain 'Tags' of SharePoint item using the Client ObjectModel

I would like to obtain the 'Tags' for each SharePoint (2010, 2013) list item (either a document in a library or an item in a list) using the Client Object Model. I haven't found any API that let's me ...