How to use the Value of the Money field type in Vantage scripts?

Question

How to use the Value of the Money field type in Vantage scripts?

Answer

To get the value of the Money (AmountOfMoney) field type in scripted rules the following code should be used:

var mytotal = Context.GetField("Total").Value.Amount

The reason for such behavior is that the Money field type consists of two values - Amount and CurrencySign

mceclip0.png

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.