web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Personalized page content

(0) ShareShare
ReportReport
Posted on by 570

Hi Everyone,

I was following the documentation on https://docs.microsoft.com/en-gb/dynamics365/marketing/personalized-page-content and I read throught the existing thread on the subject but still can't get my head around it.

I simply want to display this message on a marketing page: Hi FirstName by calling the value of my variable. 

I copied the JavaScript in the header as specified in the documentation but I don't understand how I can retrieve the var to display in the HTML.  

Any help will be appreciated

I have the same question (0)
  • Samuel Boulanger Profile Picture
    570 on at
    RE: Personalized page content

    Hi Nya 

    Thank you for your answer. I already looked at the tutorials but I still don't get how to call the variable in the html.

    The code provided in the examples is the JS we need to add in the header from my understanding.

    I only need to call the var firstname in the HTML. The example which includes the HTML is for an alert and far too complicated for what I want to achieve.

    I added this JS in the header:

    <script>window.msdyncrm_personalizedpage = {
    id:"560dd91e-a774-ec11-8943-002248210888",
    success: function(data) {
    var firstname = data.Data["firstname"];
    result.innerHTML = "Hi" + firstname;
    },
    error: function() {
    alert("failed!");
    }
    };
    </script>

    What will be the next step?

    Thank you.

  • Suggested answer
    Nya Profile Picture
    29,060 on at
    RE: Personalized page content

    Hi Samuel,

    Please refer to the tutorials in the following two issues.

    (+) Personalized page content - Dynamics 365 Marketing Forum Community Forum

    (+) Microsoft Ignite Marketing Demo - Dynamics 365 Marketing Forum Community Forum

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans