Please suggest proper indentation for this email notification

sariksorte
Tera Contributor

I am attaching the email script I written and email notification as well.

sariksorte_0-1742461102700.png

code I use for namespace:

  var mrvs = current.variables.application_namespace_configuration; // MRVS Internal name
    var rowCount = mrvs.getRowCount();
    if (rowCount >= 1) {

        for (var i = 0; i < rowCount; i++) {
            var row = mrvs.getRow(i);
            template.print("<br/><tr/>Namespace: " + row.namespace);
            template.print("<br/>Env: " + row.environment);
            template.print("<br/>Primary Site: " + row.primary_site);
            template.print("<br/>Secondary Site: " + row.secondary_site);
            template.print("<br/>No. of CPU: " + row.of_cpus);
            template.print("<br/>Memory(GB): " + row.memory_gb);
            template.print("<br/>");


        }

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@sariksorte 

you will face this challenge as you are printing the top content directly in email body and the MRVS via email script.

Why not merge both?

in single email script print the top content and the MRVS as well so that it gets aligned well

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@sariksorte 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@sariksorte 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

sariksorte
Tera Contributor

I am yet to implement anything will work on it and update my results here soon