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
827 views

C#: cannot get listitem field value but works fine in powershell?

back again with a strange issue. Using powershell I can get a handle on a SPListItem and do Item["My Field"] which prints its value. However, in a C# custm workflow activity, when I attempt to do ...
2
votes
1answer
33 views

Best way to upload document to a cross domain

what will best way for me to upload a document to a different site collection in a different domain (also a different farm) using some credentails. Should i use List.asmx web services or Should i ...
-1
votes
2answers
42 views

Timer job fails while trying to data [closed]

I'm fetching data from a excel file and creating sharepoint groups for each entry. There are around 10000 entries for which i need to create sharepoint groups I created a SharePoint custom timer job ...
7
votes
2answers
978 views

Can a CAML query find all documents that were ever modified by a specific user?

I'm trying to list all documents that were (ever) modified by a specific user, using a CAML query like this one: var query = new CamlQuery{ ViewXml = "<View Scope='Recursive'>" + ...
0
votes
1answer
62 views

Load libaries given subsite name in clientapi

Hi I'm fairly new to the sharepoint client api, but I'm trying to get the libraries given a site name. My clientcontext in my class is at the root of my sharepoint e.g. https://mysharepoint.abc.com ...
0
votes
1answer
2k views

Create a WebPart Page in Visual Studio 2010

I have a project that will have a few components: Lists, WebParts, WebPart Pages and an Application Page. I know how to create and deploy all of the above using Visual Studio 2010 to a SharePoint ...
0
votes
0answers
48 views

Turning off markup sanitation when creating pages dynamically in c#

I am creating a program to move pages of content from a CMS system to SharePoint. I notice once I run the following code that the html tags (invalid links, anchors) are being purged. This happens ...
0
votes
1answer
155 views

The Version History for a file in the library showing different “Modified By” Column

I am writing a tool to generate the versions of a file/page in the library. My Report should include the version number and the version created by/Modified by name. While getting the modified by ...
3
votes
3answers
2k views

How to create Site (SPWeb) on Sharepoint Online

I have a problem creating Sites on Sharepoint Online. The code that works on-premise do not work on Sharepoint Online. I do not want to bother you with the code, i just want a clean start. So my ...
0
votes
1answer
217 views

CAML query to select users IDs

I'm trying to select users ids from custom tasks lists. All users are in one SP Group and I need to collect users Ids that doesn't have tasks. query.Query = string.Format("<And><Membership ...
1
vote
0answers
48 views

document sharing on sharepoint 2013

So I've been reading (and checking on my vm) that SharePoint 2013 has a built in capability to share documents with users inside and outside your organization without breaking the permission ...
0
votes
1answer
105 views

How to detect if the user exited page edit mode?

I am making a visual web part for SP2010, and the webpart hides shows content depending on if there was a postback or not. However the only exception to this, is the postback of exiting the page edit ...
0
votes
1answer
24 views

Get which fields were modified - before calling Update()

I need to call Update() on an item only if some fields were modified, and some other fields were not modified. Is there anyway to get, programmatically, a list or array with the names of the fields ...
0
votes
1answer
71 views

Create folder in Generic Setup Path

Trying to create folder in filesystem. But it doesn't work for general domain users, only for admins. I've tried _strArticlePath = SPUtility.GetGenericSetupPath(Path.Combine(_strArticleStoragePath, ...
2
votes
2answers
167 views

Cant see document libraries in content by query webpart

I have the following Content query webpart created by code. But its not showing me the last modified documents as I need, when I go to edit page and check the webparts properties, it does not even ...
2
votes
2answers
6k views

How to send an email in a visual studio sequential workflow

I'm trying to create a sequential workflow using VS. I'm needing to loop through all the items in a list and send an email if one of the columns equals a specific status. I have not found any good ...
0
votes
2answers
264 views

2010 - SPFolderCollection not updating with new items

2010 Enterprise, VS2012, c# server-side Here's the situation: I have a method that gets an SPFolderCollection object from a document library. It then loops through the list checking for a specific ...
4
votes
1answer
149 views

Memory Leak is it?

I have this small chunk of code and I can't understand why it's taking soo memory. static void Main(string[] args) { using (SPSite mySite = new ...
0
votes
3answers
155 views

SPFolderCollection valid index arguments

SharePoint 2010, c# server object model, VS2012 Long story short, I'm trying to fetch a folder of a document library, create a new folder in it from an array of names, then fetch the new folder via ...
1
vote
3answers
56 views

New to Developing SharePoint Web Parts and Features

I recently Developed a really simple web part scoped to site (or at least it's feature is). I also created a feature that up[on activation is suppose to create a new content type. That's fine and ...
1
vote
2answers
1k views

Site columns created programmatically don't show up anywhere

I need to create a site column programmatically during feature activation (requirements - supose I can't change that). My code is fairly straight forward: string internalName = ...
3
votes
1answer
6k views

Feature activation error: System.InvalidOperationException: Operation is not valid due to the current state of the object

i have taken one List Email event receiver(Type is EmailReceived) and that event receiver attach with document library. when i am activate that feature got error. i have check on ULS Viewer. error ...
0
votes
1answer
1k views

How to add “Title field with link to Edit Menu” to a View using code-behind C#?

all I am trying to attempt adding Title with Edit Menu in SharePoint 2013 through code-behind. However, I am unable to do so. Below is my syntax I am using: StringCollection strViewFields = new ...
1
vote
0answers
81 views

Changing a file in a document library with SharePoint web services

I'm trying to update a file in a document library using the SharePoint web service. The "CopyIntoItems" method from the "Copy" web service I use to upload new files returns an error if I try to ...
1
vote
1answer
505 views

Which type of app can I publish to Office Store?

I want to know that which type of Apps I can add in Office Store for selling purpose? I created an AutoHosted App and add it to Office Store and after few days I got the error report saying that ...
2
votes
3answers
405 views

SP2013 Development Environment

Curious how people are setting up their development environments for SharePoint 2013. Is it cost effective to setup everything in the cloud? Seems not because Azure keeps charging you even if your ...
2
votes
1answer
3k views

How to check if user has read/write permission for a SPListItem in c#?

In my SP2010 visual webpart, I am checking permissions with the code below. Basically the current user is either an admin or a regular user. If they are an admin, they need to have permission to edit ...
0
votes
0answers
32 views

How to add to Sharepoint list editing mode false after value change

I have got a list with a lot of elements. I want to add to sharepoint list date which block editing when the date expired. When the date not equal the selected Value.
0
votes
1answer
217 views

XSLT list view webpart is not displaying data after adding view dynamically

I am customizing xsltlist view webpart using c#. I am able to get the results properly till I give the view name to the code. As soon as I give it it's not rendering the data. It's only displaying the ...
1
vote
2answers
419 views

Add hyperlink to custom web part properties

I would like to add a hyperlink to a custom web part which will take the users to a web page on a new window with the configuration settings for the web part. If I try and add a text property as ...
5
votes
1answer
703 views

How can i add multiple items to a lookup

I have a CSOM console app that uploads files to a library, then it creates a lookup field in another list and also adds lookups to the files in my library. The following code adds a single item in ...
0
votes
1answer
172 views

SP 2010 Visual Webpart - How to get all documents in a folder and sort them by caml query?

I am making a visual web part for sharepoint 2010. I have a SPFolder object and I want to get all items in it, but I want to sort it by a specific field. I want to do this by CAML query instead of ...
5
votes
1answer
3k views

How do I remove all users from an SPGroup object?

I have an SPGroup object populated, how can I remove all members from the group, so that essentially I start with a fresh group. I can't delete and recreate it, so I need a way to work with the ...
2
votes
4answers
2k views

SharePoint -access to path is denied

I am working in SharePoint 2010. My requirement is to create folder inside SharePoint layouts and create a file inside that folder. Also I need to access the file for a current logged in user. ...
2
votes
3answers
1k views

Sharepoint site throws exception on clicking save button after uploading a file

I have deployed an event reciever with item added event on a document library in sharepoint site. In item added event I am calculating the number of pages for the uploaded document and updated a ...
0
votes
1answer
62 views

Will the code be leaking

I've wrote here a code for SharePoint 2007 to modify few items through out of all site collections in web app, my question is the code written good, or is there a leak somewhere, and i could improve ...
0
votes
2answers
365 views

ContentType.FieldLinks.Add() issue with hidden and required

I have a feature that does the following in the feature activation Code : Creates a new SiteColumn (Type=Text, Hidden=False and Required =True) Set the french version of the Name (using ...
4
votes
3answers
112 views

best way to store property of a site

I have a site called Exhibitions that contains many many subsites each of which is an individual exhibition (with pages, images etc). I would like to attach to each of these subsites a property which ...
1
vote
1answer
401 views

Looping through all the document libraries and modify the items

I have here a piece of code which loops through the all site collections and webs and lists to find particular and modify some items: foreach (SPSite site in webApp.Sites) { ...
0
votes
2answers
744 views

Uploading an InfoPath form programmatically

I know how to upload the published xsn InfoPath form, but when I try to open it, the form can't find its code behind assembly dll. Does anyone know how to add that? I know it gets put in hive 14 ...
0
votes
1answer
544 views

How to Programmatically load a SPList from an Generic List…?

After running the program... I check my site and only see city5. I also have a console app that undoes all below. The foreach loop only works for the last item. Tying to load all 5 cities... ...
0
votes
1answer
350 views

content query webpart, show document libraries items only

The following code adds a cqwp, and it works almost fine. When I go to design view, the type is Assets Library instead of Document Library. What am I missing here? #region Last updated documents ...
0
votes
1answer
430 views

How can I access/set stsadm properties from code?

I'm trying to set the ChangeLogRetentionPeriod stsadm property from code, which is normally set from the SP powershell. What is the best way to go about setting this property from code? Background: ...
4
votes
1answer
9k views

CAML Query Lookup/Choice Value Type as Text

So, here is some lines of code that i write to retrieve data from Sharepoint list using CAML query. string qryCaml = string.Format(@"<Where> <And> ...
0
votes
1answer
24 views

COM ListItem not updating

ClientContext cl = new Microsoft.SharePoint.Client.ClientContext("http://" + "mysharepoint" + "/" + SubWeb); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("myuser", "mypass", ...
1
vote
0answers
39 views

Problem in mail web part

I wrote this code to send mail but there are exceptions in running it. public string SendEmail(string mail, string password, string to, string subject, string body, string filePath) { ...
0
votes
2answers
4k views

How to programmatically check if the current user has permissions to a site collection?

Given the URL of a site collection root, plus the current logged in user, I need to know if the user has permissions to at least see the welcome page. If there is no Welcome Page set, then I need to ...
1
vote
1answer
2k views

Customize SuiteBarLinks without removing NewsFeed, SkyDrive, and Sites

I want to customize the suitebar links and I already did with a delegate control the only thing is that it removes the existing links, newsfeed, skydrives and sites and I want to keep them public ...
0
votes
1answer
110 views

CAML query, only want to render days in Calendar

I'm new in CAML. I try to learn it. I want to render a day's on ASP Calendar. Have got a list with 5 colums/fields: Kontrakt | Pracownik | Dzien | ID | Procenty ...
0
votes
1answer
328 views

Get reference to the document library sharepoint 2013

I want to get reference to document library in code using SP 2013 by url, I am trying the SPWeb.GetList(url); but it works for lists only. any help?