Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Dynamics URL

Posted on by 205

Hello Everyone, 

I want to create below customer Journey: 

1- Customer register order 

2- CRM create Contact, and Quote using integration

3- when the quote is created contact is added to the list of recipient

4- Email Send out from Marketing with link to Questionnaire

5- CRM collect the data from the website and record them against the same Quote

My issue is with Step 4 because I need to pass the quote ID as a dynamic parameter in the link to the questionnaire for each recipient, otherwise, CRM wouldn't know where it should record the answers received from the form.

the link must be something like mylink.com/=?quote-id

Do you have any suggestions for this? 

Many Thanks,

Elly

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Dynamics URL

    Great workaround, Thank you so much.

    Do you have any course available which I can take?

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Dynamics URL

    Hi Elly,

    Thanks for sharing your requirement.

    However, unfortunately marketing email expression only support with comparison of number and string and boolean at present.

    You could show "created on" time({{this.createdon}}) of quote at same time to notify your customers.

    pastedimage1594111974265v1.png

    Or you could try workaround below:

    1. Add a custom field "Is today?" to quote entity, by default the value is false.

    2. Run an recurring flow to query quotes which were created on today, then set the flag field of them to Yes.

    3. In marketing email, only show quotes if the field is equal to true.

    Regards,

    Clofly

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Dynamics URL

    you are amazing Colfy, thank you for your help.

    I have one more request, I like to filter quote related to one account only which are created within the past 1 day till now.

    can you help me with that please

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Dynamics URL

    Hi Elly,

    We can nest a if conditional statement in for-each loops to show records that meet specific condition.

    e.g:

    Only show quote if its shipping method is UPS.

    pastedimage1594087986865v1.png

    Expression:(The real value of option in option set is number.)

    pastedimage1594088370348v2.png

    Result:

    pastedimage1594088494386v3.png

    You could filter quotes by flagging field of quote entity.

    Here is list of supported syntax:

    pastedimage1594088782471v4.png

     https://docs.microsoft.com/en-us/dynamics365/marketing/dynamic-email-content#advanced-dynamic-content

    Regards,

    Clofly

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Dynamics URL

    Hello Colfy,

    your technique works perfectly but it will show all the quotes related to each contact.

    my contacts are retaining customer and most of them already have a quote.

    Is there a way to filter the quote and show the one we are interested to only?

    Thank you,

    Elly

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Dynamics URL

    I can never thank you enough Colfy, you are just amazing. 

    everything worked perfectly. 

    many Thanks, 

    Elly

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Dynamics URL

    Hi Elly,

    Did you set contact to "Potential Customer" field of quote?

    pastedimage1593682754228v1.png

    And the relationship name is quote_contact_customerid.

    pastedimage1593682809745v2.png

    However, it seems that only contactquotes_quote_contact relationship is available in assist-edit.

    pastedimage1593682906007v3.png

    You could replace it with quote_contact_customerid to test whether related quote could display,

    and we can check whether expression works in preview mode directly.

    pastedimage1593683253325v1.png

    Regards,

    Clofly

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Dynamics URL

    Hello Colfy,

    Thank you so much for your brilliant suggestion as always,

    I follow the steps as you mentioned but I cannot see the quote ID yet.

    It seems I am doing something wrong, here is how I tested.

    1 - Added your code as you have in HTML body

    2- created a segment from Quote and filtered value where Quote contained data.

    3- send customer journey

    but email I received didn't have the quote ID or name available.

    I am not sure what could be wrong,

    Looking forward to hearing your thoughts,

    Many Thanks,

    Elly

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Dynamics URL

    Hi Elly,

    As far as I know, relationship between Contact and Quote is 1:N, so we should use for-each loops to get all related quotes of contact.

    Below is my test based on your description and requirement.

    1. In Settings > Marketing settings > Marketing data configuration, enable "Quote" entity to be synced with insight service to make it appear in assist-edit.

     pastedimage1593506542916v1.png

    2. Create a sample link in marketing email, then nest it with for-each loops in HTML source code view.

    In my demo, I render name field of quote to tell customer their quote name, the quote id is added as parameter to link href.

    Check your quote "{{this.name}}"

    pastedimage1593506775682v2.png

    3. Result:

    Designer view:

    pastedimage1593506935116v3.png

    Test recipient 1:

    pastedimage1593506968644v4.png

    Test recipient 2:

    Blue text won't display if there is no related quotes for contact.

    pastedimage1593507014502v5.png

    Test recipient 1 opened the link.

    pastedimage1593507059254v6.png

    Checking statistics of link clicking rate in Insights tab.

    pastedimage1593507346799v1.png

    Retrieved quote is based on "Potential Customer" field.

    pastedimage1593507201583v8.png

    Regards,

    Clofly

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans