Reputation: 22836
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?
Upvotes: 2
Views: 1798
Reputation: 15128
you can use Xrm.Page.context.getVersion
more details on my blog post
Xrm.Page.context.getVersion is now a supported method, use it!
Upvotes: 3