cancel
Showing results for 
Search instead for 
Did you mean: 

Add additional employees to Account team in C4C SDK

former_member15983
Participant

Hi -

I have a requirement to add additional employees other than the owner of the account to be added in the Account team of the Account in SDK.

Can you please let me know how we can achieve this ?Thanks,

Prem.

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee
0 Kudos

Hi,

Please use the following code:

if (!this.EmployeeResponsibleSales.IsSet())
{
	var new1 = this.EmployeeResponsibleSales.Create();
	new1.EmployeeID.content = "E1876";
	new1.PartyRoleCode = "211";
	new1.ValidityPeriod.EndDate = Context.GetCurrentSystemDate();
	new1.ValidityPeriod.StartDate = Context.GetCurrentSystemDate();
	new1.DefaultIndicator = true;
}

Thanks

Saurabh

former_member15983
Participant
0 Kudos

Hi Saurabh

thanks for taking the time to answer this but it doesn't seem to work. There is no action Create in EmployeeResponsibleSales

But looks like the Create action is taken away or not available. Can you check if you find this in Repository explorer. I couldn't find it in 1708.

Thanks,

Prem.

former_member226
Employee
Employee

Hi,

It should be there irrespective of version/release. FYI..I am doing this in Customer:Root-BeforeSave event.

Thanks

Saurabh

former_member15983
Participant
0 Kudos

Hi Saurabh

Can you please let me what am missing here. Am not getting the create function

Thanks,

Prem.

scrc4c.png

former_member15983
Participant
0 Kudos

It is getting so urgent today. Please help!

Answers (0)