Set the Destination targetaddress based on the Source targetaddress (Active Directory)Created: 2022-08-31 09:38:35
Modified: 2022-08-31 09:38:35
Tags: Active Directory Custom Mapping
For an AD destination, the default mapping to set targetaddress is: targetaddress=~target~
The ~target~ is a variable which may be modified if you have configured options on the ‘SMTP Addresses’ tab. If no options are selected, ~target~ will equal the source ‘mail’ value.
In some instances, you may want to set the Destination targetaddress based on the actual Source targetaddress value.
Here are the steps to do so:
By default, targetaddress is not discovered. If you do not already have one, create a custom sourcedef file.
In the custom sourcedef, and add targetaddress to the Attribs= parameter. NOTE: Do not remove any attributes. Add ‘targetaddress’ to the list of attributes. Be sure to use the comma to separate the values. It does not have to be alphabetical. We recommend putting custom attributes right at the front of the list.
If you don’t have one already, you need to create a custom Object Map file as well.
In the Custom map file, locate the default mapping and change it to: targetaddress=^targetaddress^
The above mapping will use the source targetaddress value to set the destination targetaddress.