Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Servicenow developer

BhupathiC
Tera Contributor

Hi all,

 

Here is my question,

 

there are two reference fields are from the same table, Sub-account field is depends on account field,

1.Account

2.Sub-account

 

I need to fetch the data into these two fields from the respective table, the sub-account field is dependent on the account field. Based on the account field data the sub-account field data should be populate. 

3 REPLIES 3

Nishant8
Tera Sage

Hello @BhupathiC, if you just want to filter sub-account based on select Account, then you can make sub-account dependent on Account. 

right click on sub-account -> configure Dictionary -> click on Advanced view link -> mention Account field.

 

Regards,

Nishant

Sandeep Rajput
Tera Patron

@BhupathiC You need to write a reference qualifier on the Sub-account field, in the reference qualifier check 'account='+current.u_account;

 

For more information please refer https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/script/server-scripting...

shubhamseth
Giga Sage

@BhupathiC 

 

Use below reference qualifier - 

 

javascript: 'parent=' + current.variables.account

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain