Add custom XRef elements in the source application and create the business object mappings between the source provider and the destination provider either using the Object and Fields wizard in the Gateway user interface or in the XML description file as shown below.
For example, the Role object in the Sample provider is mapped to the Role object in Gateway and P6 providers. To create a new flexible object mapping to map the Role object in the Sample provider to the Resource object in Gateway and P6 providers, define a new XRef mapping between the Role object on the Sample (source) side and the Resource object on the Gateway (source) side using the CustomXRef element as shown below:
<CustomXRef>
<XRefDefinition>
<AppName>Sample</AppName>
<XRefObjectDefinition>
<AppObjectName>Role</AppObjectName>
<PDIObjectName>Resource</PDIObjectName>
<AppKeyFieldName>ElementId</AppKeyFieldName>
</XRefObjectDefinition>
</XRefDefinition></CustomXRef>