Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 Unified Service Desk

(0) ShareShare
ReportReport
Posted on by

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
    on at
    RE: Dynamics 365 Unified Service Desk

    This is indeed what i did. Thank you ;)

  • Verified answer
    ansrikanth Profile Picture
    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
    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
    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
    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
    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
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans