I have the following parsed JSON:-
{
"?xml": {
"@version": "1.0",
"@encoding": "utf-8"
},
"RepeaterData": {
"Version": null,
"Items": {
"Item": [
{
"ArticleInput": {
"@type": "System.String",
"#text": "33333333"
},
"ArticleDescription": {
"@type": "System.String",
"#text": "desc33333"
},
"ArticleReturnable": {
"@type": "System.String",
"#text": "YES"
},
"Qty": {
"@type": "System.Double",
"#text": "1"
}
},
{
"ArticleInput": {
"@type": "System.String",
"#text": "33333333"
},
"ArticleDescription": {
"@type": "System.String",
"#text": "desc33333"
},
"ArticleReturnable": {
"@type": "System.String",
"#text": "YES"
},
"Qty": {
"@type": "System.Double",
"#text": "11"
}
}
]
}
}
}
now i want to create a sharepoint list item, and assign the Qty field, so i tried the following formula:-
float(items('Apply_to_each_2')?['Qty'])
but i got this error:-
Unable to process template language expressions in action 'Create_item' inputs at line '0' and column '0': 'The template language function 'float' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.