Appiphony
 
  • Products
    • Merge Connect Document Generation
    • eSign Connect Docusign Integration
    • Parse Connect Document Parsing
    • Share Connect SharePoint Integration
    • Drive Connect Google Drive Integration
    • Experience Connect Experience Cloud Add-on
  • Company
  • Resources
    • Documentation Learn about our products
    • Blog Salesforce guides and tutorials
    • Customer Stories How our customers succeed
    • Videos Visit our YouTube channel
    • Company Get to know Appiphony
    • Careers View openings
    • PDO Services Build with Appiphony
    • PDO Customer Portal Access our customer portal
  • Pricing
Product Documentation Contact Us

Automating File Upload

Share Connect can automatically upload Salesforce Files to SharePoint. Once uploaded, files can be automatically linked to the record they were originally attached to and show up in the SharePoint Links component. Salesforce Files can also be automatically deleted from Salesforce once they are uploaded to SharePoint, saving you on pricey Salesforce storage.

There are two ways to upload files using Flow:

  • Record-Trigger Flow - Use this when you want a file immediately uploaded to SharePoint upon upload to Salesforce.
  • Scheduled Flow - Use this when you have existing files in Salesforce you want to upload to SharePoint or you want to periodically move files for archival purposes.

Uploading Files to SharePoint with Record-Triggered Flows via Custom File Object

With Share Connect installed, a custom file object for use with the Automatic File Upload feature will be added. When using the File Object, you will be able to trigger the flow from any object record, and the act of uploading files into Salesforce will be the trigger.

    1. Go to Salesforce Setup.
    2. Search for Flows.
    3. Click on New Flow.
    4. Select Record Trigger Flow and then click Create.
    5. On Configure Start, select the custom packaged object shareconnect__File__c object. You will only be able to trigger the flow when A record is created.
    6. Below the starting node select the Add Element node and then select Action. This will auto-display the Action section to the right.
    7. In the Search Actions panel, search for and select the Automate SharePoint action (apex-shareconnect__AutomateSharePoint).
    8. Complete the configuration of the operation. Below is a list of some of the available options:
      • Publish Results Event— If this is toggled on and the Link file to record is enabled, then when a file is uploaded to SharePoint, the SharePoint Links component will automatically refresh to show all of the uploaded files.
      • File Name — By default, is is set to Existing File Name which is the name of the file in Salesforce once the upload process begins. However this can be changed to any of the following options:
        • Existing File Name - Created Date
        • Custom Name - This is an input field where you can provide static text or merge fields to hard set the name of the Salesforce file once the upload process begins. File names containing any of the following special characters are not supported, per SharePoint limitations: [“, *, :, <, >, ?, /, , |] as such they will automatically be removed from the file name
      • Destination – By default, it is set to Default Record Folder, however, this can be changed to any of the following destinations:
        • Default Object Folder
        • Folder in Default Record Folder
        • Linked Folder
        • One Drive
        • Folder from SharePoint…
      • Fallback Destination — By default, it is set to None. However, if you select Upload to Folder from SharePoint the Microsoft picker will pop up and you can select a folder location. This selected folder location is where files will upload should the previously selected Destination not exist for a record when the scheduled job runs instead of being skipped.
      • Link file to record— If enabled, the uploaded Salesforce files will appear on the SharePoint Links component once the flow has been completed. Complete the configuration of the action and click on Done. Below is a list of some of the available options:
      • Delete Salesforce File— If enabled, the uploaded Salesforce files will be deleted from the Salesforce File component once the flow has been completed.
    9. Click on Save.
    10. Click on Activate.
    11. Now that your flow is set up, you can go to an object record and upload a file to Salesforce. Your files will appear in the designated SharePoint location.

Please Note: Due to Salesforce heap size limitations, only files up to ~11MB can be uploaded.

Uploading Files to SharePoint with Record-Triggered Flows via an Object

When using the automatic file upload feature for a desired object you will be able to trigger the flow from only a record on that object, however all existing files for that object record will be uploaded on flow trigger.

  1. Go to Salesforce Setup.
  2. Search for Flows.
  3. Click on New Flow.
  4. Select Record Trigger Flow and then click Create.
  5. On Configure Start, select the custom packaged object shareconnect__File__c object. You will only be able to trigger the flow when either A record is created or A record is updated. 
  6. Below the starting node select the Add Element node and then select Action. This will auto-display the Action section to the right.  
  7. In the Search Actions panel, search for and select the Automate SharePoint action (apex-shareconnect__AutomateSharePoint).
  8. Select the Operation Upload to SharePoint.
    Please Note: The user must have the ability to delete files in Salesforce in order for all the files to get deleted. Giving users the Delete Files permission is recommended.
  9. If the packaged custom object shareconnect__File__c is set, you will only see the operation Upload to SharePoint. Complete the configuration of the operation. Below is a list of some of the available options:
    • Publish Results Event— If this is toggled on and the Link file to record is enabled, then when a file is uploaded to SharePoint, the SharePoint Links component will automatically refresh to show all of the uploaded files.
    • File Name — By default, is is set to Existing File Name which is the name of the file in Salesforce once the upload process begins. However this can be changed to any of the following options:
      • Existing File Name - Created Date
      • Custom Name - This is an input field where you can provide static text or merge fields to hard set the name of the Salesforce file once the upload process begins. File names containing any of the following special characters are not supported, per SharePoint limitations: [“, *, :, <, >, ?, /, , |] as such they will automatically be removed from the file name
    • Destination – By default, it is set to Default Record Folder, however, this can be changed to any of the following destinations:
      • Default Object Folder
      • Folder in Default Record Folder
      • Linked Folder
      • One Drive
      • Folder from SharePoint…
    • Fallback Destination — By default, it is set to None. However, if you select Upload to Folder from SharePoint the Microsoft picker will pop up and you can select a folder location. This selected folder location is where files will upload should the previously selected Destination not exist for a record when the scheduled job runs instead of being skipped.
    • Link file to record— If enabled, the uploaded Salesforce files will appear on the SharePoint Links component once the flow has been completed. Complete the configuration of the action and click on Done. Below is a list of some of the available options:
    • Delete Salesforce File— If enabled, the uploaded Salesforce files will be deleted from the Salesforce File component once the flow has been completed.
  10. Click on Save.
  11. Click on Activate.
  12. Now navigate to your desired object record.
  13. Verify the files that will upload to SharePoint.
  14. Trigger your automation to get your Salesforce files to upload to SharePoint.

Please Note:  Due to heap size limitations only files that are at most ~11MBs in size will upload.

Upload Files to SharePoint with Schedule-Triggered Flows

Leverage Scheduled Flows when you have existing files in Salesforce you want to upload to SharePoint or you want to periodically move files for archival purposes. When using the scheduled flow action, all files under the same record will go to the same destination.

 

Please Note: Uploading files using Scheduled Flows requires the Mass Actions add-on. Please contact sales for more information.

  1. Go to Salesforce Setup.

  2. Search for Flows.

  3. Click on New Flow.
  4. Select Scheduled Automations. 
  5. Select Schedule-Triggered Flow.
  6. Under Start Schedule-Triggered Flow, set the schedule and select the Choose Object (Optional) and set the object to the object the files are associated with.

    Please Note: There is no pointer to the original object for each attachment, so all files would need to be routed to a single folder as opposed to being directed to individual record folders.
  7. When the Add Element panel appears, select Action.
  8. In the Search Actions panel that appears at right, search for and select the Automate SharePoint action (apex-shareconnect__automateShare).
  9. Select the Operation Upload to SharePoint.
     
    Please Note: Uploading files using Scheduled Flows requires the Mass Actions add-on. Please contact sales for more information.
  10. Complete the configuration of the action and click Done. Below is a list of some of the available options:
    • Publish Results Event — If this is toggled on and the Link file to record is enabled, then when a file is uploaded to SharePoint, the SharePoint Links component will automatically refresh to show all of the uploaded files.

    • File Name — By default, it is set to Existing File Name which is the name of the file in Salesforce once the upload process begins. However, this can be changed to Created Date
as well.

    • Destination — By default, it is set to Default Object Folder. However, this can be changed to any of the following destinations:

      • Default Record Folder

      • Folder in Default Record Folder

      • Linked Folder

      • Parent Record’s Default Record Folder

      • Folder in Parent Record’s Default Record Folder

      • Parent Record’s Linked Folder

      • OneDrive

      • Folder from SharePoint…

    • Fallback Destination — By default, it is set to None. However, if you select Upload to Folder from SharePoint the picker will pop up and you can select a folder location. This selected folder location is where files will upload should the previously selected Destination not exist for a record when the scheduled job runs instead of being skipped.

    • Link file to record — If this is enabled, the uploaded Salesforce files will appear on the SharePoint Links component once the flow has been completed.


    • Delete Salesforce File — If this is enabled, the uploaded Salesforce files will be deleted from the Salesforce File component once the flow has been completed.

    • Child Operation: New SharePoint Shortcut — If this is added, the uploaded Salesforce files will have a shortcut created in SharePoint to any of the above Destination options you select.

  11. Click Save.
  12. Enter the required fields for Flow Label and Flow API Name, and click Save.
  13. Click Activate.
  14. Now that your flow is set up, you can go to Scheduled Jobs and see that the job has been scheduled to run.

Please Note: Due to Salesforce heap size limitations, only files up to ~11MB can be uploaded.

 

Getting Started

  • Introduction
  • Installation & Setup
  • FAQs
    • Why Can't I Establish an Inbound Connection?
    • Issues Installing Share Connect: Dynamic Imports are Not Allowed
    • Why are my Schedule-Triggered Flows not working?
    • How do I update Share Connect?
    • Why Can't I Preview Files in Safari?
    • Can I Trial Share Connect?
    • How is Share Connect used in a sandbox environment?
    • How do I open a support ticket with the Share Connect team?
    • Can I provide the Share Connect team with feedback?
    • How do I sign out of my Microsoft account in Share Connect?
    • How to Leave an AppExchange Review for Share Connect
  • Release Notes

Features

  • File Management
    • Linking
    • Viewing
    • Downloading
    • Renaming
    • Unlinking
    • Saving to Salesforce
    • Metadata Mapping to SharePoint
    • Uploading to SharePoint
    • Emailing Files
  • Folder Management
    • Linking
    • Viewing
    • Renaming
    • Unlinking
    • Default Folders
    • Content Folders
  • Automation
    • Automation Setup
    • Creating Automations
    • Automating File Upload
    • Automating Email-To-Case Uploads
    • Updating Files
    • Automating SharePoint Metadata Updates
    • Automating Files
    • Destination Locations
    • Automating Folders
    • Publishing Platform Events

Integrations

  • Merge Connect
    • Merging from SharePoint Links Component
    • Merging with Record-Triggered Flows
    • Merging SharePoint Images
    • Decision Trees
  • eSign Connect
    • Attaching SharePoint Documents to Envelopes
  • Experience Connect
    • Sharing Files & Folders Through Experience Cloud
    • Uploading through the Files Component
    • Uploading through the File Uploader Component

Billing

  • Purchase
  • Manage
    • Licenses
    • Tiers
    • Term
    • Payment Info
    • Cancellation

Products

  • eSign Connect
  • Parse Connect
  • Share Connect
  • Merge Connect
  • Drive Connect
  • Experience Connect

Pricing

  • Drive Connect Pricing
  • eSign Connect Pricing
  • Share Connect Pricing
  • Merge Connect Pricing
  • Parse Connect Pricing
  • Experience Connect Pricing

Resources

  • Documentation
  • Blog
  • Customer Stories
  • Videos
  • Company
  • Careers
  • PDO Services
  • PDO Customer Portal

© 2026 Appiphony, LLC. All rights reserved.

Various trademarks held by their respective owners.

Manage Cookies • Policy & Terms
Loading Comments...