Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, If slug is "sunbird" and action is send for review, template name should be "sunbird_sendforReviewTemplate". Sample custom template configuration.

{
 "request": {
  "type": "notification",
  "action": "sendforReviewsendForReview",
  "subType": "email",

  "rootOrgId": "0123166367624478721",
  "data": {
  "templateName": "sendForReviewTemplate",
"action": "sendforReviewTemplatesendForReview",
"fields": [{
  "body": "Congratulations! The content that you had submitted A content has been accepted submitted for publication.It will be available for usage shortly. <br> <br><b> Content review.<br><br><b>Content Type: </b>{{Content type}}<br> <b>     Content Title<br><b>Title: </b>{{Content title}}<br><b>Creator: </b>{{Creator name}}<br> <b>Content Link<br><b>Link: </b>{{Content link}}<br>",
  "subject": "Congratulations, your content is live!Content has been submitted for review! Content Type: {{Content type}}, Title: {{Content title}}",
   "logo": "https://dev.open-sunbird.org/assets/images/sunbird_logo.png"
}]
  }
 }
}

Limitation:

  • Only predefined placeHolder can be dynamically replaced with content data while sending mail

...