REST request body with number arguments in JSON
Comments
-
Hi, In this documentation page, I see an example to set the Request Body with {} variables which can be set at the flow step. However, all variables in the request body are considered to be STRINGs only. How do I specify the number variable in the request body?
In my case, the request body looks like this and all 5 variables became STRING in the flow. How do I set a variable to be a NUMBER? Let me know. Thanks.
[
{
"product": {TAS}, [b]ç I want this variable to be a NUMBER[/b]
"xFormSeqNum": {FormSeqNum}, [b]ç I want this variable to be a NUMBER[/b]
"userId": {UserId},
"tenantId": {TenantId},
"transactionXML": {TransactionXML}
}
] -
[font=Roboto, Arial, Helvetica, sans-serif]JSON is a string by nature and can be used to create whole objects with JSON Deserialize steps. Its possible to take only certain values from JSON strings however with Get Value From JSON By Name and convert those values to integers with Get Number From String. Ive created a small demo flow showing this concept.[/font]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions