Salesforce integration

Weft Docs for Salesforce

Weft Docs is document generation software for Salesforce. Upload a document you already send, or describe one, and Weft's AI builds the template once. After that, any record, with its related records, becomes a polished PDF without writing code, from Weft or from a button on the record itself.

How it works

From a Salesforce record to a PDF in three steps

01

Register Weft in your org

An admin sets Weft up once, following a short checklist in the app. Each person then authorizes with their own Salesforce login.

02

Choose the records

Pick the record type, the fields you need (including fields from related records) and any filters, then add child records such as an opportunity's line items. No code.

03

Generate and save the PDF

Click the Weft button on a record to get its PDF, then save it to the record as a Salesforce File with one more click. Or preview and export in Weft.

Pick your data, no code

A data source is the set of records a template fills from. You pick from lists, and Weft does the rest.

  • Pick any standard or custom object and its fields, including fields on a parent record through a lookup, such as an opportunity's Account.Name. Where a lookup can point at more than one kind of record, the builder asks which you mean.
  • Filter with plain operators. On a date-and-time field, a date means that whole day in your Salesforce company time zone, and Salesforce's date words, such as TODAY or LAST_N_DAYS:30, work too.
  • Add child records as related lists (an order's line items, an account's contacts), each with its own filters and order, up to five levels deep.
  • Set it up once and it works for every record. Press Preview rows to see real records before you bind anything.

A PDF button on any Salesforce record

Weft Docs gives you a link for a Salesforce URL button or quick action. Add it to a record page, and a click opens the template rendered for that record from its published version, so edits in progress don't reach the people clicking. Until a template is first published, the button uses its latest saved version.

  • Everyone who clicks needs a Weft Docs account in your workspace with the Editor role or higher.
  • Each PDF the button makes counts as one document toward your plan; previews while you design don't count.
Add a Salesforce PDF button

Whose Salesforce access the button uses

Each template's Weft Docs button reads Salesforce in one of two ways:

SettingEach user connects their own (default)Shared access
Reads Salesforce asThe person clicking, under their own sharing rules and field permissionsThe person who set up the connection
People clicking needTheir own Salesforce login, connected onceNo Salesforce login of their own
Who turns it onOn by defaultOnly an Admin, who approves the template's exact queries
Save to SalesforceAvailableOff

With shared access on, publishing a version whose queries changed needs an Admin's approval before the button renders it. Previews and exports in the editor always use the editor's own login.

Save to Salesforce

After someone sees the PDF, Weft Docs can add it to the record it was made for, with one press of Save to Salesforce: a quote onto its opportunity, a letter onto its contact.

  • Save it as a Salesforce File (the default), as a new version of a file the template saved there before, or as a classic attachment.
  • Name the file from the record's fields, such as Quote - {Oppty.Name} - {today}.
  • Nothing is saved on its own. Saving uses the person's own Salesforce login and permissions, and Salesforce records them as the file's creator.
  • Weft keeps no copy of the saved PDF, and saving only ever adds: it never edits or deletes anything in your Salesforce.
Save a PDF to the Salesforce record

Connecting your Salesforce org to Weft Docs

  • An Admin or Owner registers Weft Docs once, as an External Client App (or a Connected App) in your org. Weft shows a checklist with the callback URL to copy, and asks for two OAuth scopes: api, and refresh_token with offline_access.
  • There is no managed package to install: setup is that app, and the buttons you add.
  • Each person then presses Connect and approves Salesforce's consent screen with their own login. Queries run as that person, so Salesforce's sharing rules, field-level security and profile permissions apply as they do in Salesforce.
  • Sandboxes work too: tick Sandbox before connecting.
  • Weft Docs never asks for or stores a Salesforce password. It keeps a refresh token, encrypted.
Connect Salesforce

What Weft Docs doesn't do with Salesforce

  • It doesn't edit or delete your Salesforce data. Its one write is Save to Salesforce, which adds a file when someone presses it.
  • It doesn't save anything on its own: every save is a person's click.
  • It doesn't read through one shared login unless an Admin turns on shared access for a template.

Try Weft Docs on your own Salesforce data.

Salesforce is included in both plans, Starter and Team. Every plan starts with a 14-day trial. A card is required, and you won't be charged until you confirm your plan.