简体   繁体   中英

How can we identify the Dynamics CRM web api version in js?

Can we detect the Web API version in js like v8.0 v8.1 or v9.0, this will help to write supported message calls vs unsupported messages and handle it gracefully?

One way is about querying the CRM version using SDK RetrieveVersionRequest & detecting it using mapping like CRM 365 means v9.0 etc.

Any direct way?

you can use Xrm.Page.context.getVersion more details on my blog post

Xrm.Page.context.getVersion is now a supported method, use it!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM