You might need to establish a connection between two data entities that aren't visible in the Process Designer.This could be due to the technical configurations in Microsoft Dynamics 365 F&O or the absence of a logical link between the entities. In such cases, you can use Microsoft Dynamics 365 F&O code to establish a connection between the entities and make it visible in the Process Designer.
The following code snippet provides an example linking two entities using Microsoft Dynamics 365 F&O code so they show up in Process Designer.
[ExtensionOf(classStr(XplRequestMetadata))]
internal final class nnnRequestMetadata_Extension
public void additionalRelations(XplEntityName _entity)
{
switch (_entity)
{
case 'BomBillOfMaterialsVersionEntity':
this.writeReference('CustCustomerEntity', 'BomCustomer', ['BomId:AccountNum']);
break;
case 'CustCustomerEntity':
this.writeComposition('BomBillOfMaterialsVersionEntity', 'BomCustomer', ['AccountNum:BomId']);
break;
}
next additionalRelations(_entity);
}
}