<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.foji.io/index.php?action=history&amp;feed=atom&amp;title=Salesforce_Data_Source_to_FojiSoft_Using_Metric_Queries</id>
	<title>Salesforce Data Source to FojiSoft Using Metric Queries - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.foji.io/index.php?action=history&amp;feed=atom&amp;title=Salesforce_Data_Source_to_FojiSoft_Using_Metric_Queries"/>
	<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Salesforce_Data_Source_to_FojiSoft_Using_Metric_Queries&amp;action=history"/>
	<updated>2026-06-03T19:41:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://docs.foji.io/index.php?title=Salesforce_Data_Source_to_FojiSoft_Using_Metric_Queries&amp;diff=2554&amp;oldid=prev</id>
		<title>SamuelParkinson: Salesforce metric query</title>
		<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Salesforce_Data_Source_to_FojiSoft_Using_Metric_Queries&amp;diff=2554&amp;oldid=prev"/>
		<updated>2025-01-08T20:05:26Z</updated>

		<summary type="html">&lt;p&gt;Salesforce metric query&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide walks through the steps for connecting data from Salesforce to FojiSoft using metric queries. The setup involves configuring the connection details, defining the target table, and writing a query to fetch relevant data.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;1. Access the Data Source Configuration&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
# Log in to your FojiSoft account.&lt;br /&gt;
# Navigate to the &amp;#039;&amp;#039;&amp;#039;&amp;quot;Data Sources&amp;quot;&amp;#039;&amp;#039;&amp;#039; section.&lt;br /&gt;
# Click on the &amp;#039;&amp;#039;&amp;#039;&amp;quot;+ Create&amp;quot;&amp;#039;&amp;#039;&amp;#039; button to add a new data source.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;2. General Information&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Name:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Enter a descriptive name for the data source, e.g., &amp;lt;code&amp;gt;Salesforce Metrics&amp;lt;/code&amp;gt;.&lt;br /&gt;
** Enable the data source by toggling the &amp;#039;&amp;#039;&amp;#039;Enabled&amp;#039;&amp;#039;&amp;#039; switch.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Folders:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Optional: Assign the data source to a specific folder for better organization.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;3. Configure the Connection&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Connection:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Select the type of connection, which in this case will be &amp;lt;code&amp;gt;Salesforce&amp;lt;/code&amp;gt;.&lt;br /&gt;
** Provide authentication details:&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;Client ID&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;Client Secret&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;Salesforce Instance URL&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;Access Token&amp;#039;&amp;#039;&amp;#039; (if using OAuth)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Scan Interval:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Set the interval for refreshing data, e.g., every 15 minutes.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;4. Target Table&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Target Table:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Choose or create a target table in the FojiSoft data platform where the fetched data will be stored.&lt;br /&gt;
** Select &amp;#039;&amp;#039;&amp;#039;Append Data to Table&amp;#039;&amp;#039;&amp;#039; if you want to add new data without overwriting the existing dataset.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;5. Write the Metric Query&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* Navigate to the &amp;#039;&amp;#039;&amp;#039;Query&amp;#039;&amp;#039;&amp;#039; section.&lt;br /&gt;
* Write a SQL-based or Salesforce Object Query Language (SOQL) query to fetch the desired metrics. Below is an example query:&lt;br /&gt;
** SELECT Name, CreatedDate, Amount, AccountId, StageName  FROM Opportunity   WHERE CloseDate &amp;gt;= LAST_N_DAYS:30&lt;br /&gt;
** Ensure the query retrieves only the necessary fields to optimize performance.&lt;br /&gt;
** Use filters like &amp;lt;code&amp;gt;WHERE&amp;lt;/code&amp;gt; to limit the dataset to relevant records.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;6. Test and Save Configuration&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* After completing the query setup:&lt;br /&gt;
** Click on the &amp;#039;&amp;#039;&amp;#039;Test Connection&amp;#039;&amp;#039;&amp;#039; button to validate the connection.&lt;br /&gt;
** Ensure that the query fetches the expected data sample.&lt;br /&gt;
* If successful, click &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; to finalize the data source configuration.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;7. Monitor and Troubleshoot&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* After the data source is live:&lt;br /&gt;
** Check the logs for any connection or query execution errors.&lt;br /&gt;
** Adjust the scan interval or query as needed to improve performance or fetch additional metrics.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;8. Visualization and Use&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
Once the data is imported, you can:&lt;br /&gt;
&lt;br /&gt;
* Build dashboards using FojiSoft&amp;#039;s visualization tools.&lt;br /&gt;
* Integrate the Salesforce data into workflows, reporting, or predictive analytics within the platform.&lt;br /&gt;
&lt;br /&gt;
----This setup ensures seamless integration of Salesforce metrics into the FojiSoft ecosystem for operational insights and analytics.&lt;br /&gt;
[[Category:Settings]]&lt;br /&gt;
[[Category:Data Sources]]&lt;/div&gt;</summary>
		<author><name>SamuelParkinson</name></author>
	</entry>
</feed>