Tag Info

Hot answers tagged

5

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

Finally, I was able to address this requirement as follows: Create a Custom Activity which takes sharepoint group as 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 = ...


4

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

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 ...


3

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 ...


3

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 ...


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

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

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

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

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 ...


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

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 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 ...


1

From the way you phrased it, the issue has improved since you tried that fix correct? If not, or if you just want to be complete in your debugging, I would open up SharePoint Manager 2010 (or download it from codeplex if you don't have it) and check the version of the workflow by navigating to the associated list, as well as looking for anything that was ...


1

I've come across this before, I think there is a way to check for workflow locks on tasks - checkout the code on this blog post http://geek.hubkey.com/2007/09/locked-workflow.html. I tried to implement this but wasn't successful, hopefully you might have more luck ! Ian.


1

I assume this is 2007? You could check the number of tasks in your task list which is suggested as one of the causes by the following article: http://social.technet.microsoft.com/wiki/contents/articles/2271.sharepoint-2007-workflow-this-task-is-currently-locked-by-a-running-workflow-and-cannot-be-edited-en-us.aspx Don't know if that will help.


1

Don't confuse the version number shown when you go to the GAC with the file version. The version number shown is the AssemblyVersion which is used when clients specify which version they want to load. The file version specified in the kb article is the version of this dll implementing a certain assembly version. To see the file version of an assembly in the ...


1

Try to use SPWorkflowEventReceiver. If I'm not wrong the WorkflowPostponed is invoked when the exception is thrown. In this method you have access to the SPWorkflowEventProperties. There are ErrorException and ErrorMessage properties that can be used by you.


1

You have to create a List with a List Schema (Template) where you can specify which Forms are to be used. http://msdn.microsoft.com/en-us/library/aa543477.aspx Refer to Forms Element. You can do it manually using Sharepoint Manager 2010 or similar tool. Hope it helps! Best Regards


1

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 ...


1

Here's a link to a blog entry I wrote on writing SPD custom workflow actions for 2007 http://blog.ianchivers.com/2011/02/office-sharepoint-designer-2007-custom.html. It might help you identify where your missing something from your live server. Pay particular attention to the .actions file and the web config. Also check out if the assembly was added to ...


1

The problem is with your DesignerType attributes in your ACTIONS files. Since you want to set these to variables you should switch these lines: <FieldBind Field="DocumentLibraryLink" Text="Link to the document library" Id="3" DesignerType="TextArea"/> <FieldBind Field="DocumentLibraryResultName" Text="Result name of to the document library" Id="4" ...


1

I solved this issue in other way. When the task is created I setup an unique permission for this task like this: HybridDictionary permsCollection = new HybridDictionary(); permsCollection.Add(taskProperties.AssignedTo, SPRoleType.Contributor); createTask.SpecialPermissions = permsCollection;


1

You won't be able to. Workflows run on the timer service, independent of the current user, or httpcontext. Some workarounds are to 1) assign a task to the user at completion 2) send email to user from workflow at completion 3) create a view of completed workflows. Any of these will allow the user to access said page after the workflow is complete, but it'll ...


1

I tried to find a solution for this by first checking if I could have two Action element for same class and assembly but with different sentences like "find a document with id equal to %1 in list with guid equal to %2" and "find a document with path equal to %1 in list with guid equal to %2"... BUT this does not work because for a given class and assembly, ...


1

To save you from searching around, I'll elaborate on how to do logging effectively. I use this method, found under Action->Core Actions->Log to History List in Workflow Designer. I put these logs after every branch and step, and from there I write all the relevant fields to the log using the lookups. Then you just navigate to the workflow history at ...


1

Unfortunately Sharepoint SP2 removed the loops within workflows, as it was unfortunately pretty easy to create infinite loops. See: Service Pack 2 prevents an on-change workflow from starting itself If you scroll towards the bottom, you will also get an idea of how to create a similar while loop - The issue is that you have to keep track of 2 different ...


1

The option discussed in the article is part of the Workflow Association process when you configure a workflow on a list or library. The first screen (which is standard for all workflows) has an option where you can set that the workflow completion also sets content approval (its just a checkbox) on the same form where you define if you wnat the workflow to ...



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