on 2019 Feb 19 3:48 PM
Hello Experts,
I want to create marketing Permission Channels for Contacts automatically when the contact is created.
for this we need to apply an external web service integration.
1- I have downloaded the WDSL File: ManageMarketingPermissionIn
2- Created a communication scenario (MarketingPermission.csd)

3- in root.node created an Event-BeforeSave.absl with the following code:
import ABSL;
var Request : Library::ETMarketingPermissionWS.MaintainBundle.Request;
var Response: Library::ETMarketingPermissionWS.MaintainBundle.Response;
var requestEntry : Library::ETMarketingPermissionWS.MaintainBundle.Request.MarketingPermissionBundleMaintainRequest_sync.MarketingPermission;
var channel : Library::ETMarketingPermissionWS.MaintainBundle.Request.MarketingPermissionBundleMaintainRequest_sync.MarketingPermission.ChannelPermission;
var customer = Customer.Retrieve(this.InternalID);
if (!this.InternalID.IsInitial())
{
requestEntry.BusinessPartnerInternalID = this.InternalID;
requestEntry.actionCode = "01";
channel.actionCode = "01";
channel.CommunicationMediumTypeCode = "FAX";
channel.MarketingPermissionCode = "3";
requestEntry.ChannelPermission.Add(channel);
Request.MarketingPermissionBundleMaintainRequest_sync.MarketingPermission.Add(requestEntry);
Response = Library::ETMarketingPermissionWS.MaintainBundle(Request, " ", "MarketingPermission");
}
But still not able to add the marketing permission to my contact...
in the debug it goes through all the code but the response is still 0.
Have I missed something here??
Request clarification before answering.
I have found the problem, the code was correct, the problem was in the Communication Scenario, I defined an Outbound service but did not define an Inbound Service (which should be: ManageMarketingPermission), now it is working well.
Thanks...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.