> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/advanced-topics-pentaho-data-integration-overview/work-with-the-streamlined-data-refinery/use-the-streamlined-data-refinery/building-blocks-for-the-sdr/using-the-publish-model-job-entry-for-sdr/use-the-publish-model-job-entry.md).

# Use the Publish Model job entry

This task assumes you are in the job canvas in Pentaho Data Integration. You must have permissions to **Publish Content** and **Manage Data Sources** in the Pentaho Server in order to use this job entry. If you are using a data service as the source in your Build Model job entry, you must be connected to a Pentaho Repository to successfully publish your model.

Use this job entry to publish the data source created with the Build Model job entry.

1. In the **Design** tab, click the **Modeling** folder, and then double-click the Publish Model job entry. Alternatively, you can drag the job entry icon to the job canvas.

   ![Publish Model job entry](/files/l9PTrF0ODWuiZ3GkUPcl)
2. Double-click the **Publish Model** icon to open the Publish Model dialog box.
3. Enter a name for the entry in the **Entry name** field.
4. (Optional) Select the **Replace Existing Published Model** check box to overwrite an existing Data Source Wizard data source and database connection.

   **Note:** To successfully complete an SDR job, it is recommended that you select this check box. If this check box is cleared and you attempt to publish a model with the same name, the Publish Data Source job entry will fail.
5. Fill in or edit the fields in the **Pentaho Server Connection** section and then test your connection:

   | Option              | Description                                                                                                                                                                                                                                                        |
   | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
   | **URL**             | The base URL string used to connect to the server.                                                                                                                                                                                                                 |
   | **User Name**       | The user name required to access the server.                                                                                                                                                                                                                       |
   | **Password**        | The password associated with the provided user name which is passed during the authentication process.                                                                                                                                                             |
   | **Test Connection** | Click to test the connection to the Pentaho Server using the information provided in the above fields. When you click this button, the system will also check that the associated user is granted the **Publish Content** and **Manage Data Sources** permissions. |
6. Fill in or edit the fields in the **Share** section:

| Field               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Grant Access To** | <p>Grant access to the data model to everyone, specific users, or specific roles.</p><p>The permission granted is read-only. From the drop-down menu, you can select <strong>Everyone</strong>, <strong>User</strong>, or <strong>Role</strong>. If you select <strong>User</strong> or <strong>Role</strong>, the<strong>User/Role Name</strong> field is available.</p><p>You can use variables to populate this field. The variable can contain one of three values: everyone, user, or role. These values must be lower-case to work properly.</p> |
| **User/Role Name**  | Enter the name of the user or role who will have access to the model.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

7\. When finished, click \*\*OK\*\* to save your changes and close the dialog box, or click \*\*Cancel\*\* to discard your changes and close the dialog box.

This is an example of the Publish Model dialog box.

![Publish Model dialog box](/files/euZR0JFeeFYKxRHG4oqJ)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/advanced-topics-pentaho-data-integration-overview/work-with-the-streamlined-data-refinery/use-the-streamlined-data-refinery/building-blocks-for-the-sdr/using-the-publish-model-job-entry-for-sdr/use-the-publish-model-job-entry.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
