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 / how can I pass variabl...
Power Apps
Answered

how can I pass variables to the patch without problems

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi

 

 
i have problems to patch variables in my table

if I do this with a string this is not a problem

this is how i set my variables:

Set (product_beamer; ThisItem.'product ') ;; Set (nmbcode_beamer; ThisItem.'nmbs code') ;; Set (brand_beamer; ThisItem.brand) ;; Set (size_beamer; ThisItem.size)

picture

Knipsel.PNG

 
but if I execute the patch on a button, for example
this does not work with the variables but with string like this:

Patch (beamer; Defaults (loan beamer); {product: "string"}; {'nmbs code': "string"}; {brand: "string"}; {size: "string"})
it works
 
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Try

    Patch (beamer; Defaults (loan beamer); {product: "string"; 'nmbs code': "string"; brand: "string"; size: "string"})

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
     
    this i have done but my question is how can i do that with the variables i set like this:
    
    Set (product_beamer; ThisItem.'product ') ;; Set (nmbcode_beamer; ThisItem.'nmbs code') ;; Set (brand_beamer; ThisItem.brand) ;; Set (size_beamer; ThisItem.size)
    
    then I pass those variables to my patch like this:
    Patch (lending beamer; Defaults (lending beamer); {product: product_beamer}; {'nmbs code': nmbcode_beamer}; {brand: brand_beamer}; {size: size_beamer})
    
    
    with the variables this does not work why and how do I solve this ??
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Remove the many Curry brackets {} as I did in my last reply.

    Also ensure you select the variable formula first before you select the patch button.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    like this it works

    :

    Patch (uitleenbeamer; Defaults (uitleenbeamer); {product: "string"; 'nmbs code': "string"; merk:"string"; groote: "string"})

     

    but lik this not :

     

    Patch (uitleenbeamer; Defaults (uitleenbeamer); {product: product_beamer; 'nmbs code': nmbscode_beamer; merk:merk_beamer; groote: groote_beamer})

     

     

    the error =

     
    the requested operation is not a valid server response
    uitleenbeamer
    failed
    a value must be specified for this item.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
     
    i had not selected the formula before i did the patch thank you for the help

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard