In this page:
By default, I2I adds Environment name in sentBy field in the header of the extract file like this:
<sentBy>http://www.eagleinvsys.com/QA15R2LN</sentBy>
But if for some reason this behavior does not suit you, the Environment name displayed can be either changed or removed from extract completely.
sentBy is extracted by default only for I2I. If you are extracting data not using I2I, this element is not extracted by default and you should use UseSentBy=Y in the RTR
UseSentBy Parameter
Enabled by default for I2I
When set to N, it disables the logic which adds Environment name in sentBy field in the header of the extract file
Valid values: Y(default) or N
<taskParameter> <name>UseSentBy</name> <dataType>S</dataType> <value>N</value> </taskParameter>
HubSentBy Parameter
HubSentBy determines the custom Environment name after the http://www.eagleinvsys.com/ prefix for a specific extract.
HubSentBy requires UseSentBy set to Y
For example,
<taskParameter> <name>HubSentBy</name> <dataType>S</dataType> <value>MYENVVALUE</value> </taskParameter>
constructs the following sentBy element in extract:
<sentBy>http://www.eagleinvsys.com/MYENVVALUE</sentBy>
If you want to use this value for all extracts in this environment, you can use its global variant in the w_config_custom.inc file:
<COL TAG="EnvironmentName" EXPRESSION="'MYENVVALUE'"/>
Use Cases
Retrieve the data from the DB
Enable the UseSentBy parameter with a value of Y
<taskParameter> <name>UseSentBy</name> <dataType>S</dataType> <value>Y</value> </taskParameter>
Specify the value to be returned (Pass through)
Enable the UseSentBy parameter with a value of Y
Send the desired value in the HubSentBy parameter
<taskParameter> <name>HubSentBy</name> <dataType>S</dataType> <value>MYVALUE</value> </taskParameter> <taskParameter> <name>UseSentBy</name> <dataType>S</dataType> <value>Y</value> </taskParameter>
Specify a value in the w_config_custom.inc as the EnvironmentName variable
Modify the w_config_custom.inc setting the EnvironmentName with a defined value
Enable the UseSentBy parameter with a value of Y
<taskParameter> <name>UseSentBy</name> <dataType>S</dataType> <value>Y</value> </taskParameter>
Once applied, Option 1 will no longer be available as the EnvironmentName specified will always be returned
Sample:
<COL TAG="EnvironmentName" EXPRESSION="'MYENVVALUE Test from w_config_custom.inc'"/> in RTR, UseSentBy = Y
Once executed appearing in the output
<sentBy>http://www.eagleinvsys.com/MYENVVALUE Test from w_config_custom.inc</sentBy>