# Salesforce Object Macro

To setup **Salesforce Object Macro**, go to your Salesforce Object page.

Copy the entire link.

<figure><img src="https://639954725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgzAhV4EMBU0KrkmJ6L0%2Fuploads%2F2Wz1ODqpAnYHZFdrWoqu%2Fsalesforce-obj-macro-1.png?alt=media&#x26;token=5d665afb-1e3e-4e68-a896-23593b63a754" alt=""><figcaption></figcaption></figure>

Paste the link in a Confluence Page. The pasted link will be converted to Salesforce Object Macro.

<figure><img src="https://639954725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgzAhV4EMBU0KrkmJ6L0%2Fuploads%2FVZUoCnhm0XteJ05QBozt%2Fsalesforce-obj-macro-2.png?alt=media&#x26;token=fbe8cfcd-1001-49bc-a9c9-cc766bf58bdb" alt=""><figcaption></figcaption></figure>

You can edit the macro to display more fields.

<figure><img src="https://639954725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgzAhV4EMBU0KrkmJ6L0%2Fuploads%2FM0zDunh3votO11AdIy2L%2Fsalesforce-obj-macro-3.png?alt=media&#x26;token=f8fa74ee-a8e9-4883-a4c3-6b512ab09967" alt=""><figcaption></figcaption></figure>

Since the **Field(s) to display** will be converted to SOQL query, you can utilize SOQL Select Functions, for instance, to format the AnnualRevenue.

<figure><img src="https://639954725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgzAhV4EMBU0KrkmJ6L0%2Fuploads%2FAvXuNKq8tjHUhDQMfnRf%2Fsalesforce-obj-macro-4.png?alt=media&#x26;token=b88a3c35-8e2a-4ca8-9040-b2863281bc29" alt=""><figcaption></figcaption></figure>

<figure><img src="https://639954725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgzAhV4EMBU0KrkmJ6L0%2Fuploads%2FTJLxoCTh2F8kuRO8rPI7%2Fsalesforce-obj-macro-5.png?alt=media&#x26;token=f8d6e49c-6d6f-4fe8-a547-48ce3cb61f21" alt=""><figcaption></figcaption></figure>

Alternatively, you can also insert the macro manually.

Type **/sales**.&#x20;

Select **Salesforce Object.**

<figure><img src="https://639954725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgzAhV4EMBU0KrkmJ6L0%2Fuploads%2FE4Zp4vf1oppBuFbjFKga%2Fsalesforce-obj-macro.png?alt=media&#x26;token=0cfc77a5-0278-4fe3-9ddc-ce89977942bd" alt=""><figcaption></figcaption></figure>

Select your desired connection and type the Object ID.

By default, Salesforce Object Link will be displayed as the Object's Name.

<figure><img src="https://639954725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgzAhV4EMBU0KrkmJ6L0%2Fuploads%2Fl3ek6jZW3l0jx6vAE7Sv%2Fsalesforce-obj-macro-6.png?alt=media&#x26;token=40bac445-ec22-46db-ba7b-d29793888e55" alt=""><figcaption></figcaption></figure>

To display more fields, select Field(s) to display. When more than one field is selected, a table will be shown instead.

<figure><img src="https://639954725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlgzAhV4EMBU0KrkmJ6L0%2Fuploads%2FJvvc55Po4PUIo8ozwAuh%2Fsalesforce-obj-macro-7.png?alt=media&#x26;token=6a7f2fb4-eebc-426f-a97e-60c5014bee56" alt=""><figcaption></figcaption></figure>

Finally, Click **Insert** to save.

### Template Variables

Salesforce Object Macro enables you to use Object ID as template variable. To learn more, go to [template-variables](https://docs.upsmith.app/atlassian-cloud/salesforce-for-confluence/user-guide/template-variables "mention")
