Custom field that displays the value of another Field

TStark
Kilo Sage

Is it possible to create a new field on a table that automatically displays the value of an existing field from another table?

For example. I want to create a field on the Demand table that will automatically display the value of a field (u_level_team) from the Stakeholder Register table (dmn_stakeholder_register).


Thanks,
AJ

4 REPLIES 4

Abbas_5
Tera Sage
Tera Sage

Hello @TStark,

Please refer to this link:
https://www.servicenow.com/community/developer-forum/set-a-field-value-of-a-field-same-as-another-fi...

 

If it is helpful, please mark it as helpful.

Thanks & Regards,

Abbas

 

Hi @Abbas_5 . That example is using records/data on the same table, Incident. I'm trying to reference data from different tables Demand and Stakeholder Register.

Thanks,
Anthony

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @TStark ,

That can be done if there a relationship between two tables, means any link to build the logic.

1. If the link is from REF field, we can dot-walk & get values.

2. If the links is a plain string field, we have to code & get from GlideAjaz from Script include or through display BR


please mark as Accepted solution & helpful if it suffice your requirement

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Hi @Sohithanjan G. I think that may be a part of the problem. I don't think the Demand and Stakeholder Register tables are linked.

Thanks,
AJ