Navigate to URL using microflow

1
What’s a good way to redirect a specific URI using a microflow? I can’t seem to find a microflow action or appstore modules that achieve this? Ideas?
asked
2 answers
4

Sid

I have done it this way:

  • download the URL Redirector from the appstore
  • create a page with a dataview pointed to an object that has the URI in an attribute
  • place the URL Redirector in your page, configure it to use the attribute with the URI
  • in your microflow, open the page and pass in the entity with the URI

Hope that helps,

Mike

BTW, URL Redirector is a pretty old widget that hasn’t been updated recently.  In Mx8, there is an action in Nanoflow commons that you could use to do this.

answered
3

Hi Sid,

I recently had the same problem. With the introduction of Nanoflows and custom Javascript actions in Mendix 8 there is now an additional way to solve this. Note that this is only possible if you are able to upgrade to Mendix Studio Pro 8.

  • Instead of calling a microflow, use a nanoflow
  • If you need microflow functionality you can call a microflow as a subroutine from your nanoflow
  • Call a custom javascript action from your nanoflow and give the url as a parameter
  • The following Code should be all you need

 

export async function Redirect(url) {
	// BEGIN USER CODE
	window.open(url);
	// END USER CODE
}

Hope this helps.

answered