# Creating PDF's in Podio and saving them to ShareFile

Let's say you want to generate a **Contract** from your Podio data, but instead of attaching it to the Item in **Podio**, you want to save it to your connected [ShareFile](https://www.sharefile.com/) account.

This was previously not possible, but now is not only possible, but easy. Here's how:

## Connect ShareFile

Connect your **ShareFile** account to Workflow Automation. Go to the **Account** page, scroll down to the Integrations section, and click on **Connect** next to the **ShareFile** integration.

![Connect](https://www.progress.com/podio/documentation/assets/466c4d0d39c5b88b48b2e7e2b63263eb/cnct-sf1.png)

![Connect](https://www.progress.com/podio/documentation/assets/d52703d9cd7899843900c2aecdfe734e/cnct-sf2.png)

## Build the Flow

Now that we've got **ShareFile** connected, let's build a flow to generate our **PDF**. In this example, we're triggering a flow when the **Command** category field is change to **Generate Contract**. It then gets the related details from **Leads** app, and then creates the PDF.

![PDF Flow](https://www.progress.com/podio/documentation/assets/ee69715945e3c2e05e48ffca8046ddd5/pdf-flow1.png)

## File Destination

Note that the **Save To** field is not set to **Podio Item**, but rather to **ShareFile Folder**, with a specific selected **Folder** in the **ShareFile** account:

![File Destination](https://www.progress.com/podio/documentation/assets/9962ae866c30efb6afc10c7d9e7bcbcd/pdf-file1.png)

## The Result

Now, when I click on the **Generate Contract** category field on an item:

![PDF Result](https://www.progress.com/podio/documentation/assets/6707d2ec0ecfb4f38858ee2942d2db53/pdf-result1.png)

**Workflow Automation** generates the PDF, uploads it to **ShareFile**, and attaches it as a linked file to the Item:

![PDF Result](https://www.progress.com/podio/documentation/assets/7e64bea916defad53c540d3e5bb0ce82/pdf-result1a.png)

And when you click on the file, you are taken to **ShareFile**:

![PDF Result](https://www.progress.com/podio/documentation/assets/c37f6b09b857702ad27e93a152b34eea/pdf-result1b.png)

Where you can view or download the contract **PDF**:

![PDF Result](https://www.progress.com/podio/documentation/assets/80a5f775e010617b53b929d496167deb/pdf-result1c.png)

You can also verify the file's existence in your **ShareFile** account by navigating to the folder you specified in the **PDF** action:

![PDF Result](https://www.progress.com/podio/documentation/assets/53359d53f6c4402224df20258df05a05/pdf-result1d.png)
