RussellP635
Posts: 4
Joined: Mon Aug 10, 2020 12:06 pm

referencing request element during send

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

Oleg Solodiuk
Posts: 36
Joined: Fri Jan 10, 2020 6:49 am

Re: referencing request element during send

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.

Return to “Issues”