Update variable value using SetValue

Eli Guttman
Tera Guru

Hi,

i'm trying to update requested item variables using script. i tried to do it using the setValue function

Seems like this option work

req.variables.first_name = 'MY NAME';

but this option does not work:

req.setValue('variables.first_name ','MY NAME);

req.update();

Anyone know the reason or how i should use the setValue function for variables?

12 REPLIES 12

Hi,



thank you all for the information!



since i have to make it dynamic, i decided to make the update directly on the "sc_item_option" which hold the variable actual.



using the "sc_item_option_mtom" i find the relevant variable record that match the specific requested item, then make the update directly.



thank ou


Ok.



Hit Like/Helpful as when felt


Good.



Please mark your answer as correct so it is removed from the unanswered questions list.


Also, mark as helpful anything else that you found helpful...



harel