Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollman committed Apr 17, 2021
1 parent 36820e1 commit 7d1efe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion update_contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function create_prefilled_links() {
prefilledFormLink]);
}
}

function add_salesforce_ID_to_users(){
var domainname = PropertiesService.getScriptProperties().getProperty('domainname');
var scriptProps = PropertiesService.getScriptProperties();
Expand Down Expand Up @@ -333,7 +334,7 @@ function update_salesforce_contact_info(){

var responseID = updateContactsForm.getDestinationId();
var responsess = SpreadsheetApp.openById(responseID);
var headers = createHeaderInSheetIfNotFound_('UpdateStatus', responsess);
var headers = createHeaderIfNotFound_('UpdateStatus', responsess);
var sheet = responsess.getActiveSheet();
var rangeData = sheet.getDataRange();
var lastColumn = rangeData.getLastColumn();
Expand Down
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function isDigit(char) {
return char >= '0' && char <= '9';
}

function createHeaderIfNotFound_(value) {
function createHeaderIfNotFound_(value, ss) {
var sheet = ss.getActiveSheet();
var lastColumn = sheet.getLastColumn();
if (lastColumn == 0) {
Expand Down

0 comments on commit 7d1efe1

Please sign in to comment.