class CardService method .newTextParagraph()

CardService is the Apps Script service.

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

What it does

Creates a block of text for a card.

Why it's used

  • Show status text or instructions on the card.
  • Explain what your add-on found in plain language.

Common errors

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

Explore

Related methods

Better Sheets tutorials

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