The CreatorCon Call for Content is officially open! Get started here.

how to delete the field in the table

chunn
Tera Expert

can you help me? how to delete the field in the table?

chunn_0-1697778675946.png

 There is no X symbol in front of this field but Delete in the upper right corner of the dictionary screen

chunn_1-1697778991028.png

 

1 ACCEPTED SOLUTION

Hello @chunn ,

 

Please open background script and use this -

var gr = new GlideRecord('sys_dictionary');
gr.addQuery('sys_id','726fbfac1b0e3550155a1f0b234bcbb0');
gr.query();
if(gr.next()){
    gr.setWorkflow(false);
    gr.deleteRecord();
}

 

Please mark my answer as helpful and solution accepted.
Thanks

View solution in original post

10 REPLIES 10

@Harsh_Deep  is that?

there is no delete button?

chunn_0-1697780071549.png

 

Hello @chunn 

 

Click on the copy sys_id and provide me that sys_id and I will provide you code to delete this using background script.

 

Please mark my answer as helpful and solution accepted.
Thanks

726fbfac1b0e3550155a1f0b234bcbb0

thank you 

Hello @chunn ,

 

Please open background script and use this -

var gr = new GlideRecord('sys_dictionary');
gr.addQuery('sys_id','726fbfac1b0e3550155a1f0b234bcbb0');
gr.query();
if(gr.next()){
    gr.setWorkflow(false);
    gr.deleteRecord();
}

 

Please mark my answer as helpful and solution accepted.
Thanks

Is this an oob field?