Set a catalog item's variable field into the sc_req_item record

Adam Hutton
Tera Contributor

Hi All,
This seems pretty simple, but I've been getting a run around in the documentation...

I have a catalog variable set called short description that has one variable, short description.

I want to make this variable become the sc_req_item's short description after it's submitted. I've tried using a current.short_description to pull the record, but I'm getting error messages saying that this shouldn't be done in catalog client scripts. (or any client scripts).

Thanks in advance!
-Adam

7 REPLIES 7

abhijats
Tera Expert

Thanks Jacebenson, Now the 'Requested for' field is capturing the value user provide in catalog variable. But here a new issue arises, We have Two step checkout activated so in the next step screen there is also a field 'requested for' on UI Page which is providing logged on user name. This will be confusing to end user how can I make that field in sync with variable value and the Request field's value.


abhijats
Tera Expert

Thank you very much, This was exactly I needed.


Adam Hutton
Tera Contributor

Thanks for the replies! The way I ended up fixing this was to create a Business Rule against the sc_req_item table. Whenever there's a catalog item with a short description variable, it will copy it. Then I created a Variable Set that works and added that to the catalog items that I needed this to work on.

Thanks!