How to get display value of choice fields and reference fields from Sys Audit Table

AbdulRahim Shai
Tera Expert

Hello Developers,

 

Hope everyone is doing good!

 

I need help with scripting to achieve the requirement

 

We are trying to migrate Sys audit data from one instance to another so the challenge is Sys audit table stores sys_ids for reference fields and choice values for Choice fields.

So now whats happening is when we are migrating to new instances in activity field changes it showing sys_ids , and choice values which is not readable.

Screenshot:

AbdulRahimShai_0-1669824880710.png

 

AbdulRahimShai_1-1669825067673.png

 

How can I make display values appear in field changes need help in scripting.
Thanks,
AbdulRahim


2 REPLIES 2

Mohan raj
Mega Sage

Hi @AbdulRahim Shai ,

use getDisplayValue() method in transform map script 

if this answer is helpful, please mark it as helpful

Hello Mohan,

Thanks for taking interest in my query.
  getDisplayValue()  is not enough since multiple tables are involved .
I can query single table and get display value