salesforce - How to get downloadable link for attachment? -
salesforce - How to get downloadable link for attachment? -
i uploaded jpeg image account. jpeg image file id 069i0000001dkl8 , can't access via, https://c.na15.content.force.com/servlet/servlet.filedownload?file=069i0000001dkl8
but can acces via, https://c.na15.content.force.com/sfc/servlet.shepherd/version/download/068i0000001hwpn?aspdf=false&operationcontext=chatter
is there way can downloadable url attachment in salesforce (using api calls)? or there way can build downloadable url processing fields in api object (sobject)?
thanks.
technically speaking, dealing contentdocument (069 key prefix) , contentversion (068 key prefix) records rather attachment (00p key prefix).
have @ info model content objects:
you can utilize soql create query right contentversion contentdocument. resulting id can used create download url.
alternatively, binary contents of attachment contentversion straight via api.
incidentally, salesforce stackexchange site great place inquire salesforce specific questions.
salesforce salesforce-service-cloud
Comments
Post a Comment