web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / INSERT ROW (V2) : cast...
Power Apps
Unanswered

INSERT ROW (V2) : cast number in string type to INT and get rid of the thousand separation point in the same process (Form Recognizer Json)

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I'm stuck at finding a solution to transfer the content of a Form recognizer Json custom form (invoices) to an SQL server database.

Every item returned by the json payload, even the number are in string format.

I want to extract every price and total price of every invoice  by iterating in a for each loop, after parsing the JSON.

I firstly used the int() function and it was working great on number like: "434,45" (code below)

 

 

@{int(items('For_each_6')?['valueObject']?['price']?['content'])}

 

 

But after trying to extract an invoice where the price number contained thousand, my problem started because of the housand separator point:
Ex : 1.434,45


So, i tried to use both function replace() and int() at the same time to replace the point by a blank space in every items and cast to INT but i don't think the two actions can be done at the same time:


 

@{int(replace(items('For_each_6')?['valueObject']?['price']?['content']),".","")}

 

 

I'm using a logic app flow and its impossible to copy/paste this expression in the logic app SQL Insert row (V2) form
Any idea of a method to get rid of these point and send the data to an Integer SQL server database column?

sql insert row problem str to int.png


Thanks!

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard