SharePoint Designer 2013 Workflow - remove characters from string variable - sharepoint

I'm creating a SharePoint 2013 Workflow in SharePoint Designer (using SharePoint Online).
How can I remove 2 last characters of a string workflow variable?
Is there a way to do it for example using actions?

Download SharePoint Designer Workflow String Actions WSP from here: http://spdwfstringactions.codeplex.com/
I saved the file in c:\deploy\
To deploy this solution, run SharePoint Management Shell as Administrator:
> Add-SPSolution c:\deploy\<solution file>.wsp
> Install-SPSolution -Identity SPWorkflowStringActions.wsp -GACDeployment
Make sure SPDWorkflowStringActions assembly is in C:\Windows\assembly.
Open SharePoint Designer. Now in workflow actions you will have a String Actions group that you can you for string manipulations. I hope it'll help!

If you are using SPD 2013, you can use the Utiliy Actions from the Action menu and select one of the method that fits your need.
I hope this help...

Related

How to customize SharePoint Designer Workflow Task form in SharePoint Online?

I'm trying to customize layout, add javascript and change some other visuals in SharePoint Designer workflow task form. I'm using SP Online and this is related to SharePoint 2013 Workflow (not SharePoint 2010).
Previous versions generate InfoPath or ASPX forms for each task. 2013 does not. Instead it uses content types for tasks but tasks always open in edit mode using a common EditForm.aspx located in ../WorkflowTasks/EditForm.aspx
I suppose changing this form will affect all workflows on that site, which is not the goal.
Is there a way to force SPD to create a dedicated edit form for each individual workflow task? I tried to change the Edit Form attribute on a content type used with my existing tasks but it has no effect.
I can browse WorkflowTasks folder contents in SPD and each associated content type gets a respective folder. I thought SPD would put task forms in there but that's not the case.
Anyone has an idea?
How do I go about creating SPD workflow and edit the ASPX task forms?
Thank You!
Create a custom content type based on Workflow Task (SharePoint 2013) content type.
You can then select a custom content type in your task.
See https://sharepoint.stackexchange.com/questions/171646/custom-task-forms-edit-display-new-in-sharepoint-2013-online-office-365 for additional info.

sharepoint 2013 workflow is not showing stages and actions

[SharePoint 2013 workflow logic not visible][1]
[SharePoint example][2]
I was trying to make workflow in SharePoint Designer 2013 and when I choose list workflow, give name and select SharePoint 2013 workflow and appears windows no Stage no such thing. [1]: https://i.stack.imgur.com/o4wsK.png
I followed this site [2]: https://www.sharepointsky.com/server-side-activities-have-been-updated-you-need-to-restart-sharepoint-designer-to-use-the-updated-version-of-activities/....and tried everything. It won't work in my system. I could not identify the issue.
Awful issue. I don't know the reason but copying file:
"Microsoft.SharePoint.WorkflowServices.Activities.Proxy.dll"
from any of your SharePoint sites where Workflow 2013 is available into this folder:
"C:\Users\USER\AppData\Local\Microsoft\WebsiteCache\(Site where Workflow 2013 is missing)\15.0.0.4455"
will do the trick.
Let me know if it worked for you.

SharePoint designer workflow not changing after publish

I'm working on SharePoint workflow (SharePoint 2010) in SharePoint designer 2010. I was published it many times without problems. But after many publishes (I thing 30) SharePoint stop to changing workflow (I published it without any error and I can find new workflow release in SharePoint web interface).
I published new version (with new commands) but workflow still use old one. But when I modified one of commands which was in workflow previously the modification will appear in next run. I need to add to workflow new commands. My only option is to rewrite whole workflow to new one. But this is much complicated workflow and rewriting takes me long time. Is this behavior normal? Is it some bug? is there any patch or workaround?
This happens most of the time due to the caching mechanism in SharePoint/SharePoint Designer. What you need to do is the following:
Close your SharePoint Designer
Navigate to the following directory: %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
Delete everything in this directory
Navigate to the following directory:
%APPDATA%\Microsoft\Web Server Extensions\Cache
Delete everything in this directory
Open SharePoint Designer and try to publish your workflow again.
Everything should now work.
For SharePoint Designer 2013 you need to do the following steps:
Go to File > Options > General > Application Options
In the General tab, under the General header, check if the "Cache site data across SharePoint Designer sessions” is ticked. If it is, unchecked it.
Open your SharePoint Designer again and try to publish your workflows.
There is an easy workaround: You need to enable major versioning for the Workflows list. By default, that list is not visible but you still can get to the admin page:
Open SP Designer
Goto All Files
Right-Click Workflows list -> Properties
On the ribbon click Administration Web Page
On the admin page go to Versioning Settings
Enable major versioning
Save your workflow

Cannot find published Nintex Workflow

I published a Nintex Workflow to my site with NWAdmin:
NWAdmin.exe -o DeployWorkflow -workflowName "Approve Changes" -nwfFile ApproveChangesWF.nwf -siteUrl http://server/site -username username -password 1234 -domain xyz -overwrite
The result returned by the tool is:
Workflow Published.
Yet, I cannot find the workflow.
When i go to Site Actions > Nintex Workflow 2010 > Manage site workflows, I cannot see my workflow, that I just tried to add.
I'm also trying to get the workflow programatically, there are no workflows in the site.
SPWorkflowCollection workflowCollection = spWeb.Workflows;
workflowCollection.Count //returns 0
How can I find this workflow?
SharePoint Manager (for both SharePoint 2007 and 2010) is a tool that shows pretty everything there is to know about your SharePoint farm. If your workflow has indeed been deployed, you should be able to use this tool to find your workflow. Word of caution: this is a very powerful tool and every property for every object within your SharePoint farm is available to read, write, delete, etc...so, tread lightly.
http://spm.codeplex.com/
take a look at this. It could be that you have not activated the workflow. Only activated workflows can be associated with a list, library, content type, or site.
https://technet.microsoft.com/en-us/library/cc262348(v=office.14).aspx

Sharepoint workflow: creating a task at another site

is it possible to create a task in a task list in a site other than the site to which the workflow is deployed to.
thanks
Nope - this isn't supported. The workflow must be deployed to all sites.
I assume you are talking about a SharePoint Designer Workflow and not a Visual Studio workflow where pretty much anything is possible.
You can either create a custom Activity in Visual Studio for use in SharePoint Designer or you use something like the Workflow Power Pack to add a little bit of custom code directly into SharePoint Designer workflows.
Please note that I have worked on the Workflow Power Pack, so consider me somewhat biased :-)

Resources