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:
Follow these steps to get the ID number:
- Open the Nintex Workflow designer and add a Regular Expression action.
- 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.
- 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
- The value (987 in the example) is stored in the Text workflow variable and can be used else where within your workflow.
I am honored once again to have been chosen to speak at SharePoint Saturday Atlanta 2014 on June 21, 2014. This year I will be speaking on “Advanced Workflow Design Techniques with Nintex Workflow”. 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!
Advanced Workflow Design Techniques with Nintex Workflow
In an era where doing more with less is expected, companies seek SharePoint solutions that are innovative, more efficient, and cost saving. Workflow designers are always looking for ways to meet those goals by adding power and flexibility to the automation of their business processes. This session explores advanced features and design techniques used to build complex workflows with Nintex Workflow. You will leave this session having added powerful concepts and skills to your tool belt that you can do simply using drag-and-drop actions.
Ran into an issue where a Nintex site workflow was running and appeared to get stuck. The workflow status via the “View Workflow History” link was displaying as Completed, but the workflow still seemed to be running. So, I needed to cancel the site workflow.
To terminate a site workflow:
- Verify that you have the following administrative credentials: You must be a member of the Site Owners SharePoint group on the site that you are configuring.
- Browse to the home page of the site for which you want to terminate a site workflow.
- In the Quick Launch, click View All Site Content and then click Site Workflows link at the top of the page.
- On the Workflows page, click the name of the workflow that you want to cancel in the My Running Workflows section.
- On the Workflow Status page in the Workflow Information section, click “Terminate this workflow now”.
- In the dialog box that appears, click OK.