Update variable value using SetValue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2017 12:41 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2017 10:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2017 11:00 PM
Ok.
Hit Like/Helpful as when felt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2017 09:09 AM
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