Decoding a dictionary value in Nintex Workflow for Office 365 for URL's

Topic

When trying to build a dictionary with URL's or multiple choice values, the dictionary will encode those values with extra special characters ("\").\ when stored.

 

For example: Action configuration: 

Geethika_0-1622016264990.png
 

The output will be:

{"URL":"https:\/\/tenantname.sharepoint.com\/Lists\/name\/DispForm.aspx?ID=id"}

Instructions

Use a "Get an Item from a Dictionary" action to retrieve the required index and the URL will be decoded and saved it in a new variable.

 

For example: Action Configuration

Geethika_1-1622016756334.png

 

Output:

https://tenantname.sharepoint.com/Lists/name/DispForm.aspx?ID=id

Additional Information

Due to the structure of a Dictionary variable some special characters need to be encoded when stored so that they do not interfere with the structure.

If the dictionary variable is used as is, it will contain the encoding.  When retrieving an entry from the dictionary this encoding is removed.

Labels: (1)
Version history
Last update:
‎05-30-2021 05:25 PM
Updated by:
Contributors