Customers sometimes would like an adapter property changed dynamically prior to making a call to the external system. In the past, there was no easy way to do this. Now through the iapMetadata
object, most properties can be changed on a call-by call-basis.
Changing Adapter Properties
If you want to dynamically change the adapter's properties for a specific call made by the adapter and the method you are calling has an iapMetadata
object parameter, you can now add the adapter properties.
Given this object ...
{
"callProperties": {
<prop1_name>: <value1>,
<prop2_group>: {
<prop2_name>: <value2>
}
}
}
An example would be:
{
"callProperties": {
"host": "10.10.10.10",
"stub": true,
"request": {
"limit_retry_error": [500]
}
}
}
It is important to note that the properties within the callProperties
object are a match to the properties in the Adapter Service Instance Configuration in Admin Essentials.
The iapMetadata
object is one that you can build using the Platform workflow capabilities such as query
, merge
, etc.
If there is no iapMetadata
object on the method (this will be true for older adapter methods) you can request that this object be added to the methods in the adapter. Be mindful, however, this will require that new methods be created so that Itential does not break the existing methods.