How can I format calculation results in email notifications?

Question

Hi team, again a question for Workflow Notification Template.

I have a calculation result Element about new promotion Price. The result is: 4.2095 (a number with 4 decimal places). When I add this element to the Workflow Template, it is printed as 4.21 (with 2 decimal places only). How can I keep the original format?

Answer

You can try something like this:

$item.nPlusOneMaxNP;format = "#,###.#### €"$

Replace item.nPlusOneMaxNP with your variable.

Found an issue in documentation? Write to us.

Â