Developer forum

Forum » Integration » Notification e-mail template example for integration activities

Notification e-mail template example for integration activities

Davy Capiau
Reply

Hi,

DW10

I'm making an e-mail template for my integration activities failure notifications. Does anyone have an example with output that refers to the specific activity (id)?


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Davy,
you can get the activity name using the tag Ecom:DataIntegration.Activity.Name.
The template cshtml content can be like that:

Activity @GetString("Ecom:DataIntegration.Activity.Name") was executed

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:DataIntegration.Activity.IsFailed"))) {
with error.    
}else{
successfully.    
}
<br />
Activity log information:<br/>
@GetString("Ecom:DataIntegration.Activity.Log")
 
BR, Dmitrij
Votes for this answer: 1
 
Davy Capiau
Reply

Fyi in the DW9 default deploys there are some templates you can use too: /Files/Templates/DataIntegration/Notifications 

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Yes, it will be added to the Swift templates soon, meanwhile you can put the attached template into the folder "/Files/Templates/DataIntegration/Notifications" to be able to use it 

 

You must be logged in to post in the forum