Skip to Content
Feb 12, 2019 at 02:44 PM

issue with EmployeeId and Account ID while creating PARTY in Opportunity BO ABSL

107 Views Last edit Feb 18, 2019 at 06:03 PM 2 rev

Dear All,

We have some logic from which we determine the party and add the same in Opportunity with below code in before save

if (Supplier.IsSet()) 
{														    SalesTeamTmpl.Clear();														SalesTeamTmpl.PartyKey.PartyID.content	= Supplier.InternalID;														SalesTeamTmpl.RoleCode	= "ZSUPP";														this.Party.Create(SalesTeamTmpl);												}

Now the issue is We have an Employee who has ID 638 and an Account which also has ID 638.

I checked that Employee's Business partner number is also 638 ( checked from Identification node of Employee BO)

However , How can I make sure that by passing 638 i would add an Account and not an employee?