Hot answers tagged

8

I believe when you said this was possible in SharePoint 2010, you were referring to this link: http://msdn.microsoft.com/en-us/library/ff798499.aspx I have got this working with SharePoint 2013 too. Here is the sample project: https://dl.dropboxusercontent.com/u/21118137/SPWork.zip I have tested this in Office365 too and it works. There is one caveat ...


6

We've found it's much easier to just add a webconfig.something.xml file to the Config folder. So for your one entry you can create an xml file with these contents: <?xml version="1.0" encoding="utf-8" ?> <actions> <remove ...


5

I've implemented this method in the past, so I just share my code with you: add: private void AddAuthorizedType(SPWebApplication webApplication, string assembly, string namespace_) { SPSecurity.RunWithElevatedPrivileges(delegate { var modification = new SPWebConfigModification(); modification.Path = ...


5

I haven't tried this method, but I think it should work. If you use the Lists web service to query for the particular item, you should be able to retrieve the workflow status column and see it's value. It should give you In Progress/Complete. In your code, you'd just need to check that status and wait/recheck in a few seconds or redirect to your page based ...


5

Finally, I was able to address this requirement as follows: Create a Custom Activity which takes a SharePoint group as an input parameter and outputs a set of email addresses of people added directly in the group. At the core of the activity I used following method which gives me list of email addresses for people belonging to the group strOutput = ...


5

I guess I will answer my own question. The solution was to create a ActivityName.actions file in TEMPLATE\1033\Workflow folder. ActivityName.actions <?xml version="1.0" encoding="utf-8" ?> <WorkflowInfo> <Actions> <Action Name="My custom activity" ClassName="SharePoint.ActivityName" Assembly="SharePoint, Version=1.0.0.0, ...


4

The most common issues are: Make sure the authorizedType entry is in your web.config (for testing you can manually add it or add it using code) If this is a new iteration of an existing DLL, you may have to clear your cache on the machine where you are using SharePoint designer. Make sure your .actions file is correct. You might also want to check out ...


4

Our issue was the missing feature.xml for the PowerView feature: 14\Template\Features\PowerView\feature.xml on our WFE. Rather than using Fiddler which didn't seem to help, we discovered the error in our ULS logs (see below). Working on this missing feature, we then activated the feature on the Root Site collection, but this didn't solve the problem. I ...


3

The problem here was actually a custom branding solution. I was helped by Microsoft Support on this issue, and we discovered that the branding solution had been applied twice. Once as a Farm-level solution and once as a Site Collection-level solution. There must have been something wrong with the Farm solution because when we removed that one the problems ...


3

This may just be a work around, and not a real solution, but if you set those old workflows to fire when an item is changed, you can add a new column ('Fire Workflow' with a yes or no drop down) and then go into the datasheet view and set them all to Yes. That should force designer to see that every entry changed. Once the workflows have completed, you can ...


3

Ours didn't send an email to a SharePoint Group until we: Set the "Who can view the membership of the group?" to Everyone Give Read permissions to the group for the site We then tested with a very simple workflow with SPD and it worked. We got some hints from here. If your email is still not sending after that, then you may need to see: Verify it's a ...


2

I have two recommendations: Professional Workflow in SharePoint 2010: Real World Business Workflow Solutions (Wrox Programmer to Programmer) http://www.amazon.com/Professional-Workflow-SharePoint-2010-Programmer/dp/0470617888/ref=sr_1_1?ie=UTF8&qid=1331150309&sr=8-1 SharePoint 2010 Workflows in Action ...


2

You would need to look at VS Studio workflows as your option here. You are correct that the OOTB workflows are limited and won't fit your requirements. You could look at SharePoint Designer to offer a lot more actions etc. The problem here is that you won't get the State Machine workflow you are looking for. If you ha the budget the Nintex workflow product ...


2

To link back to your item, you can do something like "<a href=\"" + li.Web.Url + "/" + li.ParentList.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url + "?ID=" + li.ID.ToString() + "\">Link to Page</a>" Where li is the SPListItem. HTH!


2

Unfortunatley you cannot debug SharePoint Designer created workflows easily (unless you actually debug the SharePoint codebase). I suggest you add some logging features to the Workflow, examine the ULS logs, check that your workflow history is cleaned up properly etc. (If you updated your post with the Visio diagram of your Workflow it could possibly help ...


2

I've encountered the same issue and I had the SP1 for SharePoint Designer2010 already installed. SP D2010 Version : 14.0.6123.5001 (32-bit) with SP1 The issue : I am using SP2010 with infopath 2010. i've designed a custom approval which contains one approval process. this workflow prompts users to fill in reviewer, CC and comments on the workflow ...


2

You've almost got it... you have to write an expression in that condition that evaluates to TRUE/FALSE. So something like testProp == 'something'


2

I do not believe there is a "standard" solution for this. But, it also depends on your definition of "standard." The only non-code way to do something like this that I know of is to use a complex set of Sharepoint Designer workflows to create a loop that will go through and initiate the workflow on all Items. See the reference for loops in SPD here. A ...


2

You would be correct, support is blowing smoke at you. This isn't the first time I have heard people complain that Sandbox solutions that run on-premise get this exception when running on Office 365. I have deployed and run Sandboxed workflow actions on Office 365, and they have run just fine, however that may simply be that the servers my account run on ...


2

One of the benefits of the 2013 workflows is that they will run in the cloud, but this benefit does not apply to a code based custom activity. Also, any deployment instructions that involve manually copying files to particular directories are problematic, as a year from now an admin may extend the farm with another server, and needing to also copy the dlls ...


2

You can write your Custom activity to write your custom code. You can follow following link to write your custom code activity. http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/08/28/how-to-develop-a-workflow-code-activity-in-sharepoint-2013.aspx Other approach would be write a WCF service to update the data in your service and call that ...


2

Follow the same directions as for SP 2010. I've done this and installed onto SP 2013 just fine.


2

You don't have the copy item in the 2013 workflow engine, indeed. This doesn't mean you can't do it in SharePoint 2013 - you just need to choose the 2010 platform, you have a dropdown when you create the workflow and the default is 2013 but you can change it. 2013 lost some actions as it's a platform that sits outside of SharePoint (WAW - Windows Azure ...


2

The Association form is used when a user attaches (enables, associates) your workflow with a list/doc lib. This is the form that appears right after he choses the WF definition/name/task list/etc. when he clicks OK, if you have an Association form on your workflow, it will be displayed. Information from the first default page will be passed to the ...


1

From the information provided in your post I see that you developed your solution on a version of SharePoint which is newer than the version of SharePoint used on production environment. IMO, this is a bad practice if you don't plan to upgrade the production environment, because who knows what has changed between two builds of SharePoint. If I was you, I ...


1

Are you looking for Workflow Context:Current User? On the collect data from user, click this user and select Workflow Lookup for a user and then set Workflow Context and Current User, unless this is triggered off an item create/change then you could use the Current Item Created By or Modified By from that window instead.


1

Copy the option value in a string variable and then perform your conditions like "starts with". SharePoint will then give you options of every string manipulation and logical operators. Also I can suggest one more option, why not create a calculated field which is true or false depending on the option selected. You can create a formula which will be TRUE ...


1

In my case folder Package was accidentally deleted from SharePoint App project. As soon as I recovered the folder everything started to work again. More details on my blog NullReferenceException When Clicking a Task in Workflow Designer.


1

The workflow feature in Microsoft SharePoint Server 2010 enables solution architects, designers, and administrators to improve business processes. Workflow features are available in both standard and enterprise. Now you have 4 options to create workflow: Use the OOTB worflows Create the workflows using the SharePoint designer 2010 Create workflow using ...


1

I have done both and from my experience things are a lot easier when you use web services. You don't have to kill vssphost5.exe process all the time if you're using web services. From architecture side of things if custom activity is something that will be reused in workflows then I would definitely use custom activities. For all other scenarios I prefer web ...



Only top voted, non community-wiki answers of a minimum length are eligible