If you wish to know who is running your integration process in SmartConnect.com.
If you’d rather watch a video explaining this, click here.
There are two possible solutions listed below using Global Variables.
Capture user email address
One way to accomplish this if you want to get the User email only:
1. Open the Integration Process > Integration > Additional Columns; Set a Name, for example, ‘ UserNameRecoder’ and Calculation as Selected Type.
2. Expand the Global Variables list and find GlobalUserID, then Drag and drop in the JavaScript Code section or type in the below code then click Save.
return this.GlobalUserID;
Go to the Target Integration Tab and map the Additional Column to the Target destination field where you wish to see the user email address. Now when you run the integration, the current user’s email address will be mapped to this field.
Prompt user for a value
Another option is to prompt user to type in a User Name value:
1. Create a new Global Variables, for example, “GBL_TEST” From Maintenance > Global Variables > Create Global Variables and Save.
2. Then open the Integration Process > Integration > Additional Columns; set a Name, for example, ‘ UserNameRecoder’ and Calculation as Selected Type.
3. Expand the Global Variables list and find GBL_TEST, then Drag and drop in the JavaScript Code section or type in the below code then click Save.
return this.GBL_TEST;
4. Go to the Target Integration Tab and map the additional columns to the to the Target destination field where you wish to see the User Name.
5. Go to the Variables Tab in the integration and click ‘Add Variable’; Add the GBL_TEST variable.
6. Check the box for ‘Select at Runtime’ and provide a value for ‘Runtime Prompt’
7. Save and run the integration. You should now be asked to provide a value for the variable.
If you have questions, please reach out to our support team at support@eonesolutions.com