Newer Version Available
Datacloud Class
Purchase Data.com contact or company records, and retrieve purchase information.
Namespace
Datacloud Methods
These methods are for Datacloud. All methods are
static.
getCompaniesFromOrder(orderId, pageSize, page)
Get a list of purchased company records for an order.
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)
Get a company record.
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)
Get a contact.
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)
Get a list of purchased contacts for an order.
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)
Get an order.
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)
Get purchase usage information for a user.
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)
Purchase records that are listed in an input file.
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);