# Portal Push

Portlets can be automatically updated by using the Portal Push functionality. If an updated is done in one portlet, a push event can trigger updates to connected portlets. A portal push rest connector must be configured to access this functionality.

## Studio - Workflow

1. Create a table element with two columns (use the exact column names):
   * PortletInternalName
   * Action
2. In the PortletInternalName column enter the internal names of the portlets that are to be refreshed
3. In the Action column enter REFRESH
4. Create a Machine step to trigger the push event, using the PortalPush connector.

![](/files/-M-tmzSmjOvJRKD-MNhY)

## Create PortalPush Rest Connector

1\. Log on to Flow Studio, go to Environment - Connectors and click Add

![](/files/-M-tn3dGBSomM1cLwJ9T)

2\. Set up:

* Name = The name of the connector
* Type = Rest Service
* Base address = XX (in example: <http://localhost/Trunk.NovaCura.Portal.Web/api>)
* Encoding for url parameters = Unicode (UTF-8)
* Cache metadata = No
* Save

3\. Click on REST connector project - EDIT\
4\. Set up:

* Connector name = XX (in example: DefaultConnectorName)
* Connector description = the description of the connector
* Base path = XX (in example: <http://localhost/Trunk.NovaCura.Portal.Web/api)\\>
  &#x20;Click Create/update connector button

![](/files/-M-tnXWAjzBCcVtUU9Xr)

\
&#x20;5\. Click Save button in top right corner.

* Click on REST connector project - EDIT again
* Click on Models in the navigator tree
* Click on NEW FROM JSON<br>

![](/files/-M-tnbRaiNEbeCtGd3G-)

6\. Use following JSON to generate required models:

```
    {
        "PushEventModels": [
            {"PortletInternalName":"pptbl1","Action":"REFRESH"},
            {"PortletInternalName":"pprv1","Action":"REFRESH"}
        ]
    }
```

You can change one of the new created model name from NEWMODEL to for example PUSHMODEL

![](/files/-M-tnfa3do3oBdJ6c-Bl)

7\. Click on DefaultConnectorName and ADD in Operations to create operation. When the requested parameters have been entered click OK.

![](/files/-M-tnigYhigu6nWTtRSs)

8\. Click on Parameters and NEW BODY

![](/files/-M-tnn6hea35JvxIbIuC)

9\. Enter Body data, click OK and then Create/update connector

![](/files/-M-tnqixMMb4to72EuDV)

![](/files/-M-tntkXD7sy5aSWBQWg)

\
10\. If asked for content type for rest requests, select *Set content-type to application/json* and click ok

![](/files/-M-tnwv3GAX1oT0eg0Im)

11\. Save the connector

![](/files/-M-to-Ldab6cGHV3aLz5)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.novacuraflow.com/6.11/development/portal/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
