This page is for admins who make Buttons.

Many countries have a public business registry. It shows the details of a company, for example its address, its
company form and its business line. In this guide, you make a Link button that opens the page of the organization in
the Finnish registry YTJ. The URL uses the business ID of the organization.

You need an organization field that contains the business ID, for example a custom field **Y-tunnus**.

## Get a sample URL

1. Open the YTJ search at [tietopalvelu.ytj.fi](https://tietopalvelu.ytj.fi/).
2. Search for a company and open its page.
3. Copy the URL from the address bar of the browser.

The URL looks like this:

```
https://tietopalvelu.ytj.fi/yritys/1863026-2
```

The end of the URL, `1863026-2`, is the business ID. The Link button puts the business ID of the organization in its
place.

## Make the Link button

1. Open a deal or an organization in Pipedrive.
2. Make a Link button and type the **Button text**, for example `Show in business registry`. See
   [Make a Link button](/docs/buttons/link-button#make-a-link-button).
3. Click **Dynamic URL** in the menu.
4. Paste the sample URL into the first text element.
5. Delete the business ID at the end of the text. The text is now `https://tietopalvelu.ytj.fi/yritys/`.
6. Put the pointer on the text element and click **Add dynamic field**. A field element shows at the right of it.
7. Click the **Organization** tab of the field picker.
8. Type the name of your business ID field in **Search by name or key**, and click the field.
9. Click **Save**.

![The Dynamic URL section of the Link button Show in business registry: the text element with the YTJ URL and the organization field Y-tunnus](https://res.cloudinary.com/zimple/image/upload/f_auto,q_auto/oneclick-docs/using-oneclick-with/business-registry/show-an-organization-in-the-business-registry/dynamic-url.png)

For the URL toolbox and the field picker, see [Dynamic URL](/docs/buttons/link-button#dynamic-url).

## Show the Button only where it applies

The URL uses a field of the organization. On an organization, OneClick reads the field of that organization. On a
deal, it reads the field of the organization of the deal. On a person, the URL has no value. See
[Fields and the record of the click](/docs/buttons/link-button#fields-and-the-record-of-the-click).

1. Turn on the switch of **Limit Visibility** and click **Limit Visibility**.
2. In **Show only in scopes**, select organization. To show the Button on deals too, also select deal.
3. Click **Save**.

![The Limit Visibility section of the Link button Show in business registry with the scopes organization and deal](https://res.cloudinary.com/zimple/image/upload/f_auto,q_auto/oneclick-docs/using-oneclick-with/business-registry/show-an-organization-in-the-business-registry/limit-visibility.png)

See [Limit visibility](/docs/buttons/limit-visibility).

## Test the Button

1. Open an organization that has a value in the business ID field.
2. Click the Button in the OneClick Panel. The YTJ page of the organization opens.

![The OneClick Panel of the organization Acme Robotics Ltd with the Button Show in business registry](https://res.cloudinary.com/zimple/image/upload/f_auto,q_auto/oneclick-docs/using-oneclick-with/business-registry/show-an-organization-in-the-business-registry/panel-on-organization.png)

If the business ID field is empty, OneClick does not open the URL. The Panel shows an error in place of the Button.

To use the registry of a different country, copy a sample URL from that registry. Then replace the part that
identifies the company with a field element.
