I have array like below,
```
[
"29525"
]
```
I want to get the value 29525 as number(integer). How I can get this value as number, I want to set this as variable.
Solved! Go to Solution.
int(REFERENCE_TO_DATA)
Where 'REFERENCE_TO_DATA' is whatever you're putting into it.
However if it's not an integer it could cause you issues ... but you could do some logic with my number checker.
Unless you're asking how to extract that value from that very specific array. IE, you have an array consisting of one item. In which case if that array was in a variable called arrayVAR, then you would use this:
int(variables('arrayVAR')?[0])
With the same is it an integer issues as previously mentioned.
int(REFERENCE_TO_DATA)
Where 'REFERENCE_TO_DATA' is whatever you're putting into it.
However if it's not an integer it could cause you issues ... but you could do some logic with my number checker.
Unless you're asking how to extract that value from that very specific array. IE, you have an array consisting of one item. In which case if that array was in a variable called arrayVAR, then you would use this:
int(variables('arrayVAR')?[0])
With the same is it an integer issues as previously mentioned.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
28 | |
27 | |
27 | |
20 | |
10 |