Standalone vs. Container-bound Apps Script

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024

ความคิดเห็น • 30

  • @googleworkspacedevs
    @googleworkspacedevs  2 หลายเดือนก่อน

    Join us for a full day of learning and inspiration at the Google Workspace Developer Summit!
    🇺🇸 Boston, September 12: goo.gle/ws-dev-summit-24-boston
    🇩🇪 Berlin, September 17: goo.gle/ws-dev-summit-24-berlin

  • @maximelecourt457
    @maximelecourt457 3 หลายเดือนก่อน

    Great video, I didn't know standalone scripts existed so I didn't understand many tutorials. Quick question, is it possible from a bound script to call standalone script functions ? I would think yes but I'm not sure.

    • @googleworkspacedevs
      @googleworkspacedevs  3 หลายเดือนก่อน

      Yes, that is possible once you have shared that script as a library. Learn more about how to use libraries: developers.google.com/apps-script/guides/libraries?hl=en#create_and_share_a_library

  • @daque7253
    @daque7253 ปีที่แล้ว +7

    A deeper video about: how to build your first Add-On? , it will be great

  • @Sparky_007
    @Sparky_007 7 หลายเดือนก่อน +1

    It's really too bad you won't provide the ability for the owner of a google sheet to lock the container script from being viewable by editors of the google sheet.
    I want to create a Custom Menu in my Google Sheet and allow the users to edit only particular ranges, while also being able to run scripts from the Custom Menu.
    THIS, would be so so SOO.... Useful.

    • @googleworkspacedevs
      @googleworkspacedevs  6 หลายเดือนก่อน

      This is valuable feedback. To make sure it reaches the teams working on Apps Script, please use the feedback form in the Apps Script IDE which you'll find when clicking the question mark and then "Send feedback".

  • @CarlosEstebanLopezJaramillo
    @CarlosEstebanLopezJaramillo 6 หลายเดือนก่อน +1

    The biggest issue I find is that I can't bind the script to both the form and the sheet, the form trigger gives me easy access to get all uploaded files, then upload them somewhere outside Google Drive, but has no easy way to tell which row in the Sheet that response represents, on the other hand the Sheet trigger contains the exact row of the sent response, but all the values come as strings, so I would have to loop through all the items and do some weird regex for Google Drive URLs to check if the URL is a file, quite painful tbh.

    • @googleworkspacedevs
      @googleworkspacedevs  6 หลายเดือนก่อน

      Thank you for that insight. In the Apps Script Editor (click the question mark > send feedback), you can leave your feedback for the product team.

    • @CarlosEstebanLopezJaramillo
      @CarlosEstebanLopezJaramillo 6 หลายเดือนก่อน

      @@googleworkspacedevs Doesn't matter any more, ended up linking from the responses Sheet, then grabbing the Form URL, binding the trigger with the Form to get the responses, then matched them to the Sheet row by timestamp, had to play with indexes to grab the row instance and then find the cell by the Drive file ID with a TextFinder (turns out the file URL in the response is not the same URL you get from the File instance, so had to search specifically by ID)...

  • @JosephTorres-l4s
    @JosephTorres-l4s ปีที่แล้ว +1

    Please do a video on default vs standard Google Cloud Projects for app scripts. I would particulary like to know if with VPC Network rules, I can limit what IP address access my App Script web app. Thanks!

  • @AneebAhmad-h5m
    @AneebAhmad-h5m 7 หลายเดือนก่อน

    I want to make any user with the spreadsheet access click on an image in the sheet and redirect to an external URL. How can I achieve it via container-bound script

    • @googleworkspacedevs
      @googleworkspacedevs  7 หลายเดือนก่อน

      It's probably easiest to achieve this by using the Sheets formula Hyperlink (see support.google.com/docs/answer/3093313?hl=en).
      If you have to programmatically set the formula then check out the setFormula method: developers.google.com/apps-script/reference/spreadsheet/range#setformulaformula

  • @eudesgrangeDGC
    @eudesgrangeDGC ปีที่แล้ว +2

    Cheers, nice to see such fundamental notions clearly explained.

    • @googleworkspacedevs
      @googleworkspacedevs  ปีที่แล้ว +1

      You can build super cool solutions on a good knowledge foundation.

  • @SukhjitSingh-m7v
    @SukhjitSingh-m7v 10 หลายเดือนก่อน

    hi team,
    I have a very specific question about container bound scripts and workspace development.
    Lets say I have a google sheet and an associated container bound apps scripts project.
    Any user who creates a copy of this sheet also gets associated apps script copied, which is great.
    But the user gets an Unverified App Screen warning.
    How can I prevent this from happening? (assuming I have a google workspace account and a website for privacy policy).
    I would assume since its a container bound apps script project, it would not make much sense to publish this as an add-on to marketplace, so I would also assume it would not require app verification process?
    What steps I can take to prevent Unverified App Screen?
    I couldn't find info regarding this specific question on website.

    • @googleworkspacedevs
      @googleworkspacedevs  10 หลายเดือนก่อน

      There are a couple of different variables in this equation that have to be taken into account (e.g. are the users all of the same Google Workspace domain or from different domains? Is the user using a free Google account? etc.).
      There is a dedicated page in the developer documentation that should provide you with the needed guidance: developers.google.com/apps-script/guides/client-verification

  • @liveautomationexperts
    @liveautomationexperts ปีที่แล้ว +1

    There are issues in editing container - in bound scripts. When we have multiple accounts, it is an issue. I will have to sign-out and sign-in again where the google sheet associated with. Any solutions for this? Clients get vexed with this.

    • @googleworkspacedevs
      @googleworkspacedevs  ปีที่แล้ว +1

      Thank you for the feedback. We are aware of the issue and are looking into possible solutions.

    • @DemirAydemir
      @DemirAydemir ปีที่แล้ว

      I think the best practice is that you can use different Google Chrome User Profiles to separate all your accounts and works. Also, you can benefit from work-specific bookmarks when you organize them in this way. Changing profiles and avoiding signing in with multiple accounts into a single user profile is always error-proof. So I think if every client and user gets educated while starting a new user profile and how to change it easily to organize it better. Many people still using Chrome without signing in. Or they accidentally sign in to their primary Chrome profiles with multiple accounts at the beginning. So they trapped themselves unconsciously. Then they get vexed etc. ☺

    • @liveautomationexperts
      @liveautomationexperts ปีที่แล้ว

      @@DemirAydemir Is there any tutorial from google with mutiple profiles and using google sheets? This is going to be a temporary turnaround solution.

    • @DemirAydemir
      @DemirAydemir ปีที่แล้ว

      I am managing 45 Chrome profiles right now on my desktop. This approach never failed for years. On my phone, I have 8 accounts. Because managing accounts and assets was designed in this way by Google itself. Why would it fail?
      The big and only confusion for people starts when they are able to sign in to their other accounts from their primary profile. Then this agony happens. They lost their orientation easily right from the beginning of their journeys. If Google educates people about the essence of organizing everything with the help of separate Chrome profiles the world will be a better place. This is a tiny but mandatory good practice for start.
      I am training every new team member in our organisation about how to switch Chrome profiles and how to organize wisely. No pain at all.
      Also, there is a good but not well-known practice of transferring bookmarks with folders, by drag and drop from one Chrome profile to another Chrome profile when you need to set up their Chrome bookmark bar with the right resources for the right job. @@liveautomationexperts

  • @cloudengineering1503
    @cloudengineering1503 ปีที่แล้ว

    Problem with simple fix:
    It is nice that container-bound script copy with the file. However, the GCP project_id that is set in project settings is not copied. This leads to users having to change a setting (the project_id) every time they copy a file with a container bound script if that script relies on GCP. This can be easily fixed by just automatically copying (or setting) the project_id of the script when the script is copied.

  • @mdkolixa335
    @mdkolixa335 ปีที่แล้ว

    Hi google team my old Gmail account recover code problem please help me

    • @googleworkspacedevs
      @googleworkspacedevs  ปีที่แล้ว

      Check the Gmail Help for support: support.google.com/mail/?hl=en#topic=7065107

  • @dynamix9916
    @dynamix9916 ปีที่แล้ว

    Thanks, great video!