Skip to content

SocialCampaignSavingNotification

Published before a campaign is added or changed. A handler can change the campaign or refuse the save.

The following properties are available within the notification

Property Name Type Use
Target SocialCampaign The campaign as it is about to be saved: Key, Name, Value.
Existing SocialCampaign? The stored campaign on an update; null when the campaign is being added. Changes to it are ignored.
Messages EventMessages Add the message to show when you cancel.
Cancel bool Set to true to cancel without a message.

Name and Value. A blank Value is made from the name. Changes to any other property are ignored.

Call CancelOperation(new EventMessage(category, message, EventMessageType.Error)). Nothing is saved, and the result is campaign.cancelled:<message>.

  • UmbSocial’s checks run after the handlers, on what they leave: a name of 1 to 100 characters that no other campaign has (any case), and a value of lower-case letters, digits and . _ ~ - that no other campaign has.