google-apps-script

DocuSign REST API INVALID_CONTENT_TYPE sending envelope from template with application/json

两盒软妹~` 提交于 2020-12-13 03:49:05
问题 I am using Google Apps Script to make a URL request to https://demo.docusign.net/restapi/v2.1/accounts/ACCOUNT-ID/envelopes (where ACCOUNT-ID is my proper numerical account ID.) It's being sent with the code UrlFetchApp.fetch(url, params) . params is { muteHttpExceptions: true, method: "POST", headers: { Authorization: "Bearer "+jwt, ContentType: "application/json" }, payload: payload } jwt is a token retrieved from the JWT auth flow at execution time, and payload is { "accountId": accountID,

How to filter data in Column Google Sheets with URL Parameter in Google Script?

可紊 提交于 2020-12-13 03:39:17
问题 I'm trying Google Script and I want to display data based on keyword parameters which will later refer to Column C as a data filter which will be displayed according to what is searched for in the parameter keyword. For example in my previous project I had a parameter as pagination ?page=1&limit=10 well now I have a new problem to solve which is both search and pagination, I have column b as the reference for the search ?page=1&limit=10&search=San Andreas How do I implement the code below?

How to filter data in Column Google Sheets with URL Parameter in Google Script?

喜欢而已 提交于 2020-12-13 03:38:25
问题 I'm trying Google Script and I want to display data based on keyword parameters which will later refer to Column C as a data filter which will be displayed according to what is searched for in the parameter keyword. For example in my previous project I had a parameter as pagination ?page=1&limit=10 well now I have a new problem to solve which is both search and pagination, I have column b as the reference for the search ?page=1&limit=10&search=San Andreas How do I implement the code below?

Google sheets: Add image or drawing if a cell contains specific text

旧巷老猫 提交于 2020-12-13 03:29:36
问题 Just want to ask if how can I add a shape or drawing (half-shaded shape) if the cell has an exact text. Is it possible that when I type the letter "t" in the cell, the image/drawing will be visible? Though, I don't think it can be done through a formula, given that the cell on which the image/drawing should be placed is the cell on which the letter "t" should be placed. Is there a way for me to do it via script? EDIT As I applied the solution of copyTo(destination), it worked. But, it is only

Google sheets: Add image or drawing if a cell contains specific text

非 Y 不嫁゛ 提交于 2020-12-13 03:29:16
问题 Just want to ask if how can I add a shape or drawing (half-shaded shape) if the cell has an exact text. Is it possible that when I type the letter "t" in the cell, the image/drawing will be visible? Though, I don't think it can be done through a formula, given that the cell on which the image/drawing should be placed is the cell on which the letter "t" should be placed. Is there a way for me to do it via script? EDIT As I applied the solution of copyTo(destination), it worked. But, it is only

How to fix “Service Documents failed while accessing document” while inserting a lot of data?

独自空忆成欢 提交于 2020-12-13 03:14:27
问题 This is a follow-up question derivated from How to solve error when adding big number of tables With the code below, I get the following message when, for 500 tables. BUt it works fine for 200 for example. Exception: Service Documents failed while accessing document with id The error happens on line 22, inside de if body = DocumentApp.getActiveDocument().getBody(); You also have the table template id to try, but here is an image Image Table Template function RequirementTemplate_Copy() { var

Add another row content to the .txt

杀马特。学长 韩版系。学妹 提交于 2020-12-13 03:12:29
问题 I just got to work the script to export the content of a row to a .txt and put a =, but now i would like to know how i can add the content of other row to the .txt like i will show on the screenshot. This is the code that i currently have but i dont properly make to work. function exporttotxt() { var ss = SpreadsheetApp.getActive(); var sheet = ss.getActiveSheet(); var range = sheet.getRange('G3:G' + sheet.getLastRow()); var rows = range.getValues().filter(([g]) => g.toString() != ""); var

Add another row content to the .txt

不打扰是莪最后的温柔 提交于 2020-12-13 03:11:34
问题 I just got to work the script to export the content of a row to a .txt and put a =, but now i would like to know how i can add the content of other row to the .txt like i will show on the screenshot. This is the code that i currently have but i dont properly make to work. function exporttotxt() { var ss = SpreadsheetApp.getActive(); var sheet = ss.getActiveSheet(); var range = sheet.getRange('G3:G' + sheet.getLastRow()); var rows = range.getValues().filter(([g]) => g.toString() != ""); var

Add another row content to the .txt

淺唱寂寞╮ 提交于 2020-12-13 03:11:05
问题 I just got to work the script to export the content of a row to a .txt and put a =, but now i would like to know how i can add the content of other row to the .txt like i will show on the screenshot. This is the code that i currently have but i dont properly make to work. function exporttotxt() { var ss = SpreadsheetApp.getActive(); var sheet = ss.getActiveSheet(); var range = sheet.getRange('G3:G' + sheet.getLastRow()); var rows = range.getValues().filter(([g]) => g.toString() != ""); var

Insert linked table from Google Sheets into Google Docs using Apps Script

你离开我真会死。 提交于 2020-12-12 17:55:16
问题 I'd like to use Google Apps Script to do insert a linked table from Google Sheets into a Google Document. I'm aware that this is easily done manually using Copy > Paste > Link to Spreadsheet . But is there a way to do this programmatically using Apps Script? 来源: https://stackoverflow.com/questions/51854637/insert-linked-table-from-google-sheets-into-google-docs-using-apps-script