In this page:
Table of Contents |
---|
...
Warning |
---|
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
Code Block | ||
---|---|---|
| ||
<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.
Info |
---|
HubSentBy requires UseSentBy set to Y. |
For example,
Code Block | ||
---|---|---|
| ||
<taskParameter>
<name>HubSentBy</name>
<dataType>S</dataType>
|
...
<value>MYENVVALUE</value> </taskParameter> |
constructs the following sentBy element in extract:
Code Block | ||
---|---|---|
| ||
<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:
Code Block | ||
---|---|---|
| ||
<COL TAG="EnvironmentName" EXPRESSION="'MYENVVALUE'"/> |
...
Use Cases
Retrieve the data from the DB
Enable the UseSentBy parameter with a value of Y
Code Block | ||
---|---|---|
| ||
<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
Code Block | ||
---|---|---|
| ||
<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
Code Block | ||
---|---|---|
| ||
<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
...