> For the complete documentation index, see [llms.txt](https://docs.upsmith.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.upsmith.app/atlassian-cloud/salesforce-for-confluence/user-guide/salesforce-object-macro.md).

# Salesforce Object Macro

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

Copy the entire link.

<figure><img src="/files/utlj5ncWAfKMBAnos5ar" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/BtSLMqJSstgOHyFchXfr" alt=""><figcaption></figcaption></figure>

You can edit the macro to display more fields.

<figure><img src="/files/R2OLPZhkVQHmw6UFp817" 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="/files/WsG5Lrge9wcaxrxqSFU1" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iPS8t9Q6zqblVOeXoX3v" alt=""><figcaption></figcaption></figure>

Alternatively, you can also insert the macro manually.

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

Select **Salesforce Object.**

<figure><img src="/files/6rOWbsbWUxxleaM4grMN" 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="/files/SvDFdkjVKy3LP6UJJxf8" 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="/files/U5fHBUgskWJMCJOekvZm" 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](/atlassian-cloud/salesforce-for-confluence/user-guide/template-variables.md)
