I am working on the creation of an email change template, with this fourmula but …

Total Cards: << SUM (SELECT (DETAIL NOTE [CTD], [ARTICLE ID] = << [NOM EXGDE] >>)) >>

in this formula I want to obtain the sum of [CTD] in the table “NOTE DETAIL”, when the field “ARTICLE ID” is equal to the value of << [NOM EXGDE] >>, but the email is not generated and says that there is an error in the formula

Can the substitution of [NOM EXGDE] be done? Or it’s just a syntax error …

“Number of opened and closed parentheses does not match”

Can you help me?