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
- 68 General
- 11 Training
- 203 Installation / Setup
- 1.1K Flows
- 108 Rules
- 262 Administration
- 212 Portal
- 494 General Q & A
- 699 Forms
- 334 Reports
- 3 Designer Extensions
- 47 Example Flows
- 53 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 180 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 80 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 92 Lunch And Learn Questions