-
Notifications
You must be signed in to change notification settings - Fork 55
Migrating from 1.X to 2.X
Henrik Hannemose edited this page Sep 8, 2017
·
1 revision
Most of the renames and relocation of interfaces to different namespace can solved by using simple search and replace functionality,
like XrmQuery. -> XrmQuery.REST. for the REST endpoint.
Following is a list of changes that may break your code:
- All interfaces previously in the
IPage-namespace (i.e.IPage.Attribute<string>) have been moved to theXrm-namespace - The generation of
IPagedeclaration files has been removed. Cross-form scripting is now done by using form intersections instead. -
base.d.tshas been renamed toxrm.d.ts(in case you are referencing it anywhere)
- To generate REST API files, you now need to specify the
-restargument to XrmDefinitelyTyped - Use the newly added
-jsLibargument to make XrmDefinitelyTyped automatically update your local XrmQuery JavaScript files when it is run - The JavaScript files have been renamed from
dg.xrmquery.js/dg.xrmquery.min.jstodg.xrmquery.rest.js/dg.xrmquery.rest.min.js - All previous
XrmQuerycalls towards the SDK REST API endpoint can now be accessed atXrmQuery.RESTinstead - Likewise has all related filter functionality from the REST endpoint been moved from
FiltertoFilter.REST