2. Can we ask Sharepoint Admin to create one root level folder and a user for our application using which we can upload document using WebService? We will restrict permissions using our ASP.NET application.
3. Asking them to archive documents periodically. Does this require any workflow or just a configuration from Sharepoint Admin?
That would need a timer job.
I still got a question. And the question is: Why?
So why don't you use the SharePoint Object Model with all features for Documents Management instead of using a workaround so that the possibilities of SharePoint can't be used?
Build a SharePoint solution for the document exchange that would make more sense. SharePoint isn't just an archive or an upload folder. Integrate the ASP.NET web application and use all features.
Of course there might be reasons, but the most reasons don't count: most times the reason is to do the same, ever done before. And that's not a good reason.
So my advice: Overthink the new possibilities and then just judge if you want a real SharePoint with all features (better way) or keeping the old as long as you can (no good way).
There are so many ways to integrate other solutions without reprogramming them and still use SharePoint as it should be used.
Some of the standard WebServices for SharePoint:
_vti_adm/Admin.asmx - Administrative methods such as creating and deleting sites
_vti_bin/Alerts.asmx - Methods for working with alerts
_vti_bin/Copy.asmx - Methods for copying to and from SharePoint sites
_vti_bin/DspSts.asmx - Methods for retrieving schemas and data
_vti_bin/DWS.asmx - Methods for working with Document Workspaces
_vti_bin/Forms.asmx - Methods for working with user interface forms
_vti_bin/Imaging.asmx - Methods for working with picture libraries
_vti_bin/Lists.asmx - Methods for working with lists
_vti_bin/Permissions.asmx - Methods for working with SharePoint Services security
_vti_bin/SiteData.asmx - Methods used by Windows SharePoint Portal Server
_vti_bin/Sites.asmx - Contains a single method to retrieve site templates
_vti_bin/UserGroup.asmx - Methods for working with users and groups
_vti_bin/Views.asmx - Methods for working with views of lists
_vti_bin/WebPartPages.asmx - Methods for working with Web Parts
_vti_bin/Webs.asmx - Methods for working with sites and subsites
I've built an app page that contains a form on it, which adds items to a list. One of the columns is a multiline text column that only allows plain text only. The form uses a text area to allow the user to insert text, but there could be cases where they will enter multiple lines of text. When I insert the text into the column, how can I preserve the line breaks?
I'm looking to create a workflow in sharepoint 2010 using Visual Studio. What I want this workflow to do is run automatically at 7am every monday morning and email out the weekly lunch menu for our cafeteria. I already have a list that holds the menus, so I am wanting the workflow to pick up all of the menus within the week and put them into an email.
Every tutorial I see is for creating a workflow that starts when something is created or changed, but that isn't what I want. If anyone could point me to a tutorial, that would be great, because I don't see anything online so far.
That's because Workflows starts on events like changes or creation. You have to execute it from outside. Therefore you need a calling routine. In SharePoint it's a Custom Timer Job.
Create a class that derives from SPJobDefinition. Override the public Execute-Method and call your workflow there.
Yet, I didn't call a workflow from a Custom Timer Job myself. So you have to try how to do this, but that's the way howto I think.
So, could I just have all my functionality in the custom timer job instead of a workflow? I don't think that this issue I'm working on would need an actual workflow, so I would assume that I can access my list objects from there.
So, could I just have all my functionality in the custom timer job instead of a workflow?
Well, you could do that, I think. There is nothing coming in my head that won't work from a timer job (on the other hand I just started with SharePoint and I don't know everything).
Building a workflow is easier to build and of cause you can set it up for multiple WSCs.
I would create the Workflow and start it with the Timer Job but that's only my opinion.
So, I was able to do everything I wanted within the custom timer, which has opened up a whole bunch of other functionality that I can put into my site. I'll leave the workflows to the business processes.
Well, I've got a list with contactpersons depending on a contenttype which extends the Contact-contenttype. I've got another list with customes (firms) which extends the basetype element. Both lists are generated via xml in a VisualStudio-Project, because it will be used in multiple websitecollections.
Now I want to link the "company" field in the contactperson-list with the customer-list and lookup the values already established there.
I'm able to generate a new field for example "My Company" and lookup the values in the customer-list, but when I try to set the already existing company-field as a lookup-field linked with the customer list, I get an error. The same when I leave xml and programm it in C#.
Is it possible to do what I want? Perhaps not, because it's a SharePoint-Field and it's not designed to be a loopup-field.
So do I have to generate a "new" company field, with a name like "My lookedup company-field from the customed-list, as it's not possible or I'm to stupid to link the existing customer-field"? Well that would be a solution but the name is sooooo long.
Uh, I've found the answer. When I use the webbrowser to do changes on the list I can't change the "Company"-field to a lookup-field, too. It's not envisaged to do that. So the answer is that I have to create a new field and (for example) hide the existing one.
With a little contemplation I would have sift it out before writing the question and perhaps I wouldn't have spend four hours on testing. But on the other side, perhaps someone will have the same question so I didn't deleted it and just answered it on myself.
(I give it a five )
I've got a c# project for SharePoint, where two contenttypes, two lists and a documentlibrary are defined and linked up with xml. All works fine. But now I want to use a InfoPath-document I already have designed for the documentlibrary. Of course I can use Infopath to link it and upload it, but it would be interesting to install it together with the feature I designed in VisualStudio, because it can be used in different websitecollections.
Now I'm totally lost. Can I link the InfoPath-document to the newly created documentlibrary and the two lists, where some values are lookedup? Has anybody an idea how to do that or a link for me? I already searched in google, but I just found how to upload a document with visualstudio and not how to link it.
I created created custom content type called "Voucher" which contains two columns.
I created one List Using "Document Library".
Library Settings->Genaral settings-> Allow management of content types->Yes.
But I am unable to Select Custom Content Type by Add from existing site content types..
You can only use those contenttypes that inherits from a base-contenttype avaibable in documentlibraries. For example you can create a "Voucher" using the document-contenttype and best putting it in the same group.
Then you can use it.
The question is: why can't you use another type. That's because other types don't have the file-field declared by SharePoint. That field is important cause a document library has documents and documents are stored in the file-field. A list that doesn't inherit it from such a content-type doesn't have the right field (with the right id). So it can't be used.
Normally it should be visible in "All Groups". So the question is, if the site is in the same WebSite where the content type has been defined. If it's not, you should copy it there or (a way I didn't tried yet) use the content-type-hub.