web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unified Service Desk Lookup data parameters

(0) ShareShare
ReportReport
Posted on by

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

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

    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"/>

  • Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

    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>

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans