Skip to Content

Customer marketing permission are read only in SDK

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 24, 2017 at 06:08 PM

    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

    Add comment
    10|10000 characters needed 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.