Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Look up select box reference qualifier not sorting by sequence

Debasis Pati
Tera Guru

I have a look up select box variable on my record producer called subcategory which is depend on another variable category.

Now i have created a look up select box variable and used the referecnce qualifier below still its sorting alphabetically not by sequence field on sys_choice table.

DebasisPati_0-1750386134450.png



@Ankur Bawiskar  Can you please guide what can be done to achieve this?

Regards,
Debasis

11 REPLIES 11

@Debasis Pati Remove the variable attributes. It's not required.

Done it still its sequencing alphabetically only

@Debasis Pati 

did you try with only order by and not making subcategory dependent on category?

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

Hey Ankur,

I have removed the dependent value and tried just the order by but still same it's not sorting according to sequence

DebasisPati_0-1750393556919.png

 



@Debasis Pati 

It did work for me

javascript: 'ORDERBYsequence^element=category^name=incident';

Variable Config:

AnkurBawiskar_2-1750398750893.png

 

Choices: 

AnkurBawiskar_1-1750398714319.png

 

Output:

 

AnkurBawiskar_0-1750398690959.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