Salesforce
easily integrates with your Salesforce instance, allowing you to share data about customers, sales processes, marketing campaigns, and more. The Salesforce provider exposes the standard and custom Salesforce objects. You can manage your customer data, such as leads, contacts, accounts, and opportunities, using CRUD methods.
The endless possibilities depend on your specific needs and objectives and the type of data you want to show in your app. Build an app that provides current data about sales opportunities; deals won, leading sales teams, and open cases or tasks, through interactive components such as charts, lists, widgets, or steppers.
The Salesforce provider uses the Cloud service, where the data passes through the service and is not stored. There is an intermediate layer between the mobile device and Salesforce. Many records can exist in Salesforce; as a result, fetches the records in batches.
- You must have an active Salesforce account.
- Permissions set in Salesforce are adhered to in the . This means you can see the same data in the app as in Salesforce. When viewing the data in the you will be prompted to sign in with your Salesforce credentials.
- Building apps using the Salesforce provider requires a pre-existing knowledge of Salesforce objects, their records, fields, tables, and variables. Take note of the required fields for each table. An overview of Salesforce objects is available in the Salesforce platform; follow the path Settings > Setup Home > Object Manager > Schema Builder or refer to the Salesforce object reference documentation. Tools such as https://workbench.developerforce.com/login.php are helpful when building queries to return the correct Salesforce data.
By default, the provider returns all Salesforce fields and columns. Consider the data size shown in the app and the number of columns you want returned. Salesforce can have many records, and showing large numbers of records can impact the performance of the app, your data plan, and your mobile device. Try to return just the data you require in the app and restrict the columns; this is achievable using queries. Below is an example of a query returning data between specific dates from the Salesforce Opportunity object.
- The permission set assigned to a user in Salesforce determining what they can view and interact with is adhered to in the allowing the user to view and interact with only the data they have rights to.
- Limitation - you can use the Salesforce provider to create a list of reports in Salesforce but cannot run the report from the app.
- See Using the Salesforce provider section for code examples on referencing multiple Salesforce objects, queries that define the data to be returned and creating joins between objects using expressions.
- Salesforce is set up for your individual organization and each instance will be different, the examples in th section are provided for guidance on using the Salesforce provider's methods and must be adapted to work with your specific instance.
- Tools such as https://workbench.developerforce.com/login.php are helpful when building queries to return the correct Salesforce data. You can copy and paste the queries into .
The following examples with code snippets are provided: