This guide will teach how to capitalize the first character and lowercase the rest of a sentence in Workflows.
- Okta Workflows
The following text is considered:
- recipe: Vegetarian Chili With Winter Vegetables
and need to format it as:
- Recipe: vegetarian chili with winter vegetables
The following flow capitalizes the first letter and lowercases the rest of the text:
Capitalize and lowercase flow
The flow does the following:
- The Helper Flow card accepts text as input.
- The To Upper Case card formats the entire text to upper case (RECIPE: VEGETARIAN CHILI WITH WINTER VEGETABLES).
- The At card extracts the first character (
R). - The To Lower Case card formats the entire text to lowercase (recipe: vegetarian chili with winter vegetables).
- The Text Segment card segments the lowercase text starting at position 1 (ecipe: vegetarian chili with winter vegetables).
- The last card, the Concatenate card, combines the first character in upper case with the segment from step 5 in lower case. The final result is Recipe: vegetarian chili with winter vegetables.
Running the flow:
Capitalize and lowercase flow execution
