Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Unified Service Desk Lookup data parameters

Posted on by Microsoft Employee

We have a case record that looks up to a customer, How do I get the context of the lookup to show in the data parameter section of usd so I can pull the different fields from the contact entity to verify the customer.  Below I am using an entity search but it gives an error of "Not being able to convert the replacement parameter"

<?xml version="1.0"?>
<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="contact">
<attribute name="fullname"/>
<attribute name="emailaddress1"/>
<attribute name="mobilephone"/>
<attribute name="contactid"/>
<attribute name="lib_identificationno"/>
<attribute name="lib_dateofbirth"/>
<attribute name="address1_composite"/>
<order descending="false" attribute="fullname"/>
<filter type="and">
<condition attribute="contactid" value="{[[incident.customerid.Id]x]}" operator="eq"/>
</filter>
</entity>
</fetch>

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unified Service Desk Lookup data parameters

    Hi Srikanth

    I have an action call copyToContext that copies an incident ID to the context, I then use the context in the fetch XML as below however I get a replacement parameter could not be replaced error. Gosh I have tried all sort of things that can be done but no lucky. Please help, below is the fetch xml in the entity search.

    <fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">

    <entity name="incident">

    <attribute name="incidentid"/>

    <attribute name="ticketnumber"/>

    <attribute name="prioritycode"/>

    <attribute name="title"/>

    <attribute name="customerid"/>

    <attribute name="statuscode"/>

    <attribute name="createdon"/>

    <attribute name="caseorigincode"/>

    <attribute name="lib_totaludo"/>

    <attribute name="lib_totalpotentialudo"/>

    <attribute name="subjectid"/>

    <attribute name="productid"/>

    <attribute name="lib_policy"/>

    <attribute name="emailaddress"/>

    <attribute name="primarycontactid"/>

    <order descending="false" attribute="title"/>

    <filter type="and">

    <condition attribute="incidentid" value="{[[$Context.IncidentID]+]}"  operator="eq"/>

    </filter>

    </entity>

    </fetch>

    </fetch>

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unified Service Desk Lookup data parameters

    Thanks, I managed to get this right. However I have another issue whereby the context of the case we getting from the queue does not show the data of the incident in the $Context part of the data parameters.

  • Verified answer
    ansrikanth Profile Picture
    ansrikanth 3,115 on at
    RE: Unified Service Desk Lookup data parameters

    Hi Keisha

    When will this entity search happen? On load of Case form? Also, why are you using "x" in the replacement parameter?  you should be using a "+" instead of "x". X - will try to XML Encode the ID.

    This is how the condition should be:

    <condition attribute="contactid" value="{[[incident.customerid.Id]+]}" operator="eq"/>

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