- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2018 11:21 AM
Hi All,
I have transform map in which I have a script for Reference field.
If the user is X domain and Trying to Load the data for Y domain it should not accept. It should must accept the Data of X domain and transform the data to target Table.
I tried using the below code :
var DID = gs.getUser().getDomainID();
gs.log('Domain ID is ==',DID);
var Domain = current.sys_domain;
gs.log('Current Domain is',Domain):
The first log returning as Empty and the second log is not identify its saying that sys_domain is not defined or null.
Can someone please help me with this Transform map.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2018 12:15 PM
Problem is with your Log statements. You are passing in a second parader to the gs.log function by using comma, use a concatenation operator(+)
gs.log("message","source");
Change to this:
var DID = gs.getUser().getDomainID();
gs.log('Domain ID is =='+DID); // changed comma to plus
var Domain = current.sys_domain;// Current in Transform Map? Are you sure ?
gs.log('Current Domain is'+Domain); // changed comma to plus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2018 03:05 PM
While Loading the Data we will select the Import set table and the File to be loaded into that Importset table
I have a transform map which imports data from Import table to Target Table.
And I will be in that particular domain while loading the data.
We have the Domain picker where we can select the Domain we want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2018 11:35 PM
Did you find a solution to your issue? If yes, please remember to tag the correct answer and any that were helpful.