Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Datacloud Class
Namespace
Datacloud Methods
getCompaniesFromOrder(orderId, pageSize, page)
API Version
32.0
Requires Chatter
No
Signature
public static ConnectApi.DatacloudCompanies getCompaniesFromOrder(String orderId, String pageSize, String page)
Parameters
- orderId
- Type: String
- ID of an order.
- page
- Type: Integer
- Number of the page that you want returned.
- pageSize
- Type: Integer
- Number of companies to show on a page. The default pageSize is 25.
Return Value
getCompany(companyId)
API Version
32.0
Requires Chatter
No
Signature
public static ConnectApi.DatacloudCompany getCompany(String companyId)
Parameters
- companyId
- Type: String
- ID of a company in the Data.com database.
Return Value
getContact(contactId)
API Version
32.0
Requires Chatter
No
Signature
public static ConnectApi.DatacloudContact getContact(String contactId)
Parameters
- contactId
- Type: String
- ID of a contact in the Data.com database.
Return Value
getContactsFromOrder(orderId, page, pageSize)
API Version
32.0
Requires Chatter
No
Signature
public static ConnectApi.DatacloudContacts getContactsFromOrder(String orderId, String page, String pageSize)
Parameters
- orderId
- Type: String
- ID of an order.
- page
- Type: Integer
- Number of the page that you want returned.
- pageSize
- Type: Integer
- Number of contacts to show on a page. The default pageSize is 25.
Return Value
getOrder(orderId)
API Version
32.0
Requires Chatter
No
Signature
public static ConnectApi.DatacloudOrder getOrder(String orderId)
Parameters
- orderId
- Type: String
- ID of an order.
Return Value
getUsage(userId)
API Version
32.0
Requires Chatter
No
Signature
public static ConnectApi.DatacloudPurchaseUsage getUsage(String userId)
Parameters
- userId
- Type: String
- ID of a user.
Return Value
postOrder(orderInput)
API Version
32.0
Requires Chatter
No
Signature
public static ConnectApi.DatacloudOrder postOrder(ConnectApi.DatacloudOrderInput orderInput)
Parameters
- orderInput
- Type: ConnectApi.DatacloudOrderInput
- A list that contains IDs for the contacts or companies that you want to see.
Return Value
Example
1ConnectApi.DatacloudOrderInput inputOrder=new ConnectApi.DatacloudOrderInput();
2List<String> ids=new List<String>();
3ids.add('1234');
4inputOrder.companyIds=ids;
5ConnectApi.DatacloudOrder datacloudOrderRep = ConnectApi.Datacloud.postOrder(inputOrder);