function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prathap I am :)Prathap I am :) 

Sending PDF from salesforce using rest api

Hi,
I need to send PDF from salesforce to saleforce using REST API .

Can anybody help me out ??

Thanks in advance.
Best Answer chosen by Prathap I am :)
Prathap I am :)Prathap I am :)
Hi Ashish,
Thanks for your  time,

Yeah i got alredy by using REST API but PDF should be saved as either attachment or document .

Thanks,
Prathap

All Answers

Ashish_SFDCAshish_SFDC
Hi Prathap, 

Currently we can only share few records using s2s. 

Regards,
Ashish
Prathap I am :)Prathap I am :)
Hi Ashish,
Thnks for you reply,

Can you share sample code for sharing records between salesforce to salesforce using REST API
Vinita_SFDCVinita_SFDC
Hello,

If you save pdf as an attachment to a record or in documents then you can upload documents in Document object. Please refer following REST api guide for detailed explanation with example:

http://www.salesforce.com/us/developer/docs/api_rest/

http://salesforce.stackexchange.com/questions/22309/how-do-i-upload-a-document-sobject-using-the-rest-api
Prathap I am :)Prathap I am :)
Hi vinita,
thnx for your reply,

Can we able to send visualforce PDF from salesforce using REST API ???
Ashish_SFDCAshish_SFDC
Hi Prathap,


These are only available options via the Chatter API as well,

http://www.salesforce.com/us/developer/docs/chatterapi/

A file if it is a part of a case then it can have a REST reference.


Regards,
Ashish
Prathap I am :)Prathap I am :)
Hi Ashish,
Thanks for your  time,

Yeah i got alredy by using REST API but PDF should be saved as either attachment or document .

Thanks,
Prathap
This was selected as the best answer