copy form using google api and change linkedSheetId - google-sheets

After creating a copy of a google form is it possible to change linkedSheetId for a google form using google apis to make the form store the results in an arbitrary sheet ?

Related

Import data from google sheet to google forms

Daily I want to update the google form (10+ forms dailys)
If there any way to send data to google form
I have google sheet with 3 column, COl1-Name, COl2-Age, COl-Location with 10+ rows of item,
Now i want to fill form for 10+ line of item one by one, So i want to send data from google sheet to google forms directly
Yes, you can Import data from Google Sheet and use it to fill out Google Forms. The idea here is that you have a make a little bot to automate your tasks. You can use any language you prefer.
Follow these steps:
Use Google Sheet API to import raw data.
Then, use the imported data to fill out the form and POST it to Google Forms
Here are some starter links to guide you through:
How to use Google Sheet API to import raw data?
How to dynamically prefill Google Form?
How to automate Google Form?
Let me know if you have any questions. Thanks.
PS: Google will limit your API usage if your traffic is quite large, but since you have mentioned 10+ forms on daily basis, it should be fine.

Is there any API available for Retrieve images in the cell from a google spreadsheet?

I'm trying to Retrieve images in the cell from a google spreadsheet. I checked this question is already available. and I also referred to this documentation. But, these both are no longer work. Does anyone suggests me API or provides any good documentation link?
Edited:
This is my Google Sheet. I'm trying to retrieve A4 and A5. Which is I uploaded from local machine. I used this API. But It's given me the blank value. Is there any other API available for retrieving this both images?
You will not be able to retrieve images placed using the "Upload" functionality. To retrieve via API, the image should be placed using
=IMAGE("http://your.url").
So upload your image to a content server, get the URL and insert them to the respective cells using =IMAGE formula.
Now if you retrieve the grid data using Spreadsheet.get and locate this specific element in the array, you will get the cell value as =IMAGE("http://your.url"), you can parse this string to retrieve the image URL.
You can get a zip file with the sheet in html format with all the images – using Google API. I belive it will be easy to parse it and to get the image you need.
Get Your API Key, from Google developers Console
Get a File ID of a google spreadsheet with permissions set to "Anyone with the link".
Now you're ready to call the api (with curl or browser window):
https://www.googleapis.com/drive/v3/files/{FILE_ID}/export?mimeType=application%2Fzip&key={YOUR API KEY}
fill in your FILE_ID and API_KEY from google.
works only with "anyone with link" permissions, otherwise you gotta authenticate first. (more here: How to send google-sheet data in an email keeping the formatting( colors) intact from python?)

How to populate a google sheet template with response data from a google form?

In the past I used an add-on that allowed me to generate a google sheet corresponding to a google form response. However, the add-on that I was using has a limit to the number of documents that can be created, and I was hoping to find an alternative.
Is there another way to take each response I receive in the google form and then generate a google sheet?
Nowadays you can generate a Google Sheet with the Google Form's responses by clicking on View Responses in Sheets button while on the Responses tab:
This should generate a sheet like this:
You can also configure this behavior on this page:
Choose where to save form responses

Google Private Spreadsheet Javascript Oauth

I have been trying to fully understand the Google APIs so I can grab data from a Google spreadsheet that is private using Javascript.
I am using jQuery and D3.js to create a chart and I want to seamlessly pull the data without the user being redirected to an authorization page. I know I need to use OAuth, but I can't find any examples of how to do this seamlessly through an AJAX call.
https://developers.google.com/google-apps/spreadsheets/#authorizing_requests
This doesn't mention anything that makes it seem like I can do it without an OAuth dialog to the user.
To get a private spreadsheet page, you're going to have to authorize. See Google Spreadsheets API with OAuth 2.0 for Javascript for a complete working OAuth call for a Google Spreadsheet. I used this to create a working database using Google Spreadsheets.
Another way that might work: Fusion Tables. You will have to have a public sheet, but you can make it unlisted meaning it is only available through a link (which you only use in your javascript). It might want a location (as it was designed for spatial data), but you might be able to get around it or just use a dummy value.

Can I use google doc's to collect information from multiple users?

Currently I have a ASP.Net app, which display excel like form which collects data from user based on the template I setup. More I searched, I could very well use Google Doc's or Office 365 to create a excel like template and then send the link to users to enter the data. The users enter the data in the google doc template or office 365 template and I can have a common backend process which can query the docs and do what i want to do. I have couple of questions in this model
Can I create one template and send it to multiple users and they use the template to create their own document instead of overwriting my template?
Is it possible to add macros like excel in the docs/office 365?
I want the all the operation with zero foot print to client.
Thanks
Using Google Forms, you can create a form and send it as an email to your users, with their responses being automatically entered in a Google Docs spreadsheet. Then you can analyze that data in the spreadsheet using all the normal spreadsheet functionality (formulas, macros, etc).

Resources