cancel
Showing results for 
Search instead for 
Did you mean: 

Customer marketing permission are read only in SDK

0 Kudos

Hello,

I'm trying to change the channel permission and communication type permission of a Customer, but when I try to assign the value to the field the SDK thow the message the field is read only.

A example of the code is:

import ABSL;
import AP.CRM.Global;


foreach(var dere in this.MarketingPermission.ChannelPermission)
{
	if(dere.IsSet() && dere.CommunicationMediumTypeCode == "TEL")
	{
		dere.MarketingPermissionCode = "1";
	}
}


foreach(var dere1 in this.MarketingPermission.CommunicationTypePermission)
{
	dere1.SubscribedIndicator = true;
}

The error occurs in line:

dere.MarketingPermissionCode = "1";

and

dere1.SubscribedIndicator = true;

The documentation of the fields in the repository explorer says that the fields are write enabled:

How do you update these fields in the SDK?

Thanks,

Jose.

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee
0 Kudos

Hi,

If deployment unit of your solution and BO Extended ( in this case it is CUSTOMER ) should be always same. So Can you please make sure that Deployment Unit of your Solution and Deployment Unit of Customer BO is same?

For more info please refer following blog:

https://blogs.sap.com/2015/09/10/understanding-deployment-units/

Thanks

Saurabh

0 Kudos

Hi Saurabh,

The problem is associated with the Deployment Unit, the BO Customer has the DU Foundation and the Marketing Permisson has DU CRM, in the blog Stefan explain the way to solve the problem.

Thanks

Jose.

sbslmhmt
Participant
0 Kudos

Hello jotai_l ,

I am facing same issue, I coundn't make it work solutions in the Blog. Can you explain how you fix this issue?

Best regards.

Answers (0)