Salesforce
Automation
CloudFiles

Automate SharePoint Folder Setup for New Salesforce Accounts

If someone on your team manually creates a SharePoint folder every time a new Salesforce Account is saved that stops today. This guide shows how to automate the entire folder setup, including sub-folders, using CloudFiles and a Record-Triggered Flow. Setup takes under 10 minutes. No code required.

Last updated: 27 May 2026

Folder Management

When a new Account lands in your Salesforce org, there's always a burst of activity: introductory calls get scheduled, contracts get drafted, and onboarding materials get assembled. All of that generates documents. And all of those documents need a home in SharePoint.

Folder Management

If someone on your team manually creates that SharePoint folder every time a new Account is saved, you're spending real money on a task that should cost zero.

CloudFiles on AppExchange automates SharePoint folder setup for new Accounts the moment a record is created - with sub-folders, named from Account fields, linked to the record automatically.

Try CloudFiles

What does the result look like?

Here's the result: a new Account is saved in Salesforce. Within seconds, a SharePoint folder structure is created and linked to that Account. The rep opens the Account record and sees a CloudFiles panel already showing the folder - ready for uploads, previews, and sharing - without anyone having done anything manually.

The folder hierarchy is whatever you define. A common setup:

Shared Documents/ Accounts/ {Account Name}/Contracts/Proposals/Onboarding/Correspondence/

The sub-folders are created using the Copy Resources Flow action, which duplicates a SharePoint folder template into each new Account folder. Define the template once. Every Account gets the same clean structure.

Setting It Up in Salesforce Flow

  1. Open Flow Builder → New Record-Triggered Flow → Object: Account → Trigger: Record Created
  2. Add the CloudFiles Create Folder action — set the path template using {!Account.Name} and any other Account fields
  3. Add the CloudFiles Copy Resources action — point it at your sub-folder template
  4. Activate

That's it. Full tutorial with screenshots →

Most admins complete this setup in under 10 minutes.

Keeping Folders in Sync with the Account

When an Account name is updated in Salesforce - a merger, a rebranding, a correction - the SharePoint folder name should update too. CloudFiles has a dedicated tutorial on renaming SharePoint folders when a Salesforce record is updated, handled through a simple Flow action with no code.

Nested Folders for Opportunities and Cases

Account folders often need to contain Opportunity and Case sub-folders. CloudFiles supports nested folder creation based on Salesforce object relationships — so when a new Opportunity is created under an Account, its folder is automatically placed inside the Account's SharePoint folder.

Key Takeaways

  • CloudFiles automates SharePoint folder creation the moment a new Salesforce Account is saved
  • Sub-folders are created from a template using the Copy Resources Flow action — define it once, apply it everywhere
  • Account name changes sync back to SharePoint automatically through a simple Flow update
  • Nested Opportunity and Case folders are supported out of the box
  • Setup takes under 10 minutes with no code

Want to learn more?🗓️ Book a call to get started

Book a Demo

📖 Browse all CloudFiles tutorials

Frequently Asked Questions

Can CloudFiles automatically create a SharePoint folder when a Salesforce Account is created?

Yes. CloudFiles uses a Record-Triggered Flow in Salesforce to create a SharePoint folder the moment a new Account record is saved. The folder is named using Account fields, structured with any sub-folders you define, and linked directly to the Account record - all without manual intervention.

How do sub-folders get created automatically?

CloudFiles includes a Copy Resources Flow action that duplicates a SharePoint folder template into each newly created Account folder. You set up the template once in SharePoint, then the Flow action replicates that structure for every new Account.

Does CloudFiles update the SharePoint folder name if the Account name changes in Salesforce?

Yes. CloudFiles provides a dedicated Flow action for renaming SharePoint folders when a Salesforce record is updated. When an Account name changes due to a merger, rebrand, or correction, the corresponding SharePoint folder name updates to match.

Can I create Opportunity or Case folders inside the Account folder automatically?

Yes. CloudFiles supports nested folder creation based on Salesforce object relationships. When a new Opportunity or Case is created under an Account, CloudFiles can automatically place its folder inside the parent Account folder in SharePoint.

How long does it take to set up automated SharePoint folder creation in Salesforce?

Most Salesforce admins complete the setup in under 10 minutes using CloudFiles Flow actions in Flow Builder, no code required. CloudFiles provides a full tutorial with screenshots to walk through each step.

Written by: Aadithya, Marketing Executive at CloudFiles