Loading
The Trailblazer Community is now read-only Read More
Media Cloud
Configure Release Notifications

Configure Release Notifications

Configure scheduled Apex jobs to create alerts for inventory slots nearing their expiration and to get notifications after those slots are automatically released.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, and Unlimited editions with Media Cloud- Growth or Media Cloud- Advanced

Here's an example of the Apex job that you can use to configure notifications on the slots that are set to expire:

// Create the action
Invocable.Action action = Invocable.Action.createStandardAction('sendInvSlotReleaseWarningNotfy');
action.setInvocationParameter('validityRangeStartDateTime', '2025-08-03T23:59:59.000Z');
action.setInvocationParameter('validityRangeEndDateTime','2025-10-03T23:59:59.000Z');
action.setInvocationParameter('currentAllocationStatus', 'On Hold');

// Invoke the action
List<Invocable.Action.Result> results = action.invoke();

// Optionally, handle results or errors
for (Invocable.Action.Result result : results) {
     if (!result.isSuccess()) {
          System.debug('Failed to send warning notif: ' + result.getErrors());
            }
}
 
Loading
Salesforce Help | Article