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.

How do Reference Qualifier on variable work on Target Record once the Record Producer?

Swathi P
Tera Guru

Hello Team,

 

I have reference qualifier available on Record Producer . I want it work on Target Record if the user wants to edit the variable from Target Record How can i achieve this 

13 REPLIES 13

@Swathi P 

what type of variable is this? share screenshots

is it working during form submission? If yes then it should work fine in backend as well

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

thomasender34
Giga Contributor

You can apply the same reference qualifier logic on the target record by replicating the condition in the variable’s dictionary entry. Instead of keeping the qualifier only on the Record Producer, move or script it (using Advanced Reference Qualifier or onChange/onLoad client script) at the catalog item or variable level. This ensures the filter logic runs even when editing the variable from the target record.

Ankur Bawiskar
Tera Patron
Tera Patron

@Swathi P 

it worked for me in RITM backend form so it should work fine for Record producer as well

Ref qualifier on Portal

AnkurBawiskar_0-1762426524799.png

 

After submitting I selected another Location and it showed Users from that location so it correctly applied filter

 

AnkurBawiskar_1-1762426524826.png

 

AnkurBawiskar_2-1762426524822.png

 

 

Variable config

AnkurBawiskar_3-1762426524826.png

 

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Swathi P
Tera Guru

Its a reference field 

I have reference qualifier on it passing the variables to the script include

@Swathi P 

is it working on catalog form? -> If not then it means your logic is incorrect

Once you fix that it will work on catalog form and also in backend form

I already informed above that reference qualifier does work on backend form as well.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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