Relative Content

Tag Archive for google-apps-scriptgoogle-workspace-add-ons

Google App Script: DateTimePicker object shows time in UTC time zone

In our Gmail add-in we are using DateTimePicker class. Due to documentation for setTimeZoneOffsetInMins function, if we aren’t setting time zone, datepicker should show time in user’s time zone. However, when we are inserting initial date into widget widget.setValueInMsSinceEpoch(Date.now()) it shows UTC time instead of local time. Checked in google calendar – time zone set is not UTC.
Maybe we are missing something here?

SelectionInput.setExternalDataSource callback value

I am developing a Gmail Workspace add-on and I want to display a dropdown with items provided by an external web service. Google Apps Script documentation for SelectionInput states that you can provide selection items from external data source and even provides a code sample:

Need advice on basic Google sidebar widget, how to?

I want to learn to make a basic Google sidebar widget for Google Worksplace.
When clicked opens up a basic pane where I can populate things like links to out intranet, links to our in house apps and maybe even embed a html gpt trained on company data to act as a sidekick.