class CardService method .newCardBuilder()

CardService is the Apps Script service.

.newCardBuilder() is the method name you will see after a dot in your code.

What it does

Starts building a card UI for a Workspace add-on.

Why it's used

  • Start a Gmail or Calendar add-on card UI.
  • Workspace add-ons are built card by card.

Common errors

  • Forgetting parentheses on newCardBuilder. Write CardService.newCardBuilder(), not CardService.newCardBuilder or newCardBuilder by itself.
  • Skipping dots between chained calls. Each step needs a dot, like CardService.newCardBuilder().
  • Adding spaces where they do not belong. Write CardService.newCardBuilder(), not CardService .newCardBuilder(), CardService.newCardBuilder (), or CardService . newCardBuilder().
  • Wrong capitalization. Use CardService and newCardBuilder, not cardservice or newcardbuilder.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about CardService.newCardBuilder().

Browse the blog
Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.Plan all of 2027 on one Google Sheet, free.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.