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)

Micorsoft USD/CRM - XML Script Conversion to CRM Entities

(0) ShareShare
ReportReport
Posted on by 295

Greetings all,

I have a XML Script which i am deserializing through my XAML code and using inside Microsoft USD.

But i  now i have to convert that XML Script to CRM entities. I am new to CRM therefore not much idea to how to achieve it.

Looking forward to some guidance.

Thanks.

*This post is locked for comments

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

    Sorry, didn't get that.. what actually this xml contains? what do you mean by converting XML to crm entity? Can you post some sample data/xml to understand even better?

    -Srikanth

  • Faran Saleem Profile Picture
    295 on at

    Hi Srikanth,

    The XML Script is something like this,

    <?xml version="1.0" encoding="utf-8" ?>
    <USDOperation	xmlns:xsi="www.w3.org/.../XMLSchema-instance"	xmlns:xsd="www.w3.org/.../XMLSchema">
      <OperationCode>CC-SLC-ST</OperationCode>
      <OperationName>Stop Lost Card</OperationName>
      <AuthorizationLevel>2</AuthorizationLevel>
      <AgentBeginScriptList>
        <AgentScripts>
          <ButtonOptions>Both</ButtonOptions>
          <AgentScript>
            <Type>Hint</Type>
            <Argument>Understand the situation before taking the required action</Argument>
          </AgentScript>
          <AgentScript>
            <Type>Script</Type>
            <Argument>Hello! [[PhoneCall.from.name]], I will help you with your stop lost card request.</Argument>
          </AgentScript>
        </AgentScripts>
      </AgentBeginScriptList>
    


  • Suggested answer
    ansrikanth Profile Picture
    3,115 on at

    It seems like you have a custom "Agent script" generator kind of tool is there which is generating your agent script as an XML. Which you want to show it in to USD but for that you want to use regular CRM Agent scripting entities. you want to convert this XML to Agent script entities - is that the question?

    If so, you are talking about more of C#.NET & CRM code rather than USD.

    Read XML using - https://www.dotnetperls.com/xmlreader

    Create entities in CRM using - https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/org-service/sample-create-retrieve-update-delete-late-bound 

    -Srikanth

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