Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Transform Map Script to query the sys_user table and pull a seperate feild

jacobpeterson
Mega Expert

Hello all,

I'm am trying to create a transform map script that pulls in an Employee number, query's the sys_user table for that Employee Number, and returns the users Full Name.

Below is my current code:

find_real_file.png

1 ACCEPTED SOLUTION

Dubz
Mega Sage

Hi Jacob,



If you make the target field a reference field to the user table you can just map directly to that field and set the referenced value field u_employee_id. That should match to the correct record in the user table and return the display value.


View solution in original post

2 REPLIES 2

Dubz
Mega Sage

Hi Jacob,



If you make the target field a reference field to the user table you can just map directly to that field and set the referenced value field u_employee_id. That should match to the correct record in the user table and return the display value.


Kalaiarasan Pus
Giga Sage
  • Remove return statement.
  • Replace while with 'if'
  • Replace answer = gr.name;