Fixed – Exception in creation of lead (Dynamics 365 Marketing)


Recently we were getting the below error in one of our marketing forms for form submission record.

Exception in Creation of lead – Activity id: 40ff82fc-bb10-4d30-8671-12683392ccdf, Request id: AsChkx2zn5IKrjHVC4cTb6j-ZkB23D0PqgCdxwi8kEE_0, Exception: An item with the same key has already been added.

This was because we had mistakenly added first name fields twice as the form-matching attribute in the form-matching rule used for that form.

Deleting that extra field resolved the issue for us.

Hope it helps..

Advertisements

How to – Create Marketing form submission record through Flow (Power Automate) – Dynamics 365 Marketing


Recently we were exploring the possibility of creating a marketing form submission record through flow/custom code. Here simply creating the marketing form submission record is not enough, for it to be processed by the platform, we need to call the bound action – msdyncrm_UpdateMarketingFormSubmission with Step = Retry. (And it’s all not an officially supported scenario, so be careful)

Below is how the flow looks like

First, we create a form submission record –

After creating the form submission record, we are creating and associating the marketing field submission records with the values that we want to pass for the form – email, first name, and last name in this case.

And then eventually calling the action –msdyncrm_UpdateMarketingFormSubmission to trigger the submission (resubmit) of the form submission record.

On running the flow, we can see the record created with the status as pending.

Within a few seconds, if the input is correct, we can see the status updated as success

and the corresponding contact/lead created or updated.

Hope it helps..

Advertisements

Stop / Go live Lead Score Model behavior in Dynamics 365 Marketing


Recently we were writing a plugin on the Lead Score table to update the associated lead with Score and the Grade values.

The plugin was on Update of Lead Score (msdyncrm_leadscore_v2) to update lead when the Score Status = Up to date.

The interesting point we observed here was that when we stop the lead scoring model all the associated lead scoring records get deleted, which was kind of different than the usual behavior of related records, where we expect it to get deactivated/disabled.

On clicking the Stop button on the lead scoring model all the associated lead score records will get deleted.

All lead score records deleted :-

And now as soon as we Go live, the new lead score records get created back.

It starts the process of creating the records immediately.

Hope it helps..

 

Advertisements

How to – enable marketing interactions in lead and contact timeline – Dynamics 365 Marketing


To view marketing interactions, we need to add a custom connector to the timeline of the lead and the contact form. This step is only required if we are using custom forms and not the out-the-box marketing forms for lead and contact.

The OOB Form already has this connector defined.

Open the form for customization, select the timeline control, scroll down to Advanced >> Additional Settings >> Custom connectors, and click on Add connector.

Specify Constructor and Resource Path and save the record.

  • Constructor: msdynmkt_DynamicsMktTimelineInteractionAnalytics.TimelineInteractionAnalyticsResource
  • Resource path: msdynmkt_DynamicsMktTimelineInteractionAnalytics

Save the form and publish it.

We can see the marketing interactions being displayed in the timeline.

Hope it helps..

Advertisements

Use the Marketing only field to identify automatically generated marketing contact records – Dynamics 365 Marketing


The form-matching strategy defines what field(s) will be used to find the matching record.

Can be found at – Dynamics 365 Marketing >> Settings >> Lead Management >> Form Matching (Outbound)

We then associate the form-matching record with a marketing form.

So if a contact with the same email address is found, the record will be updated, if not then a new contact record will be created, on form submission.

Now to identify these auto-created contact records, we can make use of the out-of-the-box Marketing Only Boolean field. The system populates this field for the contact records created as part of marketing form submission.

We can find the field in the Contact form – Details tab >> Marketing Section.

Read more on marketing only flag

Hope it helps..

Advertisements

How to – Identify Dynamics 365 Marketing Application App and its corresponding environment


We can easily identify the Marketing App and the environment in which it has been provisioned.

Login to Power Platform Admin Center >> Resources >> Dynamics 365 Apps

https://admin.powerplatform.microsoft.com/

We can find the unique name of the environment/organization suffixed with the name of the app i.e. Dynamics 365 Marketing Application for the configured app.

Navigate to the environment’s Advanced Settings >> Customizations >> Developer Resources 

We can find the Unique Name of our organization there


Hope it helps..

 

Advertisements