> 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)


---

# 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.upsmith.app/atlassian-cloud/salesforce-for-confluence/user-guide/salesforce-object-macro.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.
