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

learn more… | top users | synonyms (3)

0
votes
0answers
32 views

How to change date formating to yyyy-MM-dd

I have got this code: dzienStart = Convert.ToDateTime(properties.AfterProperties["DzienStart"]).ToLocalTime().AddHours(-1.0); dzienStart = Convert.ToDateTime(dzienStart.ToString("yyyy-MM-dd")); ...
1
vote
1answer
24 views

Where to store often used class in Sharepoint 2010?

I have a helper class which is often used in number of webparts. The file contains useful methods. Everytime when I create a new webpart in Visual Studio, I need to import this file into the project. ...
0
votes
0answers
19 views

Hiding a web part programatically using CSOM

I have gone through this article in MSDN: https://msdn.microsoft.com/en-us/library/office/ee539301(v=office.14).aspx There is no example mentioned to hide a webpart. I am trying to programatically ...
-1
votes
0answers
29 views

Powershell Script Inside C# Code for SharePoint Administration [on hold]

How do we write a PS Script inside C# Code?
0
votes
0answers
11 views

SP Client PoplePicker set Value from Listem Field

I have a Sharepoint ClientPeoplePicker and in my codebehind I want to set the user displayed in it. I get The user from a Sarepoint List Field of the Typ User and Group: SPFieldUserValue userField ...
1
vote
1answer
20 views

Get the previous version of a document and set the link to a field

How can I access the link to a previous version of a document in a library and assign that value to the new version of the document? eg. Version 2 has been submitted and I want a link to the pervious ...
0
votes
0answers
13 views

SPClientTag parameter in URL is 0

I developed a Provider-Hosted app for SharePoint Online. It worked long time very good, but now I have problems to get the correct SharePoint context. I am using TokenHelper.cs in the latest version. ...
0
votes
2answers
22 views

get sharepoint DateTimeControl selected date?

currently i m creating Visual web part , with SharePoint DateTimeControl trying to get select date from DateTimeControl programmatically .. how to get DateTimeControl selected date value.
0
votes
0answers
18 views

Why user is able to connect to to site using CSOM when he is not authorized

I am using the following code to connect to a site using CSOM in C# application. ClientContext context = new ClientContext("http://myserver"); Web web = context.Web; context.Load(web); ...
0
votes
0answers
9 views

Problem with domain Login in Sharepoint 2013 get “domain\\login”on VS

I get a problem if I programming on Sharepoint in Visual Studio I geting a login name with two \\ -- "domain \\login" How to lose one \? Please help.
1
vote
1answer
23 views

Archive SharePoint list items with attachments to another site collection

I have a SharePoint list having more than 2,00000+ records. Its an email enabled list. I got a requirement to move items which are of DateModified > 60 to another list having the same template in ...
1
vote
2answers
22 views

How to call PowerShellscript.ps1 on SharePoint List list item created.?

Context of Problem: I have a projects list in SP2013 root site collection, when a user creates project item. I have a powershellscript.ps1 file which will carry out following 1. Create subsites 2. Set ...
0
votes
1answer
50 views

SSOM Embed Code when inserting list item

Clicking this button in the list's ribbon, I can properly embed HTML so SharePoint doesn't strip anything out. I have some HTML that I need to insert into a list item field via C# code. How do I ...
0
votes
1answer
16 views

Taxonomy access denied

Trying to access the Taxonomy in a SP 2013 solution (VS2012, C#), but always get a access denied (unauthorized access) on the TaxonomySession object if I am logged in as a "normal" user. If I am ...
0
votes
0answers
20 views

Get all group names of logged user exists, using c# SharePoint 2013?

Using SharePoint 2013, how do you get all group names of existing logged users, using c#?
1
vote
3answers
41 views

Adding user to a SP Subsite Group Errors on production server

The Subsite has unique permissions. It does not inherit from parent. The Code just fall over on production server. /// <summary> /// Method to add user to subsite /// ...
0
votes
1answer
21 views

How to make page that redirects dynamically based on URL

Sorry for bad title, I really don't know how to describe this problem. Any suggestion is welcome. I have to implement one custom button in ribbon bar in all documents to move files from one doc lib to ...
0
votes
3answers
23 views

how to get the sitecollection url in ascx file

I am trying to add a hyperlink for a document which is uploaded in the document library. I don't want to hardcode the url by giving the specific sever url like http://xyz:1112/documents/abc.doc. I ...
0
votes
1answer
29 views

Cannot validate SharePoint URL in Visual Studio

Using VS 2013 Update 4. Office tools Udpated. SharePoint 2013 installed locally. I can browse the site as expected. However, when I go to VS and try to create a solution I get this I also cannot ...
0
votes
0answers
16 views

List all users on Office 365 using C# [duplicate]

I want to get a list of all users on Office 365 using C# I've seen powershell script, but need it using CSOM
0
votes
0answers
50 views

List field manipulation based on rules

he following situation: I have got list (List A) with the following fields. Field A ->String Field B-> String Field C →LookUp to another list Field D → Calculated field Field E On creating or ...
0
votes
1answer
22 views

Creating a sharepoint test site from a live site collection

So I have a live site collection that I need to update but don't want to make changes on. What the best practise to do this? Do I create a web app and site collection. Then do a back up of the live ...
3
votes
1answer
34 views

modifying a site column using powershell without affecting its child list columns

I have a site column of type "Text", and users have assign this column a default value at the list level. so now my site column contains null default value, while its child list columns are having a ...
1
vote
1answer
94 views

Get slowest page results programmatically?

We can get slowest page report through following path from central administration. CA > Monitoring > View health reports I want to gather this information by code. Please guide me if you have any ...
0
votes
1answer
41 views

CAML query ignoring OrderBy element

I can't seem to return a set of items in the order I want while using a CAML query. I want to grab the newest item in a specific folder, so I want to query the folder, order it by ID (though I'm ...
0
votes
0answers
17 views

Custom site columns created & deployed using visual studio did not appear inside my site collection [duplicate]

I have followed the same steps mentioned inside this MSDN article for creating site columns using visual studio https://msdn.microsoft.com/en-us/library/ee231593.aspx . now inside my visual studio i ...
0
votes
1answer
25 views

What determine if a farm solution need to be activated at each site collection or not

I am totally confused on how WSP files need to be deployed and activated inside SharePoint 2013.now I have the following three scenarios where i dealt with WSP files inside my SharePoint 2013 :- I ...
0
votes
0answers
24 views

Creating custom site columns using Visual studio will not show the new site columns [duplicate]

I want to create new site columns using visual studio, so i did the following steps:- create a new SharePoint 2013 empty project. i add two site columns as follow:- <?xml version="1.0" ...
0
votes
1answer
20 views

Creating site columns using Visual Studio

I am in a situation that i need to create 2 site columns named "Asset Type" of type "Drop-down List" that have the same name (Asset Type), but different choices. But using the CA UI i can not create ...
2
votes
1answer
28 views

Can't Open file binary in SharePoint.Client

This bit of code works for me: Microsoft.SharePoint.Client.File file = ctx.Web.GetFileByServerRelativeUrl(@"/Shared%20Documents/Email%20Body.html"); var _stream = file.OpenBinaryStream(); The ...
0
votes
0answers
10 views

Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain

I have two different SharePoint webparts which are working fine on development environment, but when I deploy their wsps on production environment it gives me the error which shows that the production ...
0
votes
2answers
68 views

C# : Access denied reading SharePoint groups from context user

I've made a SharePoint Provider Hosted App. Into the App Web Project, displayed through a Web Part in my SharePoint Page, I have a web page named Default.aspx. On this page I have a button, on which ...
1
vote
0answers
17 views

Is there a way to preserve the Content Type Hub 's column setting (such as drop down choices) when using the CT inside a new site collection

This is my first time where i use Content Type hub. but i found this scenario which i can not understand:- i create a new Site collection (CSA) which act as a Content type hub. inside this CSA i add ...
0
votes
1answer
29 views

How can I get user information from user ID?

I am writing a very small C# console app and I am making an HttpWebRequest to get the list items in a task log and send a daily summary email to everyone with something 'assigned to' them, showing ...
0
votes
0answers
33 views

EventHandler for one «save» button, not more

I have a list-form aspx-page with codebehind. On this page are inserted two «SharePoint:SaveButton»-buttons "Save" with different id. <SharePoint:SaveButton runat="server" ControlMode="New" ...
3
votes
2answers
62 views

SharePoint 2013 Custom Timer Job - Unable to schedule to execute every 3 hours

I have a timer job that needs to be executed every 3 hours. Unfortunately, SharePoint's scheduling classes do not facilitate this. How can I achieve this? Suggestion 1: Thought of running the timer ...
0
votes
0answers
18 views

Update Editor for specific version

i want to update the "Editor" for a specific version of an item. It´s no problem to update the "Editor" for the whole item, but i need it for a specific comment / version. This is my code: ...
0
votes
0answers
13 views

Is it possible to edit .resx file manually?

I have a resourcefile in the SharePoint 14 hive called SPMailRevision.resx. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Resources\) I have a solution that refers to this ...
1
vote
2answers
84 views

Programmatically set the description field of a URL in a Links List

I have created a console application which creates a site collection and updates a links list in an existing sharepoint site which acts as a site register. The code for adding a new entry to the list ...
0
votes
0answers
17 views

Timer job disable

Can I raise some kind of event when a timer job has been disabled from central admin? I need to logwhen a user disable a timer job. (without removing a feature)
0
votes
2answers
26 views

the type or namespace name 'runtime' does not exist in the namespace

I'm writing a deployment application to programmatically deploy site collections and apply templates and master pages. When I try to build the application I get a bunch of errors about a missing ...
1
vote
0answers
20 views

Programmatically get usage statistics for lists and items

I understand it is possible to get usage data for the web and a site collection, however, is it possible to get detailed usage data for every list in a site and every item in those lists ...
1
vote
0answers
24 views

Actions on tasks displayed on the gantt view

I want to know if it is possible to drag and drop tasks in the gantt view or resize.
2
votes
1answer
35 views

CustomSolution Error - Object reference not set to an instance of an object

atm I'm implementing a custom solution in our SP 2010 farm to receive emails on an specific custom list. With the following code it's possible to add one entry, with an email-body contains one line ...
1
vote
0answers
36 views

How to get the correspond listItem from the last major version of a file via CSOM

I am trying to get the last major version of a file in a sharepoint-list by using CSOM with the following Code: var web = clientContext.Web; var list = web.Lists.GetByTitle("MyList"); ...
0
votes
2answers
81 views

Get List Column names C#

I want to Iterate through all List items and its columns names without hard coding the columns names. I only need columns names visible in Sharepoint list settings. but below code is giving me too ...
0
votes
0answers
26 views

Calling codebehind method for javascript

i need to popluated a dropdonwlist in my Sharepoint app page. I wote a C# function for that. The Function should be called when a ModalDialog gets closed. In the callback function i change the value ...
0
votes
0answers
20 views

SharePoint dialog box send javascript object

I am opening a dialog box like this in javascript, i want to pass object back to asp.net application page, but not sure how, var options = SP.UI.$create_DialogOptions(); options.url = url; ...
2
votes
2answers
40 views

Custom Field get wrong display name on custom lists

I've declaratively created around a total of 50 custom fields. They are included in a content type. The problem is when i create a custom list that uses the content type the fields get a missmatch ...
0
votes
0answers
34 views

Timer Job property bag empty

I need to set some properties in the timer job property bag In the FeatureActivated event I use this code to set the property: MyJob job = new MyJob (JobName, webApp); // Set my custom property! ...