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

learn more… | top users | synonyms (3)

6
votes
2answers
7k views

Adding description to sharepoint link URL using the C# CSOM

I'm currently adding the URL except the description is an ugly link. I would like to add the description to the URL in a links list on sharepoint online. My current code to add a new item from an ...
2
votes
1answer
508 views

How to add Calendar to every “My Sites” Globally?

I want everyone in my company have their personal calendar in their SharePoint "My Site". It means that I don't want to log in with everyone's credentials and go to their "my site" and add calendar ...
1
vote
1answer
205 views

Injecting dynamic list content into an alert template email

I have tried, and successfully failed, to determine a way to inject the emailed item's value from a universal custom column into the default alert emails generated by SharePoint, in both the subject ...
1
vote
1answer
4k views

Add various Fields in a Sharepoint List Programmatically

i need a method where add various Fields in a Sharepoint List, but these Fields must be in the parameter of this method. Show me this method and how should I use it.
0
votes
1answer
2k views

Set values in repeating table fields programmatically

I have some logic which calculated a list of dates that are to be displayed in the repeating table. The repeating table structure is as shown in the image: The code that I have used to set data in ...
1
vote
2answers
4k views

Workflows and SQL Server Databases

Is it possible to create a workflow that is started by activity in a SQL Server database that is outside of SharePoint? Using a WebPart to put and modify data in a database isn't a problem. ...
2
votes
2answers
6k views

Get selected value of dropdown choice list item

I'm trying to get the selected value of a dropdown list item. Nothing works. SPFieldChoice dropdown = list.Fields["Admin Guide"] as SPFieldChoice; var choices = dropdown.Choices; var selection = ...
0
votes
1answer
1k views

SPSite.AllWebs vs SPSite.OpenWeb

What are the benefits of using SPSite.AllWebs over SPSite.OpenWeb and vice versa when it comes to using-statements and/or checking if a SPWeb with a specific URL already exists?
1
vote
1answer
971 views

Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime

I am developing a windows service in C# and adding dll for SharePoint. I have added reference from C:\Program Files\Common Files\Microsoft Shared\Web Server ...
1
vote
1answer
2k views

Determine if field exists in client-side object model?

I want to check to see if a field exists in my program, but If I use : if (item[_strContainingFieldName] != null) { item[_strContainingFieldName] = fieldValue; } I receive an error stating ...
1
vote
2answers
3k views

SharePoint 2013: How to get workflow status?

I need to be able to get the status of a SP 2013 workflow using C#. I've tried getting the WorkflowManager for the SPSite and calling the GetItemWorkflows, but I never get any results from that. The ...
0
votes
1answer
172 views

What user executes the code when running SPSecurity.RunWithElevatedPriveleges?

I have done research on this and still can't find a strong answer. Some soures say that when using SPSecurity.RunWithElevatedPriveleges that the code is executed as a site collection admin. Some ...
5
votes
1answer
1k views

Get ULS log records programatically

Is it possible to retrieve records from ULS log using C#/SharePoint API without having to manually parse log files? I would like to display logged messages on a custom web page, and I would like to ...
4
votes
2answers
2k views

SharePoint 2010 FBA: Redirect on Sign Out

I'm using the SharePoint 2010 FBA Pack http://sharepoint2010fba.codeplex.com/. Basically, I want to redirect to the homepage once a user Sign's out. I'm unable to find this. Could someone please help ...
0
votes
0answers
187 views

How can I change a list item's user permissions programmatically?

In my SharePoint list, there are different users in different list items. By using C#, I want to change the users' permissions to "Read", but I couldn't find an exact solution for this. If you can ...
2
votes
1answer
2k views

How to add a webpart to 2nd “Top” Zone of a Webpart Page Programmatically

I Have a webpart page, which has layout as shown in picture, Now I want to add a webpart to second "Top" zone of my page but I dont know how to access it, If I want to add it to first top zone I ...
0
votes
1answer
350 views

Issue with SP.UI.ModalDialog.showModalDialog. Page is not being open

I have issue with SP.UI.ModalDialog.showModalDialog. I am working on SharePoint 2010 web-part. In that I need to open the page in SharePoint custom popup. So I have used ...
1
vote
0answers
66 views

Remove document from in-place hold with CSOM?

Is there any way to remove a document from an in-place hold using SharePoint CSOM?
1
vote
1answer
1k views

Object Model List all users with full control on a sub site in SharePoint 2013?

If I have a sub site URL and a user with Site Admin, can I list all users in that sub site that have Full Control at that level? Any C# code sample?
0
votes
1answer
381 views

Activating web feature from event receiver doesn't do anything

I have the following code that should run to automatically disable the Minimal Download Strategy feature when a new site is being provisioned. Unfortunately nothing happens. No errors are captured in ...
0
votes
1answer
62 views

Add google drive editing functionality to sharepoint

I am trying to upgrate from lotus domino to Sharepoint. I am currently using Domino with files where multiple people can work in the same time at. Like google drive where anyone who can edit the file ...
0
votes
1answer
247 views

Form template for generating pdf file with list item

I have a task that requires generating a pdf that has the salary details of an employee. The data is stored in a custom list. I need to use some kind of template for the pdf to show the data in an ...
0
votes
3answers
111 views

SPException while geting a folder as an SPListItem

This sounds like something easy but I some how can't find an answer. I am trying to get an SPItem from a SharePoint list (the item is a folder) so that I can set certain permissions on the folder ...
2
votes
2answers
1k views

Unable to Delete Custom Master Page Programmatically During Feature Deactivation 2013

I currently have a custom master page that is being deployed at the Site scope. Once deployed and the feature is activated it makes the master page available for use. I am able to activate the ...
0
votes
3answers
6k views

How to use SP.UI.ModalDialog.showWaitScreenWithNoClose to display custom loading message?

I use a modal dialog to display my custom aspx page. However, the page takes some time to load, and I would like to provide custom loading message while the modal dialog is loading. I found out here I ...
1
vote
1answer
210 views

Send Log/Debug Messages to SharePoint from a clientside ActiveX Component

I developed a ActiveX Component (C#) for SharePoint 2010 and would like to send log/debug messages to the SP-Server so that they are viewable in the SharePoint LOGS Folder. How am I doing this? Like ...
2
votes
2answers
100 views

Which is the best possible way to connect to SharePoint Sites using Client Object Model

I came across a complex situation (imo) which is why I am asking this question. I am developing an application where in, I connect to all SharePoint Sites specified by user and all its sub sites using ...
0
votes
1answer
472 views

Using C# Script in SharePoint Page

I've done quite a bit of searching (several hours actually) but I haven't been able to get this working. Basically, I have this button: <asp:Button runat="server" Text="Go!" id="go" ...
1
vote
2answers
126 views

What different ways can jQuery be added to SharePoint Sites?

As the question states, What different ways can jQuery be added to SharePoint? Lets say that we have deployed jQuery to SharePoint. We can add it through: Master Page. Adding it to a new Site ...
2
votes
0answers
687 views

Changing the Modified Date of a List Item using the SharePoint Client Object Model (C#) with Contribute Permission

I have a small snippet of code that I use to update the Modified Date of a list item and it works great for users with Full Control permissions. However, for users with just Contribute access to the ...
0
votes
1answer
952 views

Sharepoint 2013: SPweb.Groups.GetByName(groupName) throwing exception

I am trying to create a new SharePoint group programmatically (using .Net), for this I am using the following C# code //greate group with no users: ...
2
votes
2answers
2k views

Java script alert box is not getting displayed through code behind file C#

I need to implement a functionality in which first I have to show Java Script from code behind file and then user needs to be redirected to other page. I have used both ...
1
vote
1answer
79 views

Feature Upgrade on XML defined lists

I had created a project that defined some content types and lists via XML. After it's release we need to make some updates to this feature to include some new functionality. My concern is that since ...
1
vote
2answers
944 views

ItemUpdated not firing when document is added to non-default document library

I have an item receiver that implements ItemUpdated() to process an item after it has been uploaded to a document library. Everything works fine if I add documents to the default "Shared Documents" ...
0
votes
2answers
1k views

Do timer jobs always run under DefaultServiceAccount?

I'm curious whether or not all timer jobs will always run under the same farm service account, i.e. SPFarm.Local.DefaultServiceAccount as specified at installation. For example, if farm service ...
1
vote
2answers
738 views

Moving documents from one server library to another server library programmatically

I am a beginner in Sharepoint and given a task to write timer jobs. Once triggered, I want to move documents from one Sharepoint server library to another server library programmatically. So far my ...
5
votes
3answers
16k views

How to retrieve Users and Groups seperately from a “Person or Group” column via C# code?

I have a field in the discussion list, which allows the initiator of the discussion to specify the people to share the discussion with. This field is typed as 'Person or Group' that allows selection ...
1
vote
1answer
89 views

Read excel data from attachment and display in SharePoint and allowed to edit

User would like to upload a excel file into SharePoint and he expect system to read his file and display out the data that he have uploaded in SharePoint. Besides, from SharePoint, he requested to ...
0
votes
0answers
196 views

Query user details using employee ID

Is there a way to fetch user details from user profile service using employee ID?
1
vote
1answer
347 views

Disable drag and drop option for multiple file uploader

These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second ...
2
votes
2answers
514 views

“nativehr” error while trying to delete list items through ProcessBatchData

Plain and simple, I'm trying to delete a massive amount of items from a list as quickly as possible using a c# app, and have seen references to batch processes being the best way to do this. Not ...
0
votes
1answer
97 views

Disable drag and drop option for multiple file uploader [duplicate]

These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second ...
0
votes
1answer
431 views

SP2013 Sandboxed Visual Web Part, Custom properties won't save

I can't get my properties to save (or possibly load, or both). The custom properties show in the property pane just fine (Well, the formatting isn't great, but they're there). But nothing I do can ...
0
votes
0answers
219 views

custom timer job is not listed in central admin sp 2010

I have created a custom timer job for deleting an item automatically after it reaches its expiry and i have created an event receiver also to activate and deactivated my timer job, i have set ...
8
votes
2answers
12k views
2
votes
3answers
998 views

Add new Content Type to Multiple Document Libraries in SharePoint online(Office 365)

I have one Sample Document Library on SharePoint Online (office 365). this Library has 5 different document content type. And using this Library as a template i have created 300 new Document Libraries ...
2
votes
0answers
86 views

Sharepoint 2013 not displaying lookup field as input

I have a lookup column whose datasource has many items (2 000+) and when creating an item that references the source list, a dropdown is not very suited for the task. In SP2010 when there were more ...
0
votes
1answer
452 views

CSOM list item manipulation

Short and sweet : I'm parsing an XML document and adding new job openings into a sharepoint list as well as deleting them if the job id's and deleting them if the particular job id is not present in ...
0
votes
0answers
364 views

Simultaneous update, delete and add a list item to a sharepoint List object

In the MSDN documentation for C# CSOM, there are separate examples for adding, updating or deleting a single list item from a sharepoint list object (ListItemCollection) Is it possible to combine ...
0
votes
2answers
164 views

How can I compare the date of files with REST query?

I am using SharePoint OneDrive for Business and connected to this storage REST API. And I need to get metadata only files created or updated after some concrete time For example, I need all files, ...