Google form Integration with saleforce - salesforce

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);

Related

how to download attachments from opportunity in salesforce using rest api

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,

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.

Can I use Contact Form DB plugin in my wordpress site for saving and displaying data without sending emails

I want to create a wordpress custom plugin for saving three fields of data and also an image of the same from wp-admin area for every item. It should be able to display all these items in a page.
When I searched for a plugin I found Contact Form DB plugin which can be used as contact form 7 plugin extension for saving data send through it..
http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/
Can I use Contact Form DB plugin in my wordpress site for saving and displaying data without sending emails? It also sends email but I only want to store and display data.
Another problem:- I'm already using a contact form from contact form 7 plugin for sending email enquiries.. Will the changes for saving data in contact form 7 affect its working?
Please help me with any reference or solution as I'm new to wordpress and currently don't know about plugin development.
Any help will be greatly appreciated..
Thanks in advance.
You can use wpcf7_before_send_mail action hook to prevent form being sent to email..
(I have tested this with "Contact Form DB" plugin - it saves data before email is filtered)
To filter only specific Form IDs - use something like this:
function wpcf7_skip_email_sending($wpcf7_data)
{
if ( in_array($wpcf7_data->id(), array(2,3,7)) ) {
$wpcf7_data->skip_mail = true;
}
}
add_action("wpcf7_before_send_mail", "wpcf7_skip_email_sending");
(For older CF7 version you might have to change $wpcf7_data->id() to $wpcf7_data->id)
If you setup the Contact form 7 and put in a junk or noreply email address to send the message to on Contact form 7 it will still log the message being sent in the contact form DB
So in the shortcode template send message to junk#yourdomain.com and whenever a user submits it will try to send to that email and will still log the email as being sent. Personally I would actually create that email address so that your smtp doesn't get flooded with bounce back from smtp server.
To avoid sending emails, without even touching the files, the fastest way is to add in the additional settings tab
demo_mode: on
or
skip_mail: on
With Contact Form DB both works fine. The difference is that demo_mode won't work with Flamingo.

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