Salesforce
Description
This is a really simple dashboard showing how to use the Salesforce API to query for data using SOQL (Salesforce Object Query Language). It displays summed up accounts, contacts and opportunities using the SOQL count function.
How do I import and configure this dashboard?
Ensure you're using SquaredUp DS v5.4 or above.
Already a SquaredUp customer?
Get the latest version of SquaredUp DS for Azure
New to SquaredUp?
- A Salesforce Admin needs to create a new Connected App in Salesforce with the following settings:
- "Enable OAuth Settings" - activated
- A callback URL in the format
https://your-squaredup-server-url/SquaredUp/ext-core-webapi/callback/Salesforce
Note: The last part of the URL has to be Salesforce, because it needs to be identical with the name of the provider you're going to create for the tiles in this dashboard. - Granted OAuth scopes:
Manage user data via APIs (api)
Perform requests at any time (refresh_token, offline_access)
- IP restrictions:
Change theIP Relaxation
setting toRelax IP restrictions
in theEdit Policies
area.
Alternatively, you can whitelist the IP address for your SquaredUp server in theProfiles admin
area.
- Create a Web API provider to connect to your Salesforce environment with the following settings: TypeOAuthNameSalesforce
Note: The name is case-sensitive and must be entered exactly like given here for the tiles to recognize the provider automatically. If you name it differently, you will need to select the provider manually for each tile on the dashboard.
Grant typeAuthorization codeBase URLThe base URL to your Salesforce environment in the formathttps://your-salesforce-org.my.salesforce.com/services/data/v52.0/
Ignore invalid SSLOffSend authorization with queryOffAuthorization URLhttps://login.salesforce.com/services/oauth2/authorizeToken URLhttps://login.salesforce.com/services/oauth2/tokenClient ID and secretTheConsumer Key
of the Connected App you're using for SquaredUp DS. You can find it in Salesforce, in the App Manager area of the Connected App.Note: When creating a new Connected App in Salesforce, it can take 20-30 minutes before the Consumer Key becomes active for API usage. This may cause the provider to fail to authorize. If this happens, wait 10 minutes and then click Perform Authorization again.Client secretTheConsumer Secret
of your Connected App you're using for SquaredUp DS. You can find it in Salesforce, in the App Manager area of the Connected App.Authorization scopeapi offline_accessIn SquaredUp DS navigate to the right-hand menu ☰ > system > Integrations
- Under Integrations click on Web API and choose either Simple, Basic Auth or OAuth depending on the API you are using. Note: When adding an OAuth provider you may get an message that the provider is not authorized if some of the provider configuration is incorrect (for example the username, password, secret etc), or if you use a proxy it could be that the proxy is not configured. See How to configure SquaredUp DS to use a proxy.Simple
No authentication, basic authentication (username and password in a header) or Windows authentication (configured automatically to use the application pool identity account).
Basic authBasic authentication. Your specified username and password will be Base64 encoded automatically.
OAuthToken-based authentication according to the OAuth 2.0 standard. Many APIs use OAuth 2.0 for authorization, and will require an OAuth provider to include the additional information about how to authorize against the service.
- Complete the provider fields, using your API provider's online documentation as a guide.
ignore invalid ssl: Turn the on/off switch to on if you are using a self-signed certificate.
default headers headers sent with all requests using this provider, for example the API token in the format the API requires.
url parameters url parameters sent with all requests using this provider. For example, a query parameter that is always used can be added here in the provider to save adding it to every dashboard configuration.
- You are now ready to use this provider in a Web API tile (see How to use the Web API tile).
Download and import this dashboard pack.
- Download the dashboard pack zip file for the dashboard pack you wish to import.
There may be additional steps before or after the import to get the dashboard working in your environment.
- In DS for Azure go to the top right hand menu ☰ > Import Dashboard Packs and drag the zip file into the Manual Import box.
- The dashboard pack is imported and if the pack contains top-level dashboards, these will automatically appear in the navigation bar, usually in a folder called 'Community Dashboards' for dashboard packs from the SquaredUp Community.
- Carry out any additional steps required to make the dashboard work in your environment. These steps will be described on the download page for each dashboard. For example, you may need to create the correctly named Web API provider, create a PowerShell profile, or edit tile scopes.
- Edit the imported dashboard as required.
- Download the dashboard pack zip file for the dashboard pack you wish to import.
- Each tile has a Salesforce SOQL query in the Headers & Data panel. Change the query to a query that works for your Salesforce environment:
- Edit the tiles by clicking the Edit button.
- Open the Headers & Data panel.
- Paste your query in the Data section.
Examples for generic queries you can use:SELECT Name FROM Account
SELECT Name, Owner.Name FROM Account
SELECT Count(Name) FROM Contacts
Publish the dashboard.
A newly created dashboard will not be visible to others until it is published.
If you made changes to an existing dashboard, the changes will only be visible to others after you published the dashboard again.
You can identify a dashboard that has not been published yet or has unpublished changes by the unpublished button at the top:
When you click on the unpublished button, you'll have two options:
- Publish will make the dashboard or changes visible to others.
Note: A newly created dashboard will appear on the menu where you created it. To move the dashboard to a different place on the navigation bar see How to edit the Navigation Bar. - Discard will delete your draft dashboard if it has never been published or, if you made changes to an already published dashboard, discard the changes.
Publishing dashboards to different audiences
Find out how to publish dashboards to a subset of users using Team Folders or visible to anyone even unlicensed users with Open Access (Sharing Dashboards with anyone - Open Access).
- Publish will make the dashboard or changes visible to others.