PromotionPushRemoteActionExtension Class
This Apex class provides programmatic access to the TPM Push Promotion Process Remote Actions.
cgcloud
The following are the three global static methods for PromotionPushRemoteActionExtension.
- readLOExtChildPromotions
- pushBOPromotion
- synchronizeBOPromotion
Reads the list of child promotions available for a parent promotion.
API Version: 65.0 and later
Signature
Signature Parameters
txId: Enter the GUID of the transaction that is used to log and track the status of promotions that were pushed. It is also used to find status details in push related to the Batch Run Status record and the Promotion Push Status record.readParams: A JSON snippet that contains the parent promotion ID within the parentId property.
Triggers the push process for the parent promotion ID provided as an input. Trigger error is thrown as an exception.
API Version: 65.0 and later
Signature
Signature Parameters
txId: Enter the GUID of the transaction that is used to log and track the status of promotions that were pushed. It is also used to find status details in push related to the Batch Run Status record and the Promotion Push Status record.readParams: A JSON snippet that contains the parent promotion ID within the parentId property.
Synchronizes and triggers the push process for the parent promotion ID provided as an input. The method returns true only if the push is triggered successfully. The method returns false in case of a push trigger error. For example, when the scheduling threshold limit is reached or if push is already in progress. The push trigger error is sent as a notification to the user who is calling the method.
API Version: 65.0 and later
Signature
Signature Parameters
-
txId: Enter the GUID of the transaction that is used to log and track the status of promotions that were pushed. It is also used to find status details in push related to the Batch Run Status record and the Promotion Push Status record. -
readParams: A JSON snippet that contains the parent promotion ID within the parentId property. -
Best Practices for PromotionPushRemoteActionExtension
This topic focuses on different types of Apex implementations to push multiple parent promotions.