Analytics SDK Developer Guide Overview
CRM Analytics Lightning Web Components
Are you ready to use the power of CRM Analytics directly inside Lightning Experience and create your own custom CRM Analytics functionality? By using theCRM Analytics Lightning Web Components, you can access the power of REST APIs to retrieve collections of CRM Analytics data assets, execute queries and schedule data syncs for recipes and dataflows.
CRM Analytics Assets SDK Aura Component
Use the CRM Analytics <wave:sdk> Aura Component to retrieve collections of CRM Analytics assets, such as dashboards, lenses, and datasets and describe the details of individual assets. Then, customize the display of the results via a Lightning Component controller. You can also create dynamic SAQL queries against your CRM Analytics data to display runtime results.
CRM Analytics Templates SDK Aura Component
You have great apps, and you’re creating app templates to copy or distribute those apps. And you might even be using the REST APIs to work with templates and folders.
By using the CRM Analytics <wave:sdk> Aura Component template methods, your application can do many of the same things from a Lightning Component controller.
CRM Analytics Aura Events
Would you like your application to communicate with your CRM Analytics dashboards, whether your application is built with the Lightning SDK, Visualforce, or mobile? How about from an application outside of Salesforce? Wouldn’t it be great if your application could apply filters or know about dashboard selections and filters made by a user?
Your application could take actions specific for your business when values fall outside of defined ranges. Or you could have an application that is a viewpoint for dashboards made available by different parts of your business application ecosystem. Imagine that: a single information source to present to your executive staff!
The CRM Analytics Aura events are the foundation for a new way of thinking about CRM Analytics applications. Coupled with the Lightning Locker, you can even code your application outside of Salesforce—you can interact with CRM Analytics from any JavaScript application.
CRM Analytics in Apex
Is your company one of the gazillion using custom code in Apex, the server-side programming language for Lightning Platform? Would you like it to be easier to query data in CRM Analytics directly from your Apex code? Say hello to the CRM Analytics in Apex features.
CRM Analytics in Apex lets developers build well-formed SAQL queries and execute them in the security context of the logged-in user, ensuring that security settings are honored. API versioning is supported to avoid breaking applications as the feature set evolves. Use Wave.Lenses to list and describe CRM Analytics lens assets. CRM Analytics also offers Wave.InvalidParameterException to help catch bad values supplied to the class methods.