{salesforce-entity}
Displays a list of SalesForce.com entities in a table format, the set of data that is obtained can be restricted by specifying a set of conditions.
Description
Displays a list of SalesForce.com entities in a table format, the set of data that is obtained can be restricted by specifying a set of conditions (please visit SalesForce.com Confluence Query Conditions for more details on the conditions available).
Usage
{salesforce-entity:<sObjectName>|<conditions>|fields=[fields you want to list]}
<sObjectName> is the SalesForce.com object type, please refer to the [SalesForce Standard Object API|http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_list.htm] for more details on what the available options are.
<conditions> is an optional series of conditions separated by "|",
the list of result accounts will be restricted to those that match these conditions.
Example:
{salesforce-entity:Account|Name=GenePoint}
Will only return accounts with the name "GenePoint"
Confluence 4+ Editor

Parameters
| Name | Required | Default | Description |
|---|---|---|---|
| default | | N/A
| The SalesForce.com object type, please refer to the SalesForce Standard Object API for more details on what the available options are. |
| fields | | N/A
| an optional parameter that allows you to specify which fields to include in the table as a comma separated list, if this parameter is not specified, by default, it will display all of the available fields for the given SalesForce.com Entity |
| <conditions> | | N/A
| Please see the Usage guide above for examples on how to use conditions, please refer to the SalesForce Standard Object API for more details on what fields are available. Please visit SalesForce.com Confluence Query Conditions for more details on this. |
Examples
Lets say you have a Case in SalesForce.com which contains a set of information (Figure 1).
Figure 1.
You can use the following macro:
{salesforce-entity:Case|CaseNumber=00001024|fields=CaseNumber,Subject,Reason,Type,Status,Priority,Origin}
To display a subset of the details (including: CaseNumber, Subject, Reason, Type, Status, Priority and Origin as specified in the macro) within a Confluence page in a table (Figure 2.)
Figure 2.
You can also click each of the rows in the table to open up the actual Case within SalesForce.com (opens in a new window/tab)