Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Embed stars in Dynamic email for feedback

Posted on by 77

Hi Friends,

I am creating a workflow which will send email to the customers when a case will be closed.

I am planning about embedding stars also in that email for feedback and to capture that in Dynamics.

Is it possible?

  • Suggested answer
    Pankaj Gogoi Profile Picture
    Pankaj Gogoi 3,177 on at
    RE: Embed stars in Dynamic email for feedback

    Hi,

    I would suggest using the Forms pro to capture feedback. Microsoft Forms Pro allows you to create and send surveys to your customers or employees and collect their valuable feedback about your products or services. Here are couple of links for reference.

    Send and Store Survey Responses

    Forms Pro

    Best Regards

    PG

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Embed stars in Dynamic email for feedback

    Hi Partner,

    It is difficult to embed stars in email directly, however, you can design a stars widget by creating a custom portal page.

    In the email, we add the page URL and set ID/Case number as query parameter.

    After customer opening the rating page, we query that parameter from URL to update corresponding case record.

    Please refer to following steps for details of my solution.'

    Part 1: Flow

    Action 1. Create a flow, it will trigger on receiving of HTTP request.

    x1.JPG

    Add the request Body JSON Schema:

    {
        "type": "object",
        "properties": {
            "caseid": {
                "type": "string"
            },
            "score": {
                "type": "integer"
            }
        }
    }

    We can use a sample payload to generate schema:

    pastedimage1600668500343v1.png

    Action 2: Retrieve the corresponding case record with parameters from request.

    pastedimage1600668568472v2.png

    Action 3: Security validation

    Only take further actions when length of result is greater than 0.

    Use following expression to get length of result:

    length(body('List_records')?['value')

    pastedimage1600668640090v3.png

    pastedimage1600668762313v4.png

    Action 4:

    Set the rating score of case:

    Note: You can create a custom whole number field to save rating score of case, in my demo, I just took description field of case as example.

    pastedimage1600668819491v5.png

    Action 5(the last, in Yes branch):

    Return a custom response to portal page.

    pastedimage1600668972017v6.png

    Part 2: Portal web page

    Create a web template, copy following code to the template. Then create a web page for it.

    (Replace the url property of ajax request with your owns url.)

    Rating:

    tick image

    Test process:

    1. Test customer received the email which contains page to submit rating.

    pastedimage1600669554893v7.png

    2. The case number will be included in URL as query parameter.

    x2.JPG

    3. Content of notification bar will change dynamically based on total stars.

    5 stars

    pastedimage1600669730610v8.png

    1 star

    pastedimage1600669765062v9.png

    4. After submission and before success of request, the widget will be overwritten by "loading...".

    pastedimage1600669845107v10.png 

    5. Success

    pastedimage1600669877229v11.png

    6. Result

    pastedimage1600669995794v12.png

    In addition, you can add contact name as extra parameter for double protection, obviously, more actions are required to be added.

    The referred stars widget:

    https://codepen.io/mmoradi08/pen/yLyYrGg

    Regards,

    Clofly

  • Suggested answer
    RE: Embed stars in Dynamic email for feedback

    Hi,

    Hope you are doing well.

    I don't think we have an option to embed stars directly in Dynamics Email.

    But you can consider using Customer Voice : docs.microsoft.com/.../available-question-types

    A Rating type question asks respondents to rate their answer by using stars, numbers, or smiley symbols.

    Please let me know if the above helps!

    Thanks,

    Hudson

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

Product updates

Dynamics 365 release plans