Skip to main content

CampaignTemplateGet

Properties​

NameTypeDescriptionNotes
IdStringID of the campaign template[required]
NameStringName of the campaign template.[required]
DescriptionStringDescription of the campaign template.[required]
TypeCampaignType[required]
OwnerIdStringThe owner of this template, and the owner of campaigns generated from this template via a schedule. This field is automatically populated at creation time with the current user.[required][readonly]
RemediatorRefCampaignRemediatorRef[optional]
MandatoryCommentRequirementCampaignMandatoryCommentRequirement[optional]
EmailNotificationEnabledBooleanEnables email notification for this campaign[optional] [default to $false]
AutoRevokeAllowedBooleanAllows auto revoke for this campaign[optional] [default to $false]
RecommendationsEnabledBooleanEnables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future.[optional] [default to $false]
SunsetCommentsRequiredBooleanDetermines if comments on sunset date changes are required.[optional] [default to $true]
ReviewerReviewer[required]
DeadlineDurationStringThe time period during which the campaign should be completed, formatted as an ISO-8601 Duration. When this template generates a campaign, the campaign's deadline will be the current date plus this duration. For example, if generation occurred on 2020-01-01 and this field was ""P2W"" (two weeks), the resulting campaign's deadline would be 2020-01-15 (the current date plus 14 days). If it is passed as empty then deadline is not set, but this need to be set before campaign activation api by using PATCH operation[optional]
CampaignNameStringThe campaign name.[required]
CampaignDescriptionStringThe campaign description.[required]
FilterRefCampaignFilterRef[optional]
SearchBasedParamsCampaignSearchBasedParams[optional]
SourceIds[]StringA direct list of sourceIds to include in this campaign.[optional]
ScheduleSchedule[optional]
ScheduleStatusEnum [ "NOT_SCHEDULED", "SCHEDULING", "SCHEDULED", "SCHEDULE_FAILED" ]Used to determine current status of campaign template schedule[optional] [readonly]
ScheduleErrorStringDetails about scheduling error[optional] [readonly]
CreatedSystem.DateTimeCreation date of Campaign Template[required][readonly]
ModifiedSystem.DateTimeModification date of Campaign Template[required][readonly]

Examples​

  • Prepare the resource
$CampaignTemplateGet = Initialize-CampaignTemplateGet -Id 2c9079b2-70a2-66a6-a170-a277bb960008 `
-Name Manager Campaign Template `
-Description Template for the annual manager campaign. `
-Type null `
-OwnerId 2c918086676d3e0601677611dbde220f `
-RemediatorRef null `
-MandatoryCommentRequirement null `
-EmailNotificationEnabled false `
-AutoRevokeAllowed false `
-RecommendationsEnabled true `
-SunsetCommentsRequired true `
-Reviewer null `
-DeadlineDuration P2W `
-CampaignName Manager Campaign `
-CampaignDescription Everyone needs to be reviewed by their manager `
-FilterRef null `
-SearchBasedParams null `
-SourceIds ["0fbe863c063c4c88a35fd7f17e8a3df5"] `
-Schedule null `
-ScheduleStatus SCHEDULED `
-ScheduleError Failed to schedule campaign template due to invalid scheduling details `
-Created 2020-03-05T22:44:00.364Z `
-Modified 2020-03-05T22:52:09.969Z
  • Convert the resource to JSON
$CampaignTemplateGet | ConvertTo-JSON

[Back to top]