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.3K All Categories
- 70 General
- 11 Training
- 206 Installation / Setup
- 1.1K Flows
- 109 Rules
- 268 Administration
- 212 Portal
- 496 General Q & A
- 706 Forms
- 338 Reports
- 3 Designer Extensions
- 48 Example Flows
- 56 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 184 Pages
- 5 Process Mining
- New Features
- 182 Datastructures
- 69 Repository
- 228 Integrations
- 28 Multi-Tenant
- 27 SDK
- 81 Modules
- 57 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 130 Lunch And Learn Questions