To move Marketing configurations/data from one environment to another we can make use of the Configuration Migration Tool.
Open the tool, and create the schema file. Connect to the source environment.
Select and add the real-time marketing email table – msdynmkt_email Soure email.
Next, we are going to select the real-time marketing Journey table – msdynmkt_journey
Source Journey.
Lastly events – msevtmgt_event
Source events.
Click on Save and Export –
Save the schema file and click on yes.
Click on Export data to generate the data to be exported.
Next with the schema and data exported, select Import Data to start the import and select destination organization.
Select the data file exported earlier and start the import process.
The import process gets completed with a warning for the table Event for one of the records.
Let us now check the destination environment.
We can see 4 Email records created and 1 updated, all in Draft Status.
We can see all 4 journey records created.
And 2 event records were created.
In case we want to filter the records or want to make sure records are not updated in the destination, we can select Tools >> Configure Import Settings
And use Do not update existing records for all entities and specify Fetch XML for it for filtering.
Open the Form page and copy the script to host the form.
On the host page, let us submit the details.
Back in our Marketing form, we can see the submission.
And also, both the lead and contact records created.
Now let us try one more submission without specifying a value for the lastname field (which it was showing in the notification, as a required field to be added on the form, for both the lead and contact table).
We can see the submissions in the Marketing Form.
And both the lead and contact records were created.
So although it shows the notification for all the mandatory fields which are not added in the form and marked as required, it still allows the record to be created.
Recently we were working on Facebook Leads integration with Dynamics 365. Webhook for Leads can be configured to send real-time notifications of the Leads ads changes.
The first step of setting up Webhook requires creating an HTTPS endpoint that can process 2 types of HTTP Requests – Verification and Event notifications.
Here we will see how to configure the Power Automate flow for verification.
Login to Meta for Developers – Facebook and create an app.
It asks us to specify the Callback URL and Verify token.
Back in Power Automate create a Flow with Request type Trigger, followed by Parse JSON and Response actions.
For HTTP Request, select GET as the method, as FB will send a GET request to the endpoint URL, with the verification requests included in the endpoint of the URL.
Next, Parse the JSON and specify the Content and Schema
Content –
triggerOutputs()['queries']
Schema –
Lastly in Response, set Status Code as 200 and Body as hub.challenge.
Here FB expects the Endpoint to verify the hub.verify_token (which we haven’t set up yet) and respond with hub.challenge value after verification.
Save the Flow, and copy the URL generated for the HTTP Request trigger.
Back in Meta for Developers, in edit user subscription paste the Callback URL and for now in place of token specify any value and click on Verify and Save.
We should now have a Webhook endpoint (Flow) successfully configured
We can also see our Flow ran successfully.
Here in the example we configured the webhook validation for User events, for Facebook Lead we need to configure it for Page, the other options available are Permissions, Application, Instagram etc.
Recently we were getting the below error on the Omnichannel Ongoing Conversations Dashboard.
As the user was having an Omnichannel Administrator role, we expected it to work for the user. We raised a support ticket for the same and got to know that we need to assign the Omnichannel supervisor role for it to work for the user.
After assigning the Omnichannel supervisor role, the report started working for the user. Try it in incognito mode or clear the cache after assigning the role.
We got the below error while trying to create a quote product programmatically.
As the error message specifies, this is because we are trying to add/associate a DRAFT product to the Quote Product.
We will get a similar error from the application as well if we try adding a draft product as an existing product to either a quote product or an opportunity product.