Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics 365 Unified Service Desk

Posted on by Microsoft Employee

Hello,

Is it possible when clicking on the Agent Script Answer Text to get the value pass it to an EntitySearch as parameter?

Thank you

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 Unified Service Desk

    This is indeed what i did. Thank you ;)

  • Verified answer
    ansrikanth Profile Picture
    ansrikanth 3,115 on at
    RE: Dynamics 365 Unified Service Desk

    Ok, you need the Answer text. Then the only option for you is, Execute an action call on Answer click which would use Global Manager's CopyToContext action to copy the answer text (hardcoded based on the answer). Use this Context variable value in your Fetch.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 Unified Service Desk

    Hello @Srikanth Alluri,

    Sorry for the late reply, unfortunately, it's not working (unless I'm missing something). 

    The event "TaskUpdated" is triggered, but the selected answer text is not shown.

    Below I attached a screen of the debugger and I copied the data of the event. 

    Kind Regards,

    AgentTask.PNG

    Action Call# 1

    Source:Event(Agent Scripting)
    Name:TaskUpdated
    Application:
    Action:
    Action Data:
    Parameters:"task"="Client --> Identification"

    Condition:
    Condition Result:Success

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 Unified Service Desk

    Hello, thank you, i will try it and get back to you.

    Kind regards

  • ansrikanth Profile Picture
    ansrikanth 3,115 on at
    RE: Dynamics 365 Unified Service Desk

    Yes, That is clear and Yes, it is possible.

    Whenever you select an answer "TaskUpdated" event which contains the Answer selected. Copy this into Context. You will be using this Context variable in your entity search. After copying to context, execute DoSearch action to execute your entity search.

    Let me know if it is not working for you.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 Unified Service Desk

    Hello,

    Thank you for reply. 

    I have An Agent Script that has 2 Answers. When i click one of the answers i want to be able to pass the Answer text to an Entity Search.

    Example: 

    • Agent Script 1
      • Answer 1
      • Answer 2

    When i click Answser 1, "Answer 1" should be passed to a FetchXml defined in the Entity Search (USD).

    I hope it's clear now.

    Kind Regards,

  • Suggested answer
    ansrikanth Profile Picture
    ansrikanth 3,115 on at
    RE: Dynamics 365 Unified Service Desk

    Didn't understand the question correctly. Can you explain with some example please?

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans