Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Custom Plugin to add members to marketing list

$
0
0

I have created a plugin that will read a list of contacts from a csv file and add them to a marketing list.  Everything works fine until the actual Add code is executed.

I am calling the add like this:

// Create the request object.
AddMemberListRequest addMember = new AddMemberListRequest();

// Set the properties of the request object.
addMember.EntityId = entityId;
addMember.ListId = listId;

// Execute the request.
AddMemberListResponse addedMember = (AddMemberListResponse)service.Execute(addMember);

The error I am getting is the following:

Error in AddMemberList plugin, ExecuteWithRetry for SendAPIRequest exceeded the maximum number of retriesMessage:ExecuteWithRetry for SendAPIRequest exceeded the maximum number of retriesStack: at ClickDimensions.Crm.MsCrm2011Plugins.Common.ExecuteWithRetry[T](Func`1 action)
at ClickDimensions.Crm.MsCrm2011Plugins.AddMemberListPlugin.PostRecipients(IOrganizationService service, ITracingService tracer, String url, List`1 entities)
at ClickDimensions.Crm.MsCrm2011Plugins.AddMemberListPlugin.SendAddToListTriggerRequest(IOrganizationService service, ITracingService tracer, Guid listId, List`1 recipients)
at ClickDimensions.Crm.MsCrm2011Plugins.AddMemberListPlugin.Execute(IServiceProvider serviceProvider) at ClickDimensions.Crm.MsCrm2011Plugins.Common.ExecuteWithRetry[T](Func`1 action)
at ClickDimensions.Crm.MsCrm2011Plugins.AddMemberListPlugin.PostRecipients(IOrganizationService service, ITracingService tracer, String url, List`1 entities)
at ClickDimensions.Crm.MsCrm2011Plugins.AddMemberListPlugin.SendAddToListTriggerRequest(IOrganizationService service, ITracingService tracer, Guid listId, List`1 recipients)
at ClickDimensions.Crm.MsCrm2011Plugins.AddMemberListPlugin.Execute(IServiceProvider serviceProvider)CONTEXT INFORMATION: ----------
UserId: 2a9ce609-d1f8-e011-a539-0ee1388ccc3a
OrganizationId: 37092a56-8295-4f04-8735-e99679817dff
OrganizationName: StageDynamicsCRM
MessageName: AddMember
Stage: 40
Mode: 0
PrimaryEntityName: list
SecondaryEntityName: none
BusinessUnitId: 4e64f778-92f6-e011-a539-0ee1388ccc3a
CorrelationId: 84cdd479-45eb-4748-ada4-82b586e15ad7
Depth: 3
InitiatingUserId: 2a9ce609-d1f8-e011-a539-0ee1388ccc3a
IsExecutingOffline: False
IsInTransaction: True
IsolationMode: 1
Mode: 0
OperationCreatedOn: 10/21/2016 3:49:17 PM
OperationId: 00000000-0000-0000-0000-000000000000
PrimaryEntityId: 00000000-0000-0000-0000-000000000000
OwningExtension LogicalName: sdkmessageprocessingstep
OwningExtension Name: ClickDimensions.Crm.MsCrm2011Plugins.AddMemberListPlugin: AddMember of list
OwningExtension Id: 7abd2cab-7e60-e111-b398-1cc1dee8ea01
SharedVariables:
InputParameters: ListId: 6baba6d4-a597-e611-a759-005056873a53; EntityId: 47f2efd5-1774-e511-8b3b-005056ba1794;
OutputParameters: Id: 4897e5e5-a597-e611-b5c9-005056874077;
PreEntityImages:
PostEntityImages:

My plugin and the ClickDimensions.Crm.MsCrm2011Plugins assemblys are already set to use Isolation Mode = None.

If I disable the ClickDimensions.Crm.MsCrm2011Plugins.AddMemberListPlugin my plugin works just fine.  Is there a way to get this to work without having to disable the Click Dimensions plugin?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>