# Workflow to portal page navigation

**URL:** https://forum.novacura.com/t/workflow-to-portal-page-navigation/520
**Category:** Flow Classic
**Created:** [October 19, 2023, 1:07pm UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520 "2023-10-19T13:07:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![SweInz](https://avatars.discourse-cdn.com/v4/letter/s/7C9FD7/32.png) [@SweInz](https://forum.novacura.com/u/SweInz)
#### Post date: [October 19, 2023, 1:07pm UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/1 "2023-10-19T13:07:10Z")

</div>

Hi All,

I’m trying to navigate from workflow to portal page once when the process ends in the workflow.  
Also trying to navigate one page to another page in the portal.

Is there any way to achieve the above functionalities. Kindly let me know.

Thanks in advance.

Regards,  
Swetha B.

---

<div class="post-metadata">

### Author: ![ivstde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/ivstde/32/146_2.png) [@ivstde](https://forum.novacura.com/u/ivstde)
#### Post date: [October 19, 2023, 1:29pm UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/2 "2023-10-19T13:29:15Z")

</div>

Hi,

(as far as i know) there is no “regular” way to switch pages within Portal.

Thats why sometimes we use a (dirty) trick:  
Every page has its own ID (as part of the whole url to the page)

So all we do to move from one page to the other is create a dummy button on a page we want to move from, that contains the link to the page we want to move to (within a html tag that we enter as the button name):

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/ab5f795ff2423c71d95232f760b9ab388f936e88.png)  
The name of the button is, for example:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/eb2e6ef2cc3e1aba333deaf78ffd8082972cef3f.png)  
And the page to go to is:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/e1ef9250368c51b4f9322813baa058da5fc0fd0d.png)

It works (most of the time, depending where you click 🙂 )

The same trick could be applied to Flow by using the page address in “Link” element.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/40a7fe58aa18dd374adece53fdf340776a9d3a9e.png)

Hope this helps!

B R  
Ivan

---

<div class="post-metadata">

### Author: ![SweInz](https://avatars.discourse-cdn.com/v4/letter/s/7C9FD7/32.png) [@SweInz](https://forum.novacura.com/u/SweInz)
#### Post date: [October 19, 2023, 2:01pm UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/3 "2023-10-19T14:01:01Z")

</div>

Hi,

I thought the same but came to check, is there any appropriate way for screen navigation.  
Thanks for your solution!!

Regards,  
Swetha B.

---

<div class="post-metadata">

### Author: ![Bhaski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/bhaski/32/460_2.png) [@Bhaski](https://forum.novacura.com/u/Bhaski)
#### Post date: [October 22, 2023, 9:33pm UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/4 "2023-10-22T21:33:02Z")

</div>

Hi ,

Thanks for the input.  
I have another question.

Let’s say I have a solution where I need to pass a variable from a page and by taking that value opean related data in the other page e.g.

- List item

supplier is logging into a logging portal  
supplier is validated  
Now this supplier has some related detail data which is stored in DB  
requirment is once supplier is validated in login portal take the supplier ID from login portal and using the same supplier id show his/her data in another page which has a table portlet to shoe the data

Thnaks in advance

---

<div class="post-metadata">

### Author: ![ivstde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/ivstde/32/146_2.png) [@ivstde](https://forum.novacura.com/u/ivstde)
#### Post date: [October 23, 2023, 9:27am UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/5 "2023-10-23T09:27:18Z")

</div>

Hi,

well (if i understood right) for this i would use either Flow properties or a table in the DB (if available) and include that in the flows for datasource/filtering.

So if your suppliers have separate logins to Flow Portal (meaning 1 supplier = 1 flow user) then you can set some Flow Properties for that user (for example SupplierID, Site…) and then use those values in your selects for the datasource of the page you would be navigating to.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/349b3e65bc52453fa59c432990cc6078c13156d7.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/7eea8aae401fbd33adbfa9ce2e10d3abc770244d.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/711450d3b55dc5c475f425a919b2a56fc0673cbf.png)

If you have the suppliers log onto Portal with a general user and then once they are in they “log in” again somehow (through a flow or by filtering) then that is the time you can set the value of these properties on that general user by using the Flow Environment connector.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/0dfd9146ec0d24cd9625466896c7c474de3446ba.png)

And then, once they navigate to the other page, datasource will be adjusted by the values of these properties.

The same thing you can do if you have access to some DB (create a new table of a CLU in IFS) then save the values to the DB based on userId and fetch them while datasource flow fetches for the Portal.

In the example from the previous post above we have a portal page into which users land when they log in and there is a filter set up so they can find their WO.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/bb05442997a0d8b04f175044cd5daa19ea3dc95f.png)  
Once they find their WO they need to click the QuickAction button in the list next to the WO number and that just writes down the WO number to a property on the user as the selection they made, Then on the next screen that selection is read for all the portlets.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/a2cb59c2ec33470c0923ed986931ffa2df55aced.png)  
So you cant realy transfer data between pages but rather remember data on one page and then use that when fetching data for the second page.

Hope this helps!

B R  
Ivan

---

<div class="post-metadata">

### Author: ![Bhaski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/bhaski/32/460_2.png) [@Bhaski](https://forum.novacura.com/u/Bhaski)
#### Post date: [October 25, 2023, 3:26pm UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/6 "2023-10-25T15:26:10Z")

</div>

Hi Ivan,

Many thanks for this.  
Before I can go through your example and understand properly , I want to understand teh below.

A new user is entered in a login portal , I want that new user to write into FLOW DB with a role

Can you show me an sample example for this.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![Bhaski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/bhaski/32/460_2.png) [@Bhaski](https://forum.novacura.com/u/Bhaski)
#### Post date: [October 30, 2023, 7:20am UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/7 "2023-10-30T07:20:15Z")

</div>

Hi Ivan,

I could write users in Flow DB using FLow connector but still didn’t get how I can take a variable from one page to another like below.

User logs into a sign in page behind this I have a workflow in Flow Studio  
The I redirect teh user to another page by providing URL of another page in the link feature of user step  
Now in teh new page I want to automatically show the data in a table porlet only related to the user which is coming from sign in page .

Thnaks in advance.

---

<div class="post-metadata">

### Author: ![Bhaski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/bhaski/32/460_2.png) [@Bhaski](https://forum.novacura.com/u/Bhaski)
#### Post date: [October 30, 2023, 10:07am UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/8 "2023-10-30T10:07:47Z")

</div>

Hi Ivan,

I have done this with the below solution.

> [@Use logged in user id for filtering in Portal 2](https://forum.novacura.com/t/use-logged-in-user-id-for-filtering-in-portal-2/495):
>
> Hi! I’m new here and new in the novacura sphere overall! We are building a portal where our users are supposed to get an overview of orders assigned to them and their colleagues in form of a schedule portlet. We had a vision of being able to use the information regarding who the logged in user is to filter the schedule so that it only shows the orders belonging to the logged in user directly when signed in. After that the user can use the filter to show others or all orders. But we can’t seem …

Thanks for the help, really appreciated.

Regards,  
Bhaskar

---

<div class="post-metadata">

### Author: ![ivstde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/ivstde/32/146_2.png) [@ivstde](https://forum.novacura.com/u/ivstde)
#### Post date: [October 31, 2023, 8:04am UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/9 "2023-10-31T08:04:09Z")

</div>

Hi Bhaski,

maybe i can explain better with the above example:  
So in this portal we have Page 1 with a table portlet showing us WOs

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/4c8740f47a10f41dac8d34773e47a6f457480258.png)

It has a machine flow connected to a QuickAction button.  
All that machine flow does is takes data (WONo) from the row that the button was clicked on and writes it to the DB (here we have access to a MS SQL DB but we can also write it down to a user property)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/d3f73b199d5d64488ae3588105d92a073f905243.png)

So then there is Page 2 with a record portlet which has a listener set to Page 1 and its table portlet (on refresh) and a workflow for a datasource

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/890752599f1243402ae75d0a045690716654aed2.png)

And at the begining of that datasource flow (before we fetch the data it will provide the record portlet) we are fetching the WONo that we saved when hitting that QuickAction button on Page 1, and then we are using it to fetch data for record portlet

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/novacuratalk/original/1X/50fcedf84345d5f6424dc2ac6dae9407f72d2de5.png)

That way:  
User hits QuickAction on Page 1, WONo is saved, Page 1 portlet refreshes  
Listener from Page 2 record portlet knows it needs to refresh now too and at the start of getting data, gets the WONo value that was saved and uses it.  
User is still on Page 1 but can now hit the Select button and navigate to Page 2 which has data based on WONo saved.

So the same principle should apply for your use case, save your data (role) during the running of the flow, in the datasource of the Portal page you are navigating to first read it and then use it to display data based on it.

Hope this helps!

B R  
Ivan

---

<div class="post-metadata">

### Author: ![Bhaski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/bhaski/32/460_2.png) [@Bhaski](https://forum.novacura.com/u/Bhaski)
#### Post date: [November 17, 2023, 6:48am UTC](https://forum.novacura.com/t/workflow-to-portal-page-navigation/520/10 "2023-11-17T06:48:51Z")

</div>

Hi @ivstde ,

Many thnaks for your time and reply.  
I’m going through this and will post if I’ve further queries.

Thnaks,  
Bhaskar
