web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    ansrikanth Profile Picture
    3,115 on at

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

  • Community Member Profile Picture
    on at

    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,

  • ansrikanth Profile Picture
    3,115 on at

    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

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

    Kind regards

  • Community Member Profile Picture
    on at

    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

  • Verified answer
    ansrikanth Profile Picture
    3,115 on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

    This is indeed what i did. Thank you ;)

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans