- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2017 07:14 AM
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:
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2017 07:21 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2017 07:21 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2017 07:23 AM
- Remove return statement.
- Replace while with 'if'
- Replace answer = gr.name;