- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2025 11:34 AM
I have a form that contains a Lookup Select Box type question. The form needs to be submitted for every room record in cmn_location table. I can select a data pill for line text questions, but not for lookup select box.
I want the select box to be set to Location Record > Name, however lookup select box doesn't seem to support record data pills. For reference, here is the question's specifications:
So the value I want is included in the lookup of the select box, but I can't find a way to select it.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2025 04:55 AM
I have an action I built (which I probably found somewhere, but I don't remember where, so I can't give credit) to update a catalog variable on a RITM. You can create this action and run it after submitting the new RITM and pass it that RITM and the value you want to set. Here are the details of that action:
This is the script from the script step:
(function execute(inputs, outputs) {
try {
var variables = inputs.requested_item.variables.getElements();
for (var i = 0; i < variables.length; i++) {
var question = variables[i].getQuestion();
if (question.getName() == inputs.variable_name) {
question.setValue(inputs.variable_value);
}
}
inputs.requested_item.update();
outputs.state = 'success';
}
catch (e) {
gs.error(e);
outputs.state = 'error';
}
})(inputs, outputs);
This is the output from the script step:
Then I set the overall state to the state from the script step.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 09:55 AM
For some strange reason, it looks like Lookup Select Boxes are not supported for this function. See https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0962980
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 10:13 AM
yes it's not supported
Lookup select box variable is read-only in flow SC core action, Submit Catalog Item Request
You can update that variable, check the workaround here, enhance for Lookup select box variable
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 10:43 AM
Thanks! However, the sciprt would copy vars from one RITM to another. What I need is to take values from the current iteration in for each and add them to the form. Is there a workaround specifically for that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 08:01 PM
create a flow variable and set it when you iterate and then use that to update the RITM generated by Submit Catalog Item Action
Then just before the loop ends, set the flow variable to empty again so that it gets set with the next iteration and can be reused again.
I hope I have answered your question.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader