google-apps-script

sha3-256 of a cell text in Google Spreadsheet

☆樱花仙子☆ 提交于 2020-12-07 04:53:10
问题 I know you can do sha1 and others on google sheets but is there a way to do sha3-256 secret: test123 hash 3054762b0a8b31adfe79efb3bc7718624627cc99c7c8f39bfa591ce6854ac05d 回答1: You want to retrieve the hash of SHA3-256 type from the text of test123 as the HEX data. You want to put the value to a cell of Spreadsheet. You want to achieve this using Google Apps Script. You want to use the function as the custom function. If my understanding is correct, how about this answer? Issue: In the current

sha3-256 of a cell text in Google Spreadsheet

冷暖自知 提交于 2020-12-07 04:53:09
问题 I know you can do sha1 and others on google sheets but is there a way to do sha3-256 secret: test123 hash 3054762b0a8b31adfe79efb3bc7718624627cc99c7c8f39bfa591ce6854ac05d 回答1: You want to retrieve the hash of SHA3-256 type from the text of test123 as the HEX data. You want to put the value to a cell of Spreadsheet. You want to achieve this using Google Apps Script. You want to use the function as the custom function. If my understanding is correct, how about this answer? Issue: In the current

sha3-256 of a cell text in Google Spreadsheet

南笙酒味 提交于 2020-12-07 04:53:08
问题 I know you can do sha1 and others on google sheets but is there a way to do sha3-256 secret: test123 hash 3054762b0a8b31adfe79efb3bc7718624627cc99c7c8f39bfa591ce6854ac05d 回答1: You want to retrieve the hash of SHA3-256 type from the text of test123 as the HEX data. You want to put the value to a cell of Spreadsheet. You want to achieve this using Google Apps Script. You want to use the function as the custom function. If my understanding is correct, how about this answer? Issue: In the current

The Java Script Results not showing in HTML

。_饼干妹妹 提交于 2020-12-06 15:54:11
问题 I wrote a GAS code to check if the employee is In or Not in (extracting data from Google sheets). The console log give me the right answer but When I click on the button the answer doesn't appear at the front end. Can you help me to troubleshoot on where I went wrong? <div> <script> function onStatus(notify) { var employee = "John Peter"; var ss = SpreadsheetApp.getActiveSpreadsheet(); var mainSheet = ss.getSheetByName("MAIN"); var data = mainSheet.getDataRange().getValues(); for (var j = 0;

The Java Script Results not showing in HTML

馋奶兔 提交于 2020-12-06 15:52:58
问题 I wrote a GAS code to check if the employee is In or Not in (extracting data from Google sheets). The console log give me the right answer but When I click on the button the answer doesn't appear at the front end. Can you help me to troubleshoot on where I went wrong? <div> <script> function onStatus(notify) { var employee = "John Peter"; var ss = SpreadsheetApp.getActiveSpreadsheet(); var mainSheet = ss.getSheetByName("MAIN"); var data = mainSheet.getDataRange().getValues(); for (var j = 0;

Can I prevent people with edit access from modifying my google apps script? [duplicate]

女生的网名这么多〃 提交于 2020-12-06 04:23:05
问题 This question already has answers here : How to protect the Apps Script code in a Google spreadsheet? (5 answers) Closed 26 days ago . I have a google apps script on a particular spreadsheet to which I have given permission to write an email from my account. A few others have 'edit' access to the spreadsheet as well. I was wondering if there is any way for me to prevent the people with 'edit' access from modifying my script and sending rouge emails from account? I explored options such as:

Can I prevent people with edit access from modifying my google apps script? [duplicate]

给你一囗甜甜゛ 提交于 2020-12-06 04:22:44
问题 This question already has answers here : How to protect the Apps Script code in a Google spreadsheet? (5 answers) Closed 26 days ago . I have a google apps script on a particular spreadsheet to which I have given permission to write an email from my account. A few others have 'edit' access to the spreadsheet as well. I was wondering if there is any way for me to prevent the people with 'edit' access from modifying my script and sending rouge emails from account? I explored options such as:

Active VS Effective User for Google Sheets

一笑奈何 提交于 2020-12-06 04:06:31
问题 I'm writing a simple google app script application which performs some data manipulation depends of the user who requests the page. According to google documentation object Session has getActiveUser() and getEffectiveUser() which I currently use in order to determine the user. Have a look at the code: var email = Session.getActiveUser().getEmail(); switch (email){ case 'test@gmail.com': /*Some code here*/ return true; case 'test2@gmail.com': /*Some code here*/ return true; default: return

Active VS Effective User for Google Sheets

99封情书 提交于 2020-12-06 04:06:16
问题 I'm writing a simple google app script application which performs some data manipulation depends of the user who requests the page. According to google documentation object Session has getActiveUser() and getEffectiveUser() which I currently use in order to determine the user. Have a look at the code: var email = Session.getActiveUser().getEmail(); switch (email){ case 'test@gmail.com': /*Some code here*/ return true; case 'test2@gmail.com': /*Some code here*/ return true; default: return

Active VS Effective User for Google Sheets

回眸只為那壹抹淺笑 提交于 2020-12-06 04:05:53
问题 I'm writing a simple google app script application which performs some data manipulation depends of the user who requests the page. According to google documentation object Session has getActiveUser() and getEffectiveUser() which I currently use in order to determine the user. Have a look at the code: var email = Session.getActiveUser().getEmail(); switch (email){ case 'test@gmail.com': /*Some code here*/ return true; case 'test2@gmail.com': /*Some code here*/ return true; default: return