Creates a block of text for a card.
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
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
-
.newTextButton()
Creates a clickable text button for a card.
-
.newAction()
Defines what happens when a card button is clicked.
-
.newCardBuilder()
Starts building a card UI for a Workspace add-on.
-
.newNavigation()
Defines navigation between cards in an add-on.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.