Accessing External Files
First, enable Files Connect, and let users access related external data sources Let Users and Administrators Access Files Connect Data Sources. For cloud-based data sources, create an authentication provider, and then define the source. Now users can access and share external files via the Files tab and feed, and search for them right alongside their Salesforce content.
![](../__attachments/1695811404/worddav69d16331f45ab32a25464d3f362f6e5c.png%3Fversion=1&modificationDate=1614710544489&cacheVersion=1&api=v2&width=677&height=367?inst-v=45374f53-f4b0-4a30-83dc-edc14e9d1f8c)
Detailed explanation on how to configure files connect with external storage platforms and synchronize with salesforce is given in the following link; https://help.salesforce.com/articleView?id=admin_files_connect_overview.htm&type=5
After configuring the data sources and objects, user is expected to create a new workflow rule for external outbound message trigger. That is, go to setup-> workflow rules, and select new button. And select object as ExternalFileMessage given the figure below. (Figure 9 17).
![](../__attachments/1695811404/worddav1010f571910f51eddd265224b4d2a479.png%3Fversion=1&modificationDate=1614710545098&cacheVersion=1&api=v2&width=565&height=277?inst-v=45374f53-f4b0-4a30-83dc-edc14e9d1f8c)
When save is clicked, user is now able to configure workflow, and supposed to fill the fields as given in the following figure. (Figure 9 18)
![](../__attachments/1695811404/worddav96d266348cb521b6ad3cf4ed384bfef0.png%3Fversion=1&modificationDate=1614710546083&cacheVersion=1&api=v2&width=429&height=276?inst-v=45374f53-f4b0-4a30-83dc-edc14e9d1f8c)
(a) "RuleName" : can be chosen anything but unique name for this defining rule.
(b) "Evaluation Criteria": expected to be chosen as created.
(c) "Run the rule if the" : criteria are met
(d) "Field – Operator - Value": field is chosen as Created Date, and operator is 'not equal to' and value is set to blank.
In the next page user is expected to add workflow action to this rule.
![](../__attachments/1695811404/image-20210517-161513.png?inst-v=45374f53-f4b0-4a30-83dc-edc14e9d1f8c)
(a) "Immediate Workflow Actions": Add workflow action is chosen as new outbound message
The new Outbound message should be configured as in the following figure.
![](../__attachments/1695811404/image-20210517-161545.png?inst-v=45374f53-f4b0-4a30-83dc-edc14e9d1f8c)
(a) "Name": Unique name for the outbound message
(b) "Endpoint URL": should be given as https://portal.sdriveapp.com/externalfiles/download
(c) "User to send as": should be chosen as system admin
(d) "Send Session Id": should be checked
(e) "Fields to Send": Created Date, and all the fields start with prefix cg__ should be chosen
And finally, user is expected to activate this workflow rule as given in the following figure. (Figure 9 21)
![](../__attachments/1695811404/image-20210517-161606.png?inst-v=45374f53-f4b0-4a30-83dc-edc14e9d1f8c)
By clicking the button Activate as given in (a), user should observe the Active checkbox to be checked in given (b).
After configuration, before starting the process, user is expected to go to FILES tab and activate files connect by clicking on according cloud storage platform and authenticating.