abtevrythng / fetchxml-to-sql Goto Github PK
View Code? Open in Web Editor NEW⛔️ DEPRECATED: Convert Dynamics CRM FetchXML to SQL Queries the easy way! ⛔️
⛔️ DEPRECATED: Convert Dynamics CRM FetchXML to SQL Queries the easy way! ⛔️
I found a bug, the code is bellow
string tempString = entityName + "." + myStruct.linkEntityFrom + " = " + myStruct.linkEntityFromToName + "." + myStruct.linkEntityTo ,
and the correct code is
string tempString = entityName + "." +myStruct.linkEntityTo + " = " + myStruct.linkEntityFromToName + "." + myStruct.linkEntityFrom,
Whilst testing this for my own use I decided to try a few FetchXML's that we have working in Dynamics
This one fails with an error
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="incident"> <attribute name="prioritycode" /> <attribute name="ticketnumber" /> <attribute name="title" /> <attribute name="customerid" /> <attribute name="new_contactname" /> <attribute name="new_createdon" /> <attribute name="statuscode" /> <attribute name="ownerid" /> <order attribute="prioritycode" descending="false" /> <order attribute="ticketnumber" descending="false" /> <filter type="and"> <filter type="and"> <filter type="or"> <condition attribute="ownerid" operator="eq-userid" /> <condition attribute="ownerid" operator="eq" uiname="Development" uitype="team" value="{6089E83B-1F77-E411-B232-00155D644382}" /> </filter> <condition attribute="statecode" operator="eq" value="0" /> </filter> </filter> <link-entity name="account" from="accountid" to="customerid" visible="false" link-type="outer" alias="a_4b5945b8a4a64613afc1ae1d5e6828c7"> <attribute name="telephone1" /> </link-entity> <attribute name="incidentid" /> </entity> </fetch>
mainFiltersList.Add(new mainFilters(mainFilter.ParentNode.Attributes["name"].InnerText, mainFilter.Attributes["type"].InnerText.ToUpper(), mainFilter.ChildNodes[i].Attributes["attribute"].InnerText, convertOperator, ""));
System.NullReferenceException
Any ideas
Providing functionality in web version would be great
You mentioned in the README that is possible to do it with SQL server, COuld you share how ? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.