Skip to Content
0

Add additional employees to Account team in C4C SDK

Jul 10, 2017 at 09:38 PM

122

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Saurabh Kabra
Jul 17, 2017 at 06:14 AM
0

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0

Hi,

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

Thanks

Saurabh

root.png (41.0 kB)
1
Former Member
Saurabh Kabra

Hi Saurabh

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

Thanks,

Prem.

scrc4c.png

scrc4c.png (248.8 kB)
0
Former Member
Former Member

It is getting so urgent today. Please help!

0