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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send data in Number co...
Power Apps
Suggested Answer

Send data in Number column of SharePoint list using Patch Function from Canvas app

(0) ShareShare
ReportReport
Posted on by 78
Hello Everyone,
 
Using Patch function I am sending data into SharePoint list from my gallery below is the image of table that I created using gallery
 
Problem:
the issue that I am facing is that I am unable to send data into Number column of SharePoint list, this is the formula for quantity column
(
Patch('Line Items',ThisItem,{Quantity:TextInputCanvas4_2.value})
)
Price column formula
Patch('Line Items',ThisItem,{Price:TextInputCanvas4_3.Value})
 
but I am able to send the data for Vendor, Item & Description column using these formula's
Patch('Line Items',ThisItem,{Description:TextInputCanvas4_4.Value})
 
Please let me know if anyone know how to resolve.
Thanks for support
I have the same question (0)
  • Suggested answer
    SebS Profile Picture
    4,589 Moderator on at
    Hi,
     
    You need to wrap the text control in Valu() to make sure it will cast it as number
     
    Patch('Line Items',ThisItem,{Quantity:Value(TextInputCanvas4_2.value)})
     
    Hope that helps
  • SR-02111122-0 Profile Picture
    78 on at
    Thanks that works. Can please let me know one more thing, In Price column I also want to include $ sign in my text input field. 
  • Suggested answer
    SebS Profile Picture
    4,589 Moderator on at
    If user for example enter $10 or you adding the $ you can do it that way 
     
    Patch(
    'Line Items',
    ThisItem,
    {
    Quantity: Value(Substitute(TextInputCanvas4_2.Text, "$", ""))
    }
    )
     
    So before Patching and converting to number it will remove $

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard