About `data.forEach is not a function`, in your script, I thought that `const data = currentSheet.getRange(2, 1, currentSheet.getLastRow()-1, 25).getDisplayValue();` is `const data = currentSheet.getRange(2, 1, currentSheet.getLastRow()-1, 25).getDisplayValues();`. How about this?
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/33730c39-016c-4eae-b12a-01bd54650961n%40googlegroups.com.
This is indicating that docFile is not a file object. Most likely it was not able to get the file from the id you entered. Check the id you entered to ensure it is a valid file id.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/cd4ee69b-72e3-4e4f-8fc9-eaebadd0ae18n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/006001d90c03%247b2a3860%24717ea920%24%40gmail.com.
Fredrik,
You should start a new conversation for this issue rather than replying to an existing one. Someone familiar with LinkedIn interface should be able to help here. But also provide your own code on how you are saving the results to spreadsheet.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAFL6K9mu%3DDPvd9fdx8pxWmfnApR1mOjq0hi1UeT_XA87bFJd0w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/006001d90c03%247b2a3860%24717ea920%24%40gmail.com.