Page 1 of 1

referencing request element during send

Posted: Mon Aug 10, 2020 12:13 pm
by RussellP635

Hi

I am using a database service to create a row in the back end database.
I have created a before send mapping component, and am familar with its use.
The database collection is called "Product".
I have a field "ProductDiscount" in the before send element that I want to calculate using some custom javascript.

Do I have to reference the field name, and if so, how do I reference it? Or can I simply return a value from the javascript?

Thanks

Russell


Re: referencing request element during send

Posted: Wed Aug 12, 2020 10:05 am
by Oleg Solodiuk

Hello Russell,

You need to use reference, it will be better to map some element in order to mapping works itself, and then please use JS in the mapping to send a custom value.