Tag Info

New answers tagged

0

Using SPList.ItemCount property worked perfectly for me. string dump = string.Empty; foreach (SPList list in SPContext.Current.Web.Lists) { dump += string.Format("List:{0}, Item count:{1}\n", list.Title, list.ItemCount); }


1

If you're attempting to build Full Trust or Sandbox solutions, SharePoint must be installed on the machine with Visual Studio (which you don't want to do in production). If you're attempting to build SharePoint Apps, then you just need to have a site using the Developer Site template.


0

Based on my understandings... When a new site collection is created it needs to add a registry key to SharePoint tools at this address, [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\SharePointTools] But it doesn't adds it automatically, now if we add link to hosts file it does adds the link to registry key. Again what I understood is that ...


0

After googling for hours I came to an answer that rather to trigger any workflow event we can attach an event receiver (i.e. Item Added) to workflow history list. And in ItemAdded() method we can perform the task. In my case, if the workflow is cancelled then I want to reset the permission of workflow item. So the declaration for event receiver would be as ...


1

Modules are used to deploy files to SharePoint Content Database. They can't deploy a file to physical folder. When you add a mapped folder like layouts to SharePoint VS Projects, the files inside the mapped folder automatically get deployed to physical path.


1

You are setting a value but not updating the item, I'd expect a .Update() in there. workflowProperties.Item["Stakeholders"] = acctId; workflowProperties.Item.Update(); Also, this may be affecting you: If your field "" is field on the Infopath form and you have chose that field to be available on the form library then one thing you should check is ...


0

It's possible but, it'll add a few extra steps to your Workflow. If you are using the "SingleTask" activity you should have the TaskID for the task that was created. Create this task targeting a content type that has a Person or Group field that will be used to collect the extra approver. With the TaskID you can read information that was filled in the task ...


0

Shorter way of getting SPUser from the field is var t = web.Lists[properties.ListId].Items.GetItemById(properties.ListItemId); var username = new SPFieldUserValue(web, t["Administrator"].ToString()).User.Name;


2

I think I had success with this by using the Overwrite=True attribute (https://msdn.microsoft.com/en-us/library/office/aa544268.aspx). Also I believe once the content type is in use in a list instance it might be blocked from being removed. Try deleting the instance and then clearing it from both the first stage and second stage recycle bin then ...


0

In my case, recycling the application pool where search was running fixed this issue


1

A bit late but still.. Have a look at: https://serviceappstarterkit.codeplex.com/ Pretty straightforward to get the helloworld example working


0

Yes it is possible to create provider hosted apps in a VM which already has SharePoint installed. If you target the on premise SharePoint, this type of app is called High trust app. A high trust provider-hosted app can establish trust with SharePoint by using digital certificates. For more information see this: ...


0

Yes you can create and run a provider hosted on the same machine as the SharePoint installation. This kind of provider hosted app where SharePoint and app will be on premise and you will be calling server-to-server is termed as a high-trust app. There are a few steps you need to carry out in order to get this working eg. setting up trust between the app and ...


2

BaseViewID 0 is intended for using in views, which are added to home page! Remember, when you're adding a XsltListViewWebPart to a page, you can select to display "Summary view" in webpart properties. This is actually "BaseViewID=0" view. Source: How can I use normal paging on a custom view?


1

You can mount a SharePoint site as a drive in windows by using the site URL as the remote path for the mapping. After that you can use whatever editor you want to make changes. This article covers the mounting process and has a link to a OS specific step by step: https://msdn.microsoft.com/en-us/library/office/jj733519(v=office.15).aspx


1

As the name suggests, Assembly deployment Target; specifies where the assembly i.e. dll of the SharePoint will be deployed to. So, in case of WebApplication deployment target, the assembly will be loaded in the bin folder represented by the IIS site. For example, the deployment is done to port 80 site. Then the path may look like this ...



Top 50 recent answers are included