- Overview
- Callout
- Complex Scenarios
- Credentials
- Data Service
- Form
- Release notes
- Project compatibility
- Real Time Forms
- Updating form data
- Running forms using JavaScript
- Customizing Forms Using CSS
- Conditional components
- Adding multiple components on the same row in Columns
- Using the Data Table component
- Get File/Folder path
- Reading cell values from a Data Grid component
- Displaying PDF files
- Displaying images in forms
- Scrolling through Data Grids
- Using Dev Tools with forms
- Calculate form component values
- Managing dates in forms
- Opening hyperlinks inside forms
- Displaying a default tab in forms
- Displaying the full label of a component
- Searching long strings in drop-down lists
- About the pre 23.4 Form experience
- Project Compatibility
- Real Time Forms
- Dynamic Checkboxes
- Conditional Dropdowns
- Displaying a Default Tab
- Displaying Images
- Displaying PDF Files
- Displaying the Full Label
- Dynamic HTML Elements
- Managing Dates
- Searching Long Strings in Drop-downs
- Customizing Forms Using Local CSS Files
- Executing Do Block On Checkbox Change
- Customizing Columns Width
- Updating Form Data
- Resetting Collection Data
- Advanced Logic
- Executing Do Block on Dropdown Option Change
- Reading Cell Values From a Data Grid Component
- Conditional Components
- Scrolling Through Data Grid Components
- Using the Grid Component
- Dev Tools
- Calculated Value
- Dynamic Dropdowns
- Switching Tabs With Button Click
- Opening Hyperlinks Inside Form
- FTP
- IPC
- Persistence
- Release notes
- Project compatibility
- About the Persistence activity package
- Bulk Form Designer
- Start Job And Get Reference
- Wait for Job and Resume
- Add Queue Item And Get Reference
- Wait For Queue Item And Resume
- Wait for Form Task and Resume
- Resume After Delay
- Assign Tasks
- Create External Task
- Wait For External Task and Resume
- Complete Task
- Forward Task
- Get Form Tasks
- Get Task Data
- Add Task Comment
- Update Task Labels
- Create App Task
- Wait for App Task and Resume
- Working with App tasks
- Building Your First Form Action
- Advanced Controls for Drop-downs
- Embedding Objects in Form Actions
- Allowing Users to Upload Files to the Storage Bucket
- Adding Advanced Logic Using Java Script
- Setting a Default Tab
- Removing the Delete button from Edit Grid using custom CSS
- Customizing Edit Grid templates
- Using buttons to trigger custom logic
- Using an External Form Layout
- Dynamically expanding form components at runtime
- Sample Workflows
- Automation Ops Pipelines
- System
- Release notes
- About the System activity package
- Project compatibility
- RegEx Builder Wizard
- Is Text Matching
- Find Matching Patterns
- Modify Text
- Modify Date
- Replace Matching Patterns
- Text to Left/Right
- Add Data Column
- Add Data Row
- Build Data Table
- Clear Data Table
- Get Row Item
- Update Row Item
- Merge Data Table
- Output Data Table
- Remove Data Column
- Remove Data Row
- For Each Row in Data Table
- Generate Data Table From Text
- Create List
- Append Item to List
- Read List Item
- Update List Item
- Add Log Fields
- Comment Out / Disabled Activities
- Comment
- Change Type
- Log Message
- Remove Log Fields
- Invoke Com Method
- Format Value
- Lookup Data Table
- Filter Data Table
- Sort Data Table
- Remove Duplicate Rows
- Join Data Tables
- Report Status
- Append Line
- Compress/Zip Files
- Copy File
- Copy Folder
- Create Folder
- Create File
- Delete
- File Exists
- Folder Exists
- Extract/Unzip Files
- Wait for Download
- File Change Trigger
- For Each File in Folder
- For Each Folder in Folder
- Delete File
- Delete Folder
- Move File
- Move Folder
- Rename Folder
- Rename File
- Path Exists
- Read Text File
- Write Text File
- Get File Info
- Get Folder Info
- Get Processes
- Get Username/Password
- Kill Process
- Beep
- Get Environment Folder
- Get Environment Variable
- Invoke Power Shell
- Input Dialog
- Message Box
- Browse for File
- Browse for Folder
- Invoke VBScript
- Process End Trigger
- Process Start Trigger
- File Change Trigger V3
- Trigger Scope
- Repeat Number of Times
- Text to Upper/Lowercase
- Set Environment Variable
- For Each
- Break / Exit Loop
- Retry Scope
- Check True
- Check False
- Workflow Placeholder
- Invoke Workflow File
- Launch Workflow Interactive
- Invoke Code
- Continue / Skip Current
- Multiple Assign
- Invoke Process
- Run Parallel Process
- While
- Do While
- Repeat Number Of Times
- Raise Alert
- Orchestrator HTTP Request
- Get Asset
- Get Credential / Get Orchestrator Credential
- Set Asset
- Set Credential
- Get Jobs
- Get Current Job Info
- Start Job
- Stop Job
- Add Queue Item
- Add Transaction Item
- Delete Queue Items
- Get Queue Items
- Get Transaction Item
- Postpone Transaction Item
- Set Transaction Progress
- Set Transaction Status
- Should Stop
- Wait Queue Item
- Bulk Add Queue Items
- Write Storage Text
- Upload Storage File
- List Storage Files
- Read Storage Text
- Download Storage File
- Delete Storage File
- Custom Input
- Append Item to Collection
- Build Collection
- Collection to Data Table
- Exists in Collection
- Filter Collection
- Merge Collections
- Remove From Collection
- Reset Timer
- Resume Timer
- Start Timer
- Stop Timer
- Timeout Scope
- Manual Trigger
- When New Item Added to Queue
- Stop Local Triggers
- Run Local Triggers
- Repeat Trigger
- Time Trigger
- Disable Local Trigger
- Enable Local Trigger
- Notify Global Variable Changed
- Global Variable Changed Trigger
- Extract Text
- Find and Replace
- Return
- Extract Date and Time from Text
- Change Case for Text
- Add or Subtract from Date
- Download file from URL
- Format Date as Text
- Split Text
- Combine text
- AddDataRow
- AddQueueItem
- AddTransactionItem
- AppendLine
- BulkAddQueueItems
- ClearDataTable
- CompressZipFiles
- CopyFile
- CreateFile
- CreateFolder
- DeleteFileOrFolder
- DeleteQueueItems
- DeleteStorageFile
- DownloadStorageFile
- ExtractUnzipFiles
- FilterDataTable
- GetAsset
- GetCredential
- GetJobs
- GetQueueItem
- GetQueueItems
- GetResourceForLocalPath
- GetRowItem
- GetTransactionItem
- InvokeProcess
- JoinDataTables
- ListStorageFiles
- LookUpDataTable
- MergeDataTable
- MoveFile
- OrchestratorHTTPRequest
- OutputDataTable
- PathExists
- PostponeTransactionItem
- ReadStorageText
- ReadTextFile
- RemoveDataColumn
- RemoveDuplicateRows
- Replace
- SetAsset
- SetCredential
- SetTransactionProgress
- SetTransactionStatus
- SortDataTable
- StartJob
- StopJob
- UpdateRowItem
- UploadStorageFile
- WaitQueueItem
- WriteStorageText
- WriteTextFile
- Testing
- Release notes
- Project compatibility
- About the Testing activity package
- Project Settings
- Add Test Data Queue Item
- Address
- Attach Document
- Bulk Add Test Data Queue Items
- Delete Test Data Queue Items
- Get Test Data Queue Item
- Get Test Data Queue Items
- Given Name
- Last Name
- Random Date
- Random Number
- Random String
- Random Value
- Verify Control Attribute
- Verify Expression
- Verify Expression With Operator
- Verify Range
- Address
- AddTestDataQueueItem
- AttachDocument
- BulkAddTestDataQueueItems
- DeleteTestDataQueueItems
- GetTestDataQueueItem
- GetTestDataQueueItems
- GivenName
- LastName
- RandomDate
- RandomNumber
- RandomString
- RandomValue
- VerifyAreEqual
- VerifyAreNotEqual
- VerifyContains
- VerifyExpression
- VerifyExpressionWithOperator
- VerifyIsGreater
- VerifyIsGreaterOrEqual
- VerifyIsLess
- VerifyIsLessOrEqual
- VerifyIsRegexMatch
- VerifyRange
- Workflow Events
- Workflow Foundation
Format Value
UiPath.Core.Activities.FormatValue
.ToString
and Parse
operations. The available formats are Number, DateTime, Currency, and Percentage.
To
- Value - The value to be formatted. This field supports only GenericValue variables.
Input
- Format - Specifies the format to be applied to the value.
Common
- DisplayName - The display name of the activity.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
The example below explains how to use the Format Value by processing assigned values and formatting them as desired.
This is how the automation process can be built:
- Open Studio and create a new Process.
-
Drag a Sequence container in the Workflow Designer.
-
Create the following variable:
Variable Name
Variable Type
Default Value
formattedValue
GenericValue
Â
-
-
Drag an Assign activity inside the Sequence container.
- Add the variable
formattedValue
in the To field. - Add the expression
DateTime.Now
in the Value field in order to receive the actual date.
- Add the variable
-
Drag a Format Value activity below the Assign activity.
- Add the variable
formattedValue
in the Value field.
- Add the variable
-
Click the Set Format button from the Format Value activity to configure the data format.
- Select the DateTime option from the Format Type drop-down list.
- Select the desired display date style from the Pattern drop-down list.
- Click the OK button for closing the configurator.
-
Place a Log Message activity under the Format Value activity.
- Select the Info option from the Level drop-down button.
- Add the expression
"Today is: "+formattedValue
in the Message field. This displays the message Today is and the actual date, using the previously selected format.
-
Drag an Assign activity below the Log Message activity
- Add the variable
formattedValue
in the To field. - Add the value
19000.1234
in the Value field. This represents the actual value used for formatting.
- Add the variable
-
Drag a Format Value activity below the Assign activity.
- Add the variable
formattedValue
in the Value field.
- Add the variable
-
Click the Set Format button from the Format Value activity to configure the data format. This formats the value added in the previous Assign activity and determines the used number of decimals.
- Select the Number option from the Format Type drop-down list.
- Add the value
2
in the Decimal Digits field. - Select the . option from the Decimal Separator drop-down list.
- Add the value
,
in the Group Separator field. - Click the OK button for closing the configurator.
-
Place a Log Message activity under the Format Value activity.
- Select the Info option from the Level drop-down list.
- Add the expression
"This decimal number is: "+formattedValue
in the Message field. This displays the message This decimal number is and the actual number.
-
Drag an Assign activity below the Log Message activity.
- Add the variable
formattedValue
in the To field. - Add the value
1.142
in the Value field. This value represents the today's parity between euro - dollar.
- Add the variable
-
Drag a Format Value activity below the Assign activity.
- Add the variable
formattedValue
in the Value field.
- Add the variable
-
Click the Set Format button from the Format Value activity to configure the data format.
- Select the Currency option from the Format Type drop-down list.
- Add the value
3
in the Decimal Digits field. - Select the . option from the Decimal Separator drop-down list.
- Select the $ option from the Symbol drop-down list.
- Add the value
,
in the Group Separator field. - Click the OK button for closing the configurator.
-
Place a Log Message activity under the Format Value activity.
- Select the Info option from the Level drop-down button.
- Add the expression
"1 euro is: "+formattedValue
in the Message field. This displays the message 1 euro is and the actual value of one euro converted in dollars.
-
Drag an Assign activity below the Log Message activity.
- Add the variable
formattedValue
in the To field. - Add the value
0.6666
in the Value field. This value is used to display the percentage after the data is formatted.
- Add the variable
-
Drag a Format Value activity below the Assign activity.
- Add the variable
formattedValue
in the Value field.
- Add the variable
-
Click the Set Format button from the Format Value activity to configure the data format.
- Select the Percentage option from the Format Type drop-down list.
- Add the value
2
in the Decimal Digits field. - Select the . option from the Decimal Separator drop-down list.
- Add the expression
%
in the Symbol field. - Add the expression
,
in the Group Separator field. - Click the OK button for closing the configurator.
-
Place a Log Message activity under the Format Value activity.
- Select the Info option from the Level drop-down list.
- Add the expression
"2/3 is: "+formattedValue
in the Message field. This displays the message 2/3 is and its percentage equivalent. -
This is how your workflow should look:
-
Run the automation process. The provided data is processed and displayed, as per the specifications, in the Output panel.