← Formatting

[Text] Set Default Value with Formatting API

Pipedream makes it easy to connect APIs for Formatting and 2,800+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
[Text] Set Default Value with the Formatting API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

Create a workflow to [Text] Set Default Value with the Formatting API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the [Text] Set Default Value action
    1. Connect your Formatting account
    2. Configure Input
    3. Configure Default Value
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

[Text] Set Default Value with Formatting API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Submission from Typeform API
Typeform + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Custom Events from Zoom API
Zoom + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Submission (Instant) from Jotform API
Jotform + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Custom Webhook Events from Stripe API
Stripe + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Scheduled Tasks from Pipedream API
Pipedream + Formatting
 
Try it
[Text] Set Default Value with Formatting API on npm Download Counts from npm API
npm + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Activity Created Event from Strava API
Strava + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Account Created from Zoom Admin API
Zoom Admin + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New or Modified File or Folder from Dropbox API
Dropbox + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New or Removed Documents in a Collection from Fauna API
Fauna + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New or changed appointments from SuperSaaS API
SuperSaaS + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Scheduled Tasks from AWS API
AWS + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Invitee Cancelled (Instant) from Calendly API
Calendly (Key) + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Deploy Failure (Instant) from Netlify API
Netlify + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Form Submission (Instant) from Formstack API
Formstack + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Stories for a Tag from Dev.to API
Dev.to + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Task Added To Project (Instant) from Asana API
Asana + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Weather for ZIP Code from HERE API
HERE + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Event Cancelled from Google Calendar API
Google Calendar + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Branch (Instant) from Gitlab API
GitLab + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Comments by Keyword from Hacker News API
Hacker News + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Events from Gorgias (API Key) API
Gorgias (API Key) + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Pub/Sub Messages from Google Cloud API
Google Cloud + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Tweet Metrics from Twitter Developer App API
X Developer App (formerly Twitter) + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Action Created from iAuditor by SafetyCulture API
iAuditor by SafetyCulture + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Agency Listing Updated from Domain Group API
Domain Group + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Asset Uploaded from Shotstack API
Shotstack + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Assignment Done from Google Classroom API
Google Classroom + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Balance Updated from Mocean API API
Mocean API + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Bill State Updated (Instant) from Clio - Australia API
Clio - Australia + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Bill State Updated (Instant) from Clio - Canada API
Clio - Canada + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Bill State Updated (Instant) from Clio - EU API
Clio - EU + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Blob Deleted from Azure Storage API
Azure Storage + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Booking Cancelled from Cal.com API
Cal.com + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Booking Contact Updated from Slottable API
Slottable + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Box Changed Pipeline (Instant) from Streak API
Streak + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Budget Snapshot Event (Instant) from Procore API
Procore + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Call Ended (Instant) from Rinkel API
Rinkel + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Cancelled Booking with Customer from Appointedd API
Appointedd + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Card Archived (Instant) from Trello API
Trello + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Card Created (Instant) from Pipefy API
Pipefy + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Catalog Item Updated from Square API
Square + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Changed E-commerce Inventory (Instant) from Webflow API
Webflow + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Changed Task Status from Yanado API
Yanado + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Chat Status Updated from HelpCrunch API
HelpCrunch + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Client Updated from Paymo API
Paymo + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Client Updated from RiskAdvisor API
RiskAdvisor + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Collection Item Updated from Webflow (v2) API
Webflow (v2) - do not use + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Column Value Updated (Instant) from monday API
monday + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Company Updated from HubSpot API
HubSpot + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Contact Activated from Vision6 API
Vision6 + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Contact Created from Apollo.io API
Apollo.io + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Contact Created from Mailjet API
Mailjet + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Contact Deleted (Instant) from SmashSend API
SmashSend + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Contact Status Updated from Ambivo API
Ambivo + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Contact Updated from ProWorkflow API
ProWorkflow + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Customer Card Expired (Instant) from Chargebee API
Chargebee + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Customer Created (Instant) from Customer Fields API
Customer Fields + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Customer Created from Plain API
Plain + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Customer Updated (Instant) from Loyverse API
Loyverse + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Customer Updated (Instant) from Orderspace API
Orderspace + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Daily schedule from Schedule API
Schedule + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Dataset Refresh Completed from Microsoft Power BI API
Microsoft Power BI + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Deleted Issue (Instant) from Taiga API
Taiga + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Document Completed from Crove API
Crove + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Document Creation Failed (Instant) from PandaDoc API
PandaDoc + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Document Export Failed from Cloudpress API
Cloudpress + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Envelope Sent or Complete from Docusign API
Docusign + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Envelope Sent or Complete from Docusign Developer API
Docusign Developer + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Event Created from Team Up API
Team Up + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Event Start from Teamup API
Teamup + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Event Updated (Instant) from Add to Calendar PRO API
Add to Calendar PRO + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Exchange Rate Updated from CurrencyScoop API
CurrencyScoop + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Expense Created from Splitwise API
Splitwise + Formatting
 
Try it
[Text] Set Default Value with Formatting API on File Deleted from DigitalOcean Spaces API
DigitalOcean Spaces + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Form Created from 123FormBuilder API
123FormBuilder + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Incident Updated (Instant) from Statuspage API
Statuspage + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Inventory Object Updated from Booking Experts API
Booking Experts + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Inventory Updated from Lightspeed Retail POS API
Lightspeed Retail POS + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Inventory Updated from Sellercloud API
Sellercloud + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Issue Created from PractiTest API
PractiTest + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Issued Credential from Accredible API
Accredible + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Item Position Changed from Miro Developer App API
Miro Developer App + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Job Finished (Instant) from Cloud Convert API
Cloud Convert + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Job Run Completed (Instant) from dbt Cloud API
dbt Cloud + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Lead Details Updated from CINC API
CINC + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Member Created from Patreon API
Patreon + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Message Deleted (Instant) from Discord API
Discord + Formatting
 
Try it
[Text] Set Default Value with Formatting API on Message Received from LoopMessage API
LoopMessage + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New 1-on-1 Created from 15Five API
15Five + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Abandoned Cart from Shopify (Developer App) API
Shopify + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Access Token Event from LaunchDarkly (OAuth) API
LaunchDarkly (OAuth) + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Access Token Event from LaunchDarkly API
LaunchDarkly + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Account Created from Recurly API
Recurly + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Account Data Change from 46elks API
46elks + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Account Event (Instant) from Overledger API
Overledger + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Account from Amilia API
Amilia + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Account from Totango API
Totango + Formatting
 
Try it
[Text] Set Default Value with Formatting API on New Action (Instant) from Stormboard API
Stormboard + Formatting
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

[Text] Set Default Value on Formatting
Description:Return a default value if the text is empty
Version:0.0.6
Key:formatting-set-default-value

Code

import { defineAction } from "@pipedream/types"; import app from "../../app/formatting.app.mjs"; export default defineAction({ name: "[Text] Set Default Value", description: "Return a default value if the text is empty", key: "formatting-set-default-value", version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: false, }, type: "action", props: { app, input: { label: "Input", description: "Reference a previous step where you'd like to apply a default value in the case the field is empty or undefined. For example, `{{steps.code.$return_value.test}}`", type: "string", }, defaultValue: { label: "Default Value", description: "Value to return if the text is empty", type: "string", }, }, async run({ $ }) { const { input, defaultValue, } = this; const result = input || defaultValue; $.export("$summary", input ? "Checked text - not empty" : "Replaced empty text with default value"); return result; }, }); 

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
FormattingappappThis component uses the Formatting app.
Inputinputstring

Reference a previous step where you'd like to apply a default value in the case the field is empty or undefined. For example, {{steps.code.$return_value.test}}

Default ValuedefaultValuestring

Value to return if the text is empty

Authentication

The Formatting API does not require authentication.

About Formatting

Pre-built actions to make formatting and manipulating data within your workflows easier.

More Ways to Use Formatting

Actions

[Data] Convert JSON to String with the Formatting API

Convert an object to a JSON format string

 
Try it
[Data] Parse JSON with the Formatting API

Parse a JSON string

 
Try it
[Date/Time] Add/Subtract Time with the Formatting API

Add or subtract time from a given input

 
Try it
[Date/Time] Compare Dates with the Formatting API

Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.

 
Try it
[Date/Time] Format with the Formatting API

Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.

 
Try it
[Numbers] Format Currency with the Formatting API

Format a number as a currency

 
Try it
[Numbers] Format Number with the Formatting API

Format a number to a new style. Does not perform any rounding or padding of the number.

 
Try it
[Text] Convert HTML to Markdown with the Formatting API

Convert valid HTML to Markdown text

 
Try it
[Text] Convert HTML to text with the Formatting API

Convert valid HTML to text

 
Try it
[Text] Convert Markdown to HTML with the Formatting API

Convert Markdown text to HTML

 
Try it
[Text] Decode URL with the Formatting API

Decode a URL string

 
Try it
[Text] Encode URL with the Formatting API

Encode a string as a URL

 
Try it
[Text] Extract by Regular Expression with the Formatting API

Find a match for a regular expression pattern. Returns all matched groups with start and end position.

 
Try it
[Text] Extract Email Address with the Formatting API

Find an email address out of a text field. Finds the first email address only.

 
Try it
[Text] Extract Number with the Formatting API

Find a number out of a text field. Finds the first number only.

 
Try it
[Text] Extract Phone Number with the Formatting API

Find a complete phone number out of a text field. Finds the first number only.

 
Try it
[Text] Extract URL with the Formatting API

Find a web URL out of a text field. Finds the first URL only.

 
Try it
[Text] Replace Text with the Formatting API

Replace all instances of any character, word or phrase in the text with another character, word or phrase.

 
Try it
[Text] Split Text with the Formatting API

Split the text on a character or word and return one or all segments

 
Try it
[Text] Transform Case with the Formatting API

Transform case for a text input

 
Try it
[Text] Trim Whitespace with the Formatting API

Removes leading and trailing whitespace

 
Try it

Explore Other Apps

1
-
24
of
2,800+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.