cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Customer Owner using SDK

Former Member
0 Kudos

Dear, I'm trying to set the Customer Owner programmatically using the Hybris C4C SDK. The Customer BO has the EmployeeResponsibleSales association, but it is Read Only and there isn't an action to set/add an Owner for Customer. I didn't see a way to add a member to Account Team, it could solve the problem too.

Does anyone know some way to do that?

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Isaias,

you have to create a new instance for EmployeeResponsibleSales like this:

myCustomer.EmployeeResponsibleSales.Create().

Best regards,

Frank

Former Member
0 Kudos

Hi Frank.

For now the problem was solved using another solution, but I'll test it. I didn't figure out that Creat return a mutable reference for a created instance.

Best regards

Bariksanjay09
Explorer
0 Kudos

HI Frank,

Here i am facing issue like , if we use this logic , the current logged in user from other territory alos able change any of account data or owner ,how get specific account those who are assigned to that user only in cloud application studio.please replay soon it a PRD issue.

thanks:
Sanjaya barik

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Tobias, has neither has neither action nor writable element to set an Employee UUID or ID.

Best regards

Isaias Barroso

Former Member
0 Kudos

Hi,

did you checked if there is an possibility in this BO to set the ID of the responsible Employee.

This would be de normal way to assign an new Employee to an Customer in SAP Business ByDesign.

Best regards

Tobias Kuhn