A cat item with a "lookup select box" variable is grayed out (read-only) from the flow action Submit

shaik riyaz1
Tera Contributor

I have a requirement to submit a catalog item using inbound email flow when any user sent an email to abc@xyz.com 

but the cat item with a "lookup select box" variable is grayed out (read-only) from the flow action Submit Catalog Item Request as it is referencing other table where choice list values are present.

 

Data pill is greyed out.

 

Is there any other way to select the choices referencing to other table in a flow ?

 

shaikriyaz1_0-1746974113809.png

 

 

1 ACCEPTED SOLUTION

Robert H
Mega Sage

Hello @shaik riyaz1 ,

 

Since it is not supported in Flow Designer, you could submit the request using a traditional Inbound Email Action. The script for submitting the request and populating the variables would need to look like this:

 

var cart = new sn_sc.CartJS();
var CATALOG_ITEM_SYS_ID = '0d08837237153000158bbfc8bcbe5d02'; // update this
var request =
{
  'sysparm_id': CATALOG_ITEM_SYS_ID,
  'sysparm_quantity': '1',
  'variables':{ // update as needed
    'carrier': 'at_and_t_mobility',
    'data_plan': '500MB',
    'duration': 'eighteen_months',
    'color': 'slate',
    'storage': 'sixtyfour'
  }
}
var cartDetails = cart.orderNow(request);
gs.info(JSON.stringify(cartDetails));

 

Result:

{
"sys_id":"7edcd988c3252e5006b1b1fdd401318d",
"number":"REQ0010021",
"request_number":"REQ0010021",
"parent_id":null,
"request_id":"7edcd988c3252e5006b1b1fdd401318d",
"parent_table":"task",
"table":"sc_request"
}

 

Documentation

 

Regards,

Robert

View solution in original post

5 REPLIES 5

AshishKM
Kilo Patron
Kilo Patron

Hi @shaik riyaz1 ,

Please share the screen shot of that page and highlight the issue.

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

J Siva
Tera Sage

Hi @shaik riyaz1 

It's the expected behaviour. The variable "lookup select box" is not supported. PFB article.

https://noderegister.service-now.com/kb?id=kb_article_view&sysparm_article=KB0962980

Screenshot_20250511-202733~2.png

As a work around try reference type variable.

Regards,

Siva

Ankur Bawiskar
Tera Patron
Tera Patron

@shaik riyaz1 

yes it's not available, Lookup select box and some other list collector variable are not supported in "Submit Catalog Item Request" flow action and it's known limitation.

As a workaround you can update it after creation of RITM

check this link on recent solution I shared on how to do that, enhance for your requirement

How to attach new created contract record number in RITM Variable 

sharing here as well

sc_item_option_mtom table stores all the variable associated with RITM, you can use lookup action in flow designer and can update the variables value in "sc_item_option"

Something like this

AnkurBawiskar_0-1746977479356.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Robert H
Mega Sage

Hello @shaik riyaz1 ,

 

Since it is not supported in Flow Designer, you could submit the request using a traditional Inbound Email Action. The script for submitting the request and populating the variables would need to look like this:

 

var cart = new sn_sc.CartJS();
var CATALOG_ITEM_SYS_ID = '0d08837237153000158bbfc8bcbe5d02'; // update this
var request =
{
  'sysparm_id': CATALOG_ITEM_SYS_ID,
  'sysparm_quantity': '1',
  'variables':{ // update as needed
    'carrier': 'at_and_t_mobility',
    'data_plan': '500MB',
    'duration': 'eighteen_months',
    'color': 'slate',
    'storage': 'sixtyfour'
  }
}
var cartDetails = cart.orderNow(request);
gs.info(JSON.stringify(cartDetails));

 

Result:

{
"sys_id":"7edcd988c3252e5006b1b1fdd401318d",
"number":"REQ0010021",
"request_number":"REQ0010021",
"parent_id":null,
"request_id":"7edcd988c3252e5006b1b1fdd401318d",
"parent_table":"task",
"table":"sc_request"
}

 

Documentation

 

Regards,

Robert