Choices of one filed to use in other filed on custom table

Mahesh033
Tera Contributor

Hi All,

 

We have a field on table sys_cs_conversation " Device Type" type is string and we have choices in it, those are in sys_choice table, can we use the same choices on the other field of custom table, Please help.

11 REPLIES 11

Namrata Ghorpad
Mega Sage
Mega Sage

Hi @Mahesh033 ,

Yes you can use the same choices on other field of custom table. 

When you are editing the new choice field on the new table, there are options to use choices from another table. If a choice is added, changed, or removed from the choice list, it will show on the field that is sharing the choices as well.

Please refer the below links and follow the steps.

https://www.servicenow.com/community/developer-forum/copying-a-field-with-choices-from-one-table-to-... 

https://www.servicenow.com/community/developer-forum/can-i-reference-a-choice-list-on-a-different-ta... 

 

Please mark my answer as helpful and correct if it helps you.

Regards,

Namrata

Hi @Namrata Ghorpad 

Thank you i have tried this earlier but not able to find the table which has field and choices in it , in choice table column. 

Riya Verma
Kilo Sage
Kilo Sage

Hi @Mahesh033 ,

Hope you are doing great.

 

yes, you can copy the choice field option from one table's firld to other custom table.

 

You can open dictionary on your new custom table where you want to use same list of Base Options (inherit from sys_cs_conversation --> device type field ).

RiyaVerma_0-1687862091133.png

 

 

in above screenshot , in choice table you can specify table --> "sys_cs_conversation ", and in choice field you can specify "device type " to inherit the same choices in new custom table.

 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

Hi @Riya Verma 

Mahesh033_0-1687863766310.png

i am not able to see the table