Start a new topic

How to fetch Salesforce Attachment file content with django-salesforce?

I'm building up a Django 1.11 application filling in as a UI for some Salesforce Objects utilizing django-salesforce for the correspondence with Salesforce. 

I need to give clients the choice to download records from Salesforce Attachment objects identified with their Contact.

# Django Attachment model on my_app/


class Attachment(models.Model):
    parent = models.ForeignKey(Contact, models.DO_NOTHING,
    name = models.CharField(max_length=255, verbose_name='File Name')
    content_type = models.CharField(max_length=120, blank=True, null=True)
    body_length = models.IntegerField(sf_read_only=models.READ_ONLY)
    body = models.TextField()


On this Attachment show I can get to the rest URL for the document content on the body field, however not the real substance Salesforce

Is there a method for getting document content from the Attachment without implementing an OAuth customer only for this?

1 Comment

Hi Elena,

I think you may be in the wrong forums. Supermetrics doesn't support Salesforce connections yet and this doesn't appear to be using our tools. If I'm incorrect, please clarify how our tools fit into what you are trying to do so we can further assist.

-Thank you

Supermetrics Team

Login or Signup to post a comment