Developer forum

Forum » Integration » Template for index fail

Template for index fail

Davy Capiau
Reply

Hi,

There is no default error template for index failure - also not in the demo store. Anyone an idea where I can find one?

 


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
This post has been marked as an answer

I have some old ones but I believe those only work with older frontend templates. You can easily create one yourself though. Just create a new cshtml file (or use another notification template as a starting point). In the template you have access to values like:

GetString("Build.Name")
GetBoolean("Build.Failed")
GetString("Build.Status.EndTime")
GetString("Build.Status.Runtime")
GetString("Build.Status.Count")
GetString("Build.Status.TotalCount")
GetString("Build.Status.LogInformation")
GetString("Build.Status.FailReason")
GetString("Build.Status.FailException")
GetString("Build.Status.FailExceptionStackTrace")
GetLoop("Build.Status.Meta") (a loop with items that have GetString("Name") and GetString("Value"))

Note: these come from a 9 template, so make sure they still exist in 10. A quick way to find out is to use GetTemplateTags() in the template and then trigger an exception so you get all available tags and their values in the email.

 

Votes for this answer: 1
 
Davy Capiau
Reply

Thanks Imar!

 

You must be logged in to post in the forum