Newer Version Available
TPM_ParticipatingCustomers Class
This APEX class provides programmatic access to the TPM Promotion Participating
Customers List used in the Promotion Push process.
Namespace
1cgcloudTPM_ParticipatingCustomers Methods
The following are methods for TPM_ParticipatingCustomers.
global Object toGenericObject
Serializes the information of the participating customers to a generic Object instance.
Useful for using the information in Remote calls.
API Version
55
Signature
global Object toGenericObject()
global ParticipatingCustomer addParticipatingCustomer
Adds a new Participating Customer to the instance. The input parameters are the external
id of the Account records and a boolean parameter to determine if the participating customer is
included or excluded.
API Version
55
Signature
global ParticipatingCustomer addParticipatingCustomer(String externalid, Boolean included)
global List<ParticipatingCustomer> getParticipatingCustomers
Adds a new Participating Customer to the instance. The input parameters are the external
id of the Account records and a boolean parameter to determine if the participating customer is
included or excluded.
API Version
55
Signature
global List<ParticipatingCustomer> getParticipatingCustomers()
global void removeParticipatingCustomer
Removes the passed in participating customer from the instance. If the participating
customers is not contained in the instance, nothing is removed.
API Version
55
Signature
global void removeParticipatingCustomer(ParticipatingCustomer sa)
global String toJSON
Serializes the information of the participating customers information for
storage.
API Version
55
Signature
global String toJSON()
global TPM_ParticipatingCustomers
Creates an empty structure with no participating customers.
API Version
55
Signature
global TPM_ParticipatingCustomers()
global TPM_ParticipatingCustomers load
Deserializes the information of the participating customers from the input generic
object. The current instance will be cleared and the participating customers represented by the
input will be loaded.
API Version
55
Signature
global TPM_ParticipatingCustomers load(Object data)
global TPM_ParticipatingCustomers load
Deserializes the information of the participating customers from the input payload. The
current instance will be cleared and the participating customers represented by the payload will
be loaded.
API Version
55
Signature
global TPM_ParticipatingCustomers load(String payload)