Skip to main content
Question

Uploading Salesforce files to Google Drive, creating text instead of files.

  • January 18, 2024
  • 3 replies
  • 190 views

I'm encountering an issue with my Zap where I aim to copy salesforce file (ContentDocument record) to Google Drive. Despite attempting various URLs, the document added to Google Drive appears as a text with the value of the field I am referencing to generate a doc at Google Drive.

I have tried to give the download Link as a field: it generates a file with JS written on it.

Documentation and articles show that the field indicated by something like this: file exists but not shown. but no field in Content Document/ Content Version says that.

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • January 18, 2024

Hi @Prateek Sholapurkar 

Help article about sending files in Zaps: https://zapier.com/help/create/basics/send-files-in-zaps

We would need to see screenshots with how your Zap steps are outlined and configured to have full context.


Step 1: Trigger: Getting the Content Document Record 

Step 2: Upload File in Google Drive

 

Generated Document:

 

If instead of Id, any other field is referenced, its value is printed.

If ContentVersion is taken as Salesforce Object, and VersionData field is selected, Same document is generated with Record Link Printed in the generated doc


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • January 19, 2024

@Prateek Sholapurkar 

Make sure to review the field description for guidance.

Help about sending files in Zaps: https://help.zapier.com/hc/en-us/articles/8496288813453

The File field expects a file url or a file object, rather than an ID value.