how to download attachments from opportunity in salesforce using rest api - salesforce

I'm trying to get the attachments that are placed inside a opportunity but I can't doing simple way.
I'm checking the api services/data/v20.0/sobjects/Opportunity/{id} but parent_id is not returning or something that relates to attachments. enter image description here
I would like to know if you have another solution instead of creating a new endpoint
link https://developer.salesforce.com/forums/?id=9062I000000XnlFQAS,

Related

Google form Integration with saleforce

i have created a Google form . I integrated the form with Salesforce console application by using rest api and Java scrip code backend.
when I fill data and submit the form,the record has to be created in the Salesforce.
My problem/requirement is I attach an image file in form and submit it should populate in the Salesforce record related list note & attachments. how to do it please say be any solution I request u all
Thanks in advance
I think First you want to take a list of attachment in the apex class.Taking the condition that attachment size not equal to zero and looping through that, by taking each individual object like for Eg:
attachment a=new attachment();\
a.ParentId = objectName.id;
listattachmentname.add(a);

Get uploaded attachment by attachment id - Facebook Messenger Bot

I try to send a message with attachment id but the attachment doesn't show up, so I want to check it's existed or not. Is there any facebook api to do that?
More detail:
I created a qr image by google chart url like this
https://chart.googleapis.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl=QRCODE
Then upload it to facebook and store attachment id on my database to reuse. I still got an attachment id after uploading but when send it to facebook messenger it doesn't show up.
I think the problem is that facebook doesn't recognize the above url is an image url.
Currently, the only way to do this is to send a message with the attachment_id. I think the issues may be that you are pointing to a dynamically generated image. The Attachment Upload API needs to be pointed to an actual file, though it is strange you are still receiving an attachment ID. One other thing to note is that attachment ID is not supported in any of the template.
I just double checked my codes, the problem is wrong recipient id not the image url. Sorry for the wrong question.

Using JS function to open Docusign in new tab

I am attempting to open a new docusign tab in my salesforce application. I understand I need to construct a url for this, but do not know what are the required parameters to be passed. So the url will look something like /apex/dsfs__DocuSign_CreateEnvelope?
Where can I see the list of parameters and what is minimum required and what is optional? I have envelope Id and Document Id. I need to open a new tab where it shows the envelope populated with all the fields like signers and documents attached.I need to open this page with attachments and everything in the envelope
I found a solution. I am not using javascript but using apex making a post request to get the embedded signing url.

Writeback to Salesforce using Powerforms

I am using Powerforms as an approach to get signatures using the DocuSign. What I want is to send some part of the data back to Salesforce from the PDF while the user signs it. I created custom fields on the PDF, related them to Salesforce, checked the writeback and allow sender to edit boxes but the data hasn't got back to SF yet. Any help?
When you send from Salesforce, there is information passed to document (such as the SourceID and Source Object Type), that DocuSign Connect will attempt to match to a record to process a request to push the data back into Salesforce.
If you are using a PowerForm, you would have to pass along similiar data and setup DocuSign Connect correctly for it to relate the data back to a Salesforce record.
This is something that is doable with customization, but not functional out of the box.

How to implement Facebook Post Type objects in GAE?

I a new programmer and trying to implement a facebook type "feed" in my application. Like Whenever a user do some changes in his profile his linked profiles will get to know that in the form of news feed.
But I am stuck on that as I thought whenever any user saves any data (like "News", "Blog", "Event" or any "Comment") just send the id of the respective classes to the linked profiles and they will see it. Since the id is not generated before the object is saved , the problem is how can I send them. I thought of following workarounds but each have some problem.
Whenever a user posts a news .... a Post object will be made and added to User's Post Collection.
But How do the other users will knew about it.....
1) Send them the id .... but when the id is not created how can you send them the id.
2) Send them the post message and when ever they will click them ... the latest post to them from the particular user will be shown.. but if more than 3 messages then which will be shown?? Shown by the post creation Date no post greater than that date is shownn....but he needs to be shown newer posts..
3) Save the post in all followers feed. the data will be much larger then
4) all the followers on login will check all the persons they are following and save their feed after the time stamp? How to implement this as the Post is saved in User's Profile so I would have to check all the following person and then just check the feed and show them on his feed box; I think I would have to use batch Processes. Processing will take much longer.
I am using objectify-appengine to do operations on GAE.
Any help is appreciated
Are you wanting to update the page with posts in real time like on Facebook and Twitter? To achieve this on Google App Engine you can use the Channel API, which works in conjunction with Javascript to listen for new data and update the DOM.
This talk at Google I/O 2009 by Brett Slatkin describes exactly the pattern you should use for this.

Resources