Sorting of portal variable in descending order using variable attribute

Saraswathi Devi
Tera Contributor

Hi ,

 

I have a Reference Variable which should show the data in descending order while filling a request form through portal.

 

I have tried the below code in the variable attribute.

1) ref_ac_order_by = number

2) ref_sequence = sys_created_on

3) ref_ac_order_by_desc = number

 

But nothing helped. Can anyone help me with this issue.

 

1 ACCEPTED SOLUTION

@Saraswathi Devi 

yes it will work not only in portal but entire instance wherever this table is being referred in reference field or glide list etc

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

View solution in original post

7 REPLIES 7

AnveshKumar M
Tera Sage
Tera Sage

Hi @Saraswathi Devi 

Which table are you referencing in that variable, does that table have a "name" field.

 

Thanks,
Anvesh

Hi @AnveshKumar M 

 

I am using Incident table as reference and I want to display the numbers in descending order.

Hello @Saraswathi Devi 

can you try this in the advance reference qualifier?

javascript:'ORDERBYDESCnumber';

Mark my answer correct if this helps you 

Thanks

 

Hi Mohith,

 

Not Worked.