So, I've been having some issues with converting strings into dates with Google App Script for Google Sheets, but now I actually know the first issue to tackle:
No matter what I do, I'm unable to call the class Date() (within Google App Script for Google Sheets).
It apparently does not recognize it as a callable class, and so I cannot define dates within any codes.
Has anybody faced a similar issue? If so, how should I proceed?
Here you'll find some good documentation on how to use date functions on apps script, basically, it uses JavaScript build-in date functions:
Specific documentation of Apps Script Date function:
Google developers: Working with Dates and Times on Apps Script
Documentation on JavaScript Date function:
MDN Web Standard docs: JavaScript build-in Date function
Related
I am pretty new to this tool https://learn.microsoft.com/en-us/composer/introduction
and just trying to explore its capabilities after I heard about in in Build conference last week.
I tried to update echo-bot that came in as a template and wondering about following questions
What language does this tool use to create bots conversations? C#
SDK or JS BF SDK?
How can I get access to code files (.js,.cs) dialog files? So if I
need to modify something we can use VS code later if needed.
Basically I'm trying to understand if we can use this solution to create Bots (dialogs and conversational components etc ) and, later on update code using IDE like VS code to just integrate API's, business logic so finally we get fully functional bot.
I want to know either all sheets name or ID number in a specific spreadsheet, but I cannot find anything that will help me. There are many people who have done this in other languages other than swift, but swift is unique in the way it uses and handles the google sheets API. I do not even know how to get started. Is there anything anyone has that can help?
I don't know where to start, and I am having a lot of trouble with this. I want to be able to use a dropdown menu (from iOSDropDown) to select one of the existing sheets, but I need a way to find the sheets name or ID. People have done it in JavaScript, but there is literally almost no support for swift on the internet. I have already been through the sheets API's hundreds of times, and I have searched through stack overflow and other places as well.
I do not have any results.
To get the names, I ended up having a number on the sheet that I add one to every time and I put the name of that sheet right below the last sheet.
Trying, for funsies, to make Google Spreadsheet read comments from FaceBook. I have discovered that FaceBook actually uses an API for this, and I've been here and made the code to actually export it in a manner I find most convenient. Now I just need to make Google Spreadsheet somehow read it.. My first thought was to use the different import ways they have (IMPORTXML, IMPORTDATA, IMPORTFEED, IMPORTHTML and IMPORTRANGE). The IMPORTRANGE is a quite obvious no go in my book, and so far I've had no success with the other ones. Am I still too far off importing it, or is there hope? If I get the code a cURL I can just use a (really) long string in my web browser and get something I can surely extract data from, though I would only be able to do it locally, the goal with this is that it will be set globally so to speak.
Solved it using "How to import JSON data into Google Spreadsheets in less than 5 minutes", it instructed me to make a custom script in my sheets and paste this script in it including the generated text, and then simply use the new formula "ImportJSON". Worked like a treat :D Do I just delete this post or simply keep it as is?.. Still kinda fresh to Stack Overflow :P
I need to output time in different timezones on the Confluence page. Does anyone know if there already is such macro or some workaround to achieve this feature.
I am trying to do the same thing. I found I can get the local one with a macro that has this line:
$action.dateFormatter.formatGivenString("HH:mm", $content.currentDate)
I would ask this under https://answers.atlassian.com.
So, I'm using the Google Docs API to extract spreadsheets programmatically.
However, I'm only interested in spreadsheets which are live feeds from form responses (survey responses). Is there a way of detecting this? So far the only approach I have is that the spreadsheet has a 'Form Responses 1' tab, which is quite a long way into the process; ideally I'd like to know before I download the file.
I'd be overjoyed by solutions which start with the form and tell you the relevant spreadsheet; ones which verify if a spreadsheet is a form's output are okay; knowing it's impossible would be helpful.
It is possible to get a list of the worksheets by using the Spreadsheets API.
Here is a link to the relevant documentation.
https://developers.google.com/google-apps/spreadsheets/#retrieving_information_about_worksheets
The only way I know this is possible is by using Apps Script, which is Google Apps's scripting language based on Javascript.
You can use Form.getDestinationId() to find the target spreadsheet, like in this example :
function myFunction() {
var form = FormApp.openById('1af5Ur_7IPHOXxdyqVXFF4tFA4WHx6PLf9uL56iPLMgI');
Logger.log(form.getDestinationId())
}
More info about Apps Script's Form capabilities here.
Note that Apps Script has very limited integration capabilities, so if you're trying to build an integrated webapp it might get complicated (but not impossible).