09-08-2020, 06:37 AM
Hi,
We are trying to define a Business Mapping that would automatically fill some of the fields on a new record when creating a new record from a related one (i.e. Asset -> Support Ticket; Sales Order -> Purchase Order).
This works fine with Text type fields, however, we cannot make this work for Relation type fields on the creating record.
What would be the proper way to do this to make it work?
Example: we need the Mapping to fill the "Asset" field (cf_713) in the Support Ticket record with the Asset name when creating Support Ticket from Asset. "Asset" field (cf_713) is relation type. Map name is Assets2HelpDesk.
<map>
<originmodule>
<originid>40</originid>
<originname>Assets</originname>
</originmodule>
<targetmodule>
<targetid>13</targetid>
<targetname>HelpDesk</targetname>
</targetmodule>
<fields>
<field>
<fieldname>cf_713</fieldname>
<Orgfields>
<Orgfield>
<OrgfieldName>assetname</OrgfieldName>
<OrgfieldID>FIELD</OrgfieldID>
</Orgfield>
</Orgfields>
</field>
</fields>
</map>
Many thanks.
We are trying to define a Business Mapping that would automatically fill some of the fields on a new record when creating a new record from a related one (i.e. Asset -> Support Ticket; Sales Order -> Purchase Order).
This works fine with Text type fields, however, we cannot make this work for Relation type fields on the creating record.
What would be the proper way to do this to make it work?
Example: we need the Mapping to fill the "Asset" field (cf_713) in the Support Ticket record with the Asset name when creating Support Ticket from Asset. "Asset" field (cf_713) is relation type. Map name is Assets2HelpDesk.
<map>
<originmodule>
<originid>40</originid>
<originname>Assets</originname>
</originmodule>
<targetmodule>
<targetid>13</targetid>
<targetname>HelpDesk</targetname>
</targetmodule>
<fields>
<field>
<fieldname>cf_713</fieldname>
<Orgfields>
<Orgfield>
<OrgfieldName>assetname</OrgfieldName>
<OrgfieldID>FIELD</OrgfieldID>
</Orgfield>
</Orgfields>
</field>
</fields>
</map>
Many thanks.