SharePoint 2013; SharePoint 2010 workflows do not update when published using SharePoint Designer - workflow

Updated SharePoint 2010 workflows do not work until iisreset.
I am using:
SharePoint 2013 with CU's updated through May 2015
SharePoint Designer 2013 32bit
Procedure:
Create a new list with two columns Title (default), NewText (single line text )
Create a SharePoint 2010 list workflow using SPD2013. The workflow is set to run manually only. Its only action is to put text into the NewText field when it runs.
Create a list item
Run the workflow manually - It works fine
Edit the workflow in SPD2013 to simply put different text in the NewText field. e.g. initially the text was "FirstTry" changed to "SecondTry"
Check for Errors (none of course)
Publish - no errors
I look at the workflows for the list and see that the original workflow was replaced as expected. (The new workflow is listed with the original workflow listed with (Previous Version . . . .) after the name.
Run the workflow on the item - the text DOES NOT change.
Create a new item
Run the workflow - the text is set to "FirstTry" NOT "SecondTry"
Recheck the workflow in SPD, republish etc. no change
Do an iisreset - now the workflow sets the text to "SecondTry" as desired. further changes continue to have the problem as described above.
I have tried this on multiple site collections, list, different fields etc
I have tried the suggestions from others on this. The most common is clear %LOCALAPPDATA%\Microsoft\WebsiteCache. This does not work for me with no change is symptoms.
Other suggestion was to create the WF as a SharePoint 2013 workflow. Although this seems to work OK (I actually have a different problem with this) it is not a final answer because there are times we need to use SP2010 workflows. An example is that SP2013 will only use SP2010 workflows as a workflow approval action. Also SP2013 workflows do not provide a start approval process AND all of the OOTB workflows are based on the SP2010 workflows.
We really need to be able to update the SP2010 workflows - obviously iisreset is not a solution.
I am pulling my hair out on this one. Help!! Please!!

I got this answer from TechNet Community it appears to work.
I recommend to enable versioning in workflows list and then check if the issue still occurs.
Open SharePoint Designer > click All Files > right click Workflows under All Files tab and select Properties > click Administration Web Page button in the menu > click Versioning Settings in the browser.
Here is a similar thread for your reference:
https://social.msdn.microsoft.com/Forums/office/en-US/a63a1894-6b1d-420a-95dd-b6c546eab34d/updates-made-to-sharepoint-designer-2010-workflow-do-not-show-up-on-the-server?forum=sharepointcustomizationprevious

Related

Powershell and SharePoint online - Multiple page updates

I have 30 pages that all use the same template however I need to now update the sections to collapsible and add org charts where each one has a specific user. Does anyone know if this is possible with PowerShell and what parts of this can and can't be done that way.

In Azure DevOps Server (TFS on Prem) is there a way to link a Changeset to a hyperlink directly?

I am looking to see if it is possible to link a TFS Changeset with a hyperlink directly.
I can create a workitem and in the workitem create a Hyperlink link type to a site and then associate the changeset to the workitem. Doing this however the user has to open the 'Related Work Items' list, open the Related work item, locate the hyperlink link, and open the link.
The end result I am looking for would be when viewing the Changeset Details of a Changeset there would be a 'Related Links' section or something similar where the user could easily see any related hyperlinks for the changeset.
Thanks,
Chris
So after some trial and lots of errors I have come up with a workable solution for my case.
Accomplished by way essentially two actions in a Visual Studio Extension and a new custom Work Item type.
New Work Item type - basically used the Code Review template a hidden work item that can only be created through automation. Removed the fields not needed for my case.
Visual Studio Extension Part 1 - setup up an action that takes place when the user clicks the 'Checkin' button on the Pending Changes window. When this action is triggered the extension will capture some relevant data from the checkin. The extension will then create the new work item and establish two links in the work item. One link is relating the changeset and the work item. The other is a hyplerlink to the desired site.
Visual Studio Extension Part 2 - setup an action for the Changeset Details View. When the Changeset Details View is loading grab the selected changeset ID. This proved to be a somewhat difficult task as a lot of the provided Changeset details classes are private. After grabbing the changeset ID, find the related work items to the changeset. Loop through the links in the work item grabbing the hyperlink links in the work item. Then go through the found hyplerlinks and display them in a new section through WPF in the changeset details view.
Section of code that helped get the changeset ID in the Visual Studio Extension:
var dte = Package.GetGlobalService(typeof(EnvDTE.DTE)) as EnvDTE.DTE;
var dte2 = (EnvDTE80.DTE2)dte;
var vce = dte2.DTE.GetObject("Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlExt") as VersionControlExt;
VersionControlHistoryChangesetItem[] versionControlHistoryChangesetItems = vce.History.ActiveWindow.SelectedChangesets;

Can you add validation to VSO/VSTS Work Item fields?

I was just trying to work out if it was possible to add validation to Work Item fields in Visual Studio Online / Team Services.
My use case is i want to make some fields mandatory if a certain condition is met (e.g. if Field1 = x then Field2 cannot be blank)
There isn't any way to do this. To achieve this feature, you need to customize the process template and work item definition which is not supported by VSTS for now.
There is already a feature request for this on VSTS User Voice: Customize Process Template on Visual Studio Online and MS keeps working on this. Refer to this link for details: VSTS Process Customization futures (January 2016)

MS Word Personal Templates

I'm working with MS Word and am trying to create a list of customized template(s).
i.e. Open Word (2013 / 2016), in the 'New' menu you'll see a list of "Featured" templates, I would like to add my own list of templates.
Through research (Handy Blog), I've learnt that you can create a new template and add it to the "Personal" templates. My problem is, I'd like it to be my own name - instead of Personal, I'd like to have my own heading, say MyCustomTemplates.
From some further reading, I've read a few mixed opinions from this and some even saying that it is impossible, as these 'headings' are hard-coded (Office Forum)
Graphical explanation:
Doing this manually will be my first step, from there - I'll be adding these templates programmatically.
To help anyone that comes across this - below are my findings (including some really useful forums and feedback) and the solution I am most likely going to go with;
After tons of research I have noted and got confirmation that, to change the name of either of the Word headings (FEATURED, PERSONAL etc.) is not possible - Office have hard coded these - see this thread.
You do have some options though:
Using the PERSONAL tab within Word, you could create your own
templates for use (the name would however, remain "PERSONAL") > This
URL will take you through the process, step by step.
If you prefer using a "Support Office URL" - here it is.
As suggested by Doug Robbins, in this thread - you could "Add the New Document or Template command to the Quick Access Toolbar and create a folder under:
C:\Users[User Name]\AppData\Roaming\Microsoft\Templates". This is not ideal for my implementation.
Create an Addin Template using this URL
Use the Ribbon XML, (this is most likely going to be my route): Create a Ribbon XML for the Word application, the user must select this option (click on your ribbon item), then from a folder that you specify, let the user select a template (that you've added) for them to work with. Load the template to the current word document.
I hope this helps.

Start Alfresco Workflow on outside Alfresco Content

I am newbie in Alfresco. I was just going through the Alfresco documents here. I have gone through it, but didn't get the answer of my question as described below.
Is it possible to start workflow(/task) on the content outside of the Alfresco Content (i.e. Our Local System File/Folder)? If yes, how can I achieve the same?
I agree with Younes that you can configure a rule to launch a workflow. In order to do that, you'll want to take a look at the JavaScript workflow API.
Using a rule on a folder will require something to trigger the rule, such as a document being added to the folder. But your question asks if a workflow can be triggered external to Alfresco. To do that, you might consider using a Web Script.
A Web Script is simply a way to extend Alfresco's RESTful API with your own logic. So you could create a web script called "startMyWorkflow" that includes a JavaScript controller leveraging the same API I referenced earlier to kick off the workflow. With that in place, you'd be able to launch the workflow externally using anything that can speak REST over HTTP.
You can setup a rule action to start a workflow if certain conditions are met (files added to some folder, file metadata changed, a new revision has been uploaded ...).
To learn how to create new rules in alfresco follow this tutorial
Update : I may have forgotten to mention that -as the op suggested- he could then setup a cifs/ftp/webdav folder locally to point to some location in the repo having that rule action I was talking about.... So for example adding files to that folder would automatically start a workflow....