Get a Parameter within a URL Using a Regular Expression in Nintex Workflow

Recently had a need to extract a parameter from within a URL string using Nintex Workflow.  Specifically, I needed to get the ID parameter from a URL.  In the example URL below, I needed to extract the number 987:

//mysite/mypage.aspx?ID=987&User=654

Follow these steps to get the ID number:

  1. Open the Nintex Workflow designer and add a Regular Expression action.
  2. Configure the Regular Expression action with the following settings:
    • Pattern =  (?<=ID=)[^&]+
    • Operation = Extract
    • Input Text = String, Inserted Reference or Workflow Variable
    • Store Result In = Collection workflow variable
    • Note: Your can use the “Run Now” option in the ribbon to test out the action.
  3. Next add a Collection Operation Action with the following settings:
    • Target Collection = Collection workflow variable
    • Operation = Get
    • Index = Integer workflow variable (with “Default value” = 0)
    • Store Result In = Text workflow variable
  4. The value (987 in the example) is stored in the Text workflow variable and can be used else where within your workflow.

Nintex Workflow Regular Expression - Extract Parameter from URL

Nintex Workflow Collection Operation - Extract Parameter from URL

Advertisements

Remove Line Breaks in Text Using a Regular Expression in Nintex Workflow

You can remove line breaks in a text string using the Regular Expression action in Nintex Workflow.

Here are the steps to follow:

  1. Insert a Regular Expression action into your Nintex Workflow.
  2. Configure it with the following settings:
    1. Pattern = [\r\n]
    2. Replacement text = Keep this empty (or use a replacement character)
    3. Input text = Insert your text string (you can insert a reference to data in a list column or workflow variable)
    4. Store result in = Text workflow variable
  3. You can then use the workflow variable as you need it.

RegExRemoveLineBreaks

Nintex Workflow Stalling on Document Generation Action

I encountered an issue recently where a few Nintex Workflow 2013 workflows that had been running successfully for some time suddenly started stalling.  The workflows still showed a status of “In Progress” but were not moving forward.  Checking the Workflow Progress and Workflow Details pages showed no error messages or issues.  I finally noticed that these workflows were freezing when trying to execute a Document Generation workflow action.

After investigating, I determined that the issue was related to a Nintex Workflow service not running in my SharePoint 2013 environment.  Specifically, the Nintex Workflow Start Service was not actively running on any of my SharePoint 2013 servers.  Once I restarted that service on one of my servers, the stalled workflows continued running, completed the Document Generation action, and progressed to the next workflow steps.

Get Digits Before a Decimal Point Using a Regular Expression in Nintex Workflow

Using the Regular Expression action in Nintex Workflow, you can get the digits before a decimal point.

Here are the steps to follow:

  1. Insert a Regular Expression action into your Nintex Workflow.
  2. Configure it with the following settings:
    1. String = Your number from a column or workflow variable.
    2. String Operation = Replace
    3. Pattern = \.[0-9]+
    4. Replacement String = Keep this empty
    5. Output = Text workflow vatiable
  3. You can then use the workflow variable as you need it.

Here are some examples from using this Regular Expression:

String Regular Expresssion Result
6.5 \.[0-9]+ 6
1234.5678 \.[0-9]+ 1234
1234567.89 \.[0-9]+ 1234567

 

Regular Expression to Get All Characters After a Specific Character in Nintex Workflow

You can get all the characters after a specific character in a string using Nintex Workflow.

Here are the steps to follow:

  1. Insert a Regular Expression action into your Nintex Workflow.
  2. Configure it with the following settings:
    1. Pattern = (^.*?(?=-)-)  where the “-” is the character (replace both “-” with your desired character)
    2. Replacement text = Keep this empty
    3. Input text = Insert your text string (you can insert a reference to data in a list column or workflow variable)
    4. Store result in = Text workflow variable
  3. You can then use the workflow variable as you need it.

Here are some examples from using this Regular Expression:

String Regular Expresssion Result
abc123-xyz456 (^.*?(?=-)-) xyz456
abc123;xyz456 (^.*?(?=;);) xyz456
abc123?xyz456 (^.*?(?=[?])[?]) xyz456

Speaking at SharePoint Saturday Charlotte 2017

I am speaking at SharePoint Saturday Charlotte 2017 on August 26, 2017. This year I will be speaking on “Empower Your Mobile Workforce with Nintex Mobile and Nintex App Studio”. Find out more and register for this free SharePoint conference at the SharePoint Saturday Charlotte site.

Be sure to attend my session and say hello at the conference!

Empower Your Mobile Workforce with Nintex Mobile and Nintex App Studio

Employees today are increasingly on the move and expect to have access to the tools they need to get their work done. Nowhere is this more crucial than on the devices they carry and the mobile apps they use. Nintex provides the tools necessary to enable your mobile workforce to be more efficient and productive. This session will cover features of Nintex Mobile and Nintex App Studio that you can utilize to build dynamic mobile forms and apps with little or no code. You will learn how to leverage Nintex Mobile and Nintex App Studio to create powerful, easy-to-customize mobile forms and apps to empower your organization.

Speaking at the Atlanta Nintex User Group Meeting on 7/26/17

I’m excited to be speaking at the next Atlanta Nintex User Group on July 26, 2017. I will be presenting a session titled “Empower Your Mobile Workforce with Nintex Mobile and Nintex App Studio”. I hope to see you there! For more information and to sign up, visit the Atlanta Nintex User Group page on Meetup at https://www.meetup.com/Nintex-User-Group-Atlanta.

Here’s a summary of my session:

Empower Your Mobile Workforce with Nintex Mobile and Nintex App Studio

Employees today are increasingly on the move and expect to have access to the tools they need to get their work done. Nowhere is this more crucial than on the devices they carry and the mobile apps they use. Nintex provides the tools necessary to enable your mobile workforce to be more efficient and productive. This session will cover features of Nintex Mobile and Nintex App Studio that you can utilize to build dynamic mobile forms and apps with little or no code. You will learn how to leverage Nintex Mobile and Nintex App Studio to create powerful, easy-to-customize mobile forms and apps to empower your organization.

Speaking at SharePoint Saturday Atlanta 2017

I am speaking at SharePoint Saturday Atlanta 2017 on June 17, 2017. This year I will be speaking on “Empower Your Mobile Workforce with Nintex Mobile and Nintex App Studio”. Find out more and register for this free SharePoint conference at the SharePoint Saturday Atlanta site.

Be sure to attend my session and say hello at the conference!

Empower Your Mobile Workforce with Nintex Mobile and Nintex App Studio

Employees today are increasingly on the move and expect to have access to the tools they need to get their work done. Nowhere is this more crucial than on the devices they carry and the mobile apps they use. Nintex provides the tools necessary to enable your mobile workforce to be more efficient and productive. This session will cover features of Nintex Mobile and Nintex App Studio that you can utilize to build dynamic mobile forms and apps with little or no code. You will learn how to leverage Nintex Mobile and Nintex App Studio to create powerful, easy-to-customize mobile forms and apps to empower your organization.

Passed the Salesforce Certified Platform App Builder Exam

I recently obtained my first Salesforce certification — Salesforce Certified Platform App Builder.

SFU_CRT_BDG_Pltfrm_App_Blder_RGBThe main two resources I used and that I highly recommend are:

Nintex Mobile and Nintex App Studio Webinar Posted

I recently presented a webinar titled “Empower Your Mobile Workflow with Nintex Mobile & Nintex App Studio“. Here’s a quick summary of the webinar presentation:

“Employees today are increasingly on the move and expect to have access to the tools they need to get their work done. Nintex, the world’s leading workflow and forms automation solution, provides tools necessary to enable your mobile workforce to be more efficient and productive.

In this webinar, we will cover features of Nintex Mobile and Nintex App Studio that you can utilize to build dynamic mobile forms and apps with little or no code. You will learn how to leverage Nintex Mobile and Nintex App Studio to create powerful, easy-to-customize mobile forms and apps to empower your organization.”

You can view the recording here: Empower Your Mobile Workflow with Nintex Mobile & Nintex App Studio