We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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

Issue resolved? → Mark as Correct


Found value? → Mark as Helpful