Skip to Content
0

Customer marketing permission are read only in SDK

May 23, 2017 at 07:26 PM

126

avatar image

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.

screen.png (43.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Saurabh Kabra
May 24, 2017 at 06:08 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0