Vadim Tabakman

After many moons, I finally decided to sit down and automate some work that I regulary did manually.  One of the steps required a url to be encoded so I could post it to another site.

There's no action in Nintex Workflow to encode a url this way, so the option was to either develop a custom action, inline function, or design a User Defined Action.

I chose to make a User Defined Action as the encoding I needed was quite simple.  A simple character replacement.

For those interested, w3schools has a good page on what characters need to be encoded :

As I know my urls are only going to have colons ':' and forward slashes '/', that's all my UDA is catering for.  So the UDA only contains a Build String action.  But I can see in the future that I will be adding to this UDA, which why I decided to make this functionality into a UDA, rather than just using a simple Build String action in each workflow I design.

The parameters this UDA takes, is one input and one output.  Fairly self explanatory right?

UDA Parameters

The UDA contains a single action, and that is the Build String action. The Build String action uses an inline function called fn-Replace, to replace each character with the associated encoded version.  As I mentioned, this only handles colons and forward slashes, but you can add more.

Build String

Ideally, I would handle every character, but for now, this suffices my needs.  If you need to handle other characters, simply add fn-Replace function call to the Build String action.


Input :

Output :


 Nintex Workflow 2010 - v2.3.9.0

 URL Encode UDA - NWF (Design) Download - import into the designer page

 URL Encode UDA - UDA Download - import into Site Actions->Nintex Workflow 2010->Manage User Defined Actions

Posted by Vadim Tabakman Saturday, June 1, 2013 4:46:00 PM Categories: Build String Nintex Nintex Workflow User Defined Actions
Copyright Vadim Tabakman
Rate this Content 0 Votes


Monday, June 3, 2013 7:23:54 AM

re: Nintex Workflow - URL Encoding User Defined Action

I think that I have done something very similar to this.
Would a custom inline function be more robust?


Friday, July 5, 2013 5:50:00 PM

re: Nintex Workflow - URL Encoding User Defined Action

Hi Kevin,

a custom inline function would most definitely be more robust.   If you had that option, that would be the way to go.



Wednesday, September 23, 2015 8:27:58 AM

re: Nintex Workflow - URL Encoding User Defined Action

I landed here when trying to build Discussion Thread URL in Nintex Workflow.

But found alternative to get the URL, via "Encoded Absolute URL" property in Set Variable action.


Anyways want to share the Replace code that can help someone..


fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace(fn-Replace({TextStart}{WorkflowVariable:strThreadURL}{TextEnd}, ,%20),!,%21),#,%23),$,%24),%,%25),&,%26),{TextStart}({TextEnd},%28),{TextStart}){TextEnd},%29),*,%2A),+,%2B),-,%2D),.,%2E),/,%2F),:,%3A),;,%3B),<,%3C),=,%3D),>,%3E),?,%3F),@,%40),[,%5B),\,%5C),],%5D),^,%5E),_,%5F)


It replaces most of the spl characters except single, double quote and Comma.

After this step, I used Regular expression steps to replace single, double quote and comma separately. It works.



Venkatesh R


Wednesday, September 23, 2015 8:57:45 AM

re: Nintex Workflow - URL Encoding User Defined Action

That's awesome Venkatesh.  Thanks for sharing that.

The fn-Replace ...fn-Replace... wow man!!  Impressive!



Monday, June 27, 2016 3:02:07 AM
Sanal Nambiar

re: Nintex Workflow - URL Encoding User Defined Action

Use this way :-- <![CDATA[{WorkflowVariable:VariableName}]]>

You must sign in to this site to post comments.
Already Registered?
Sign In
Not Yet Registered?


  • Entries (295)
  • Comments (1778)