Saving Power Apps Data with the Patch Function

Sdílet
Vložit
  • čas přidán 16. 07. 2024
  • Welcome to this comprehensive guide on saving data with the Power Apps Patch function. In this video, we dive deep into the usage of the Patch function, teaching you how to utilize it effectively to create and edit records in your Power Apps applications. Starting off with setting up a gallery, we then move on to creating a new item using the Patch function. We cover patching various types of columns, including text, number, date, and Yes/No. You'll also learn how to patch from different controls such as text input, date picker, and toggle, giving you the flexibility to move beyond hardcoded values. Towards the end, we tie everything together by showing you how to edit an existing item with the Patch function. This guide is designed to equip you with the knowledge and skills needed to use the Power Apps Patch function effectively. Whether you're new to Power Apps or looking to level up your skills, this video has something for you. Make sure to drop your questions and feedback in the comments section!
    0:00 Start
    0:47 Setting up a gallery first
    3:08 Create a new item with Patch
    4:16 Patching a Text Column
    6:03 Patching a Number Column
    6:55 Patching a Date Column
    7:35 Patching a Yes No Column
    8:34 Patching from a Text Input
    10:04 Patching a Number from a Text Input
    11:31 Patching a Date from a Date Picker
    12:03 Patching a Yes/No from a Toggle
    13:24 Edit an existing item
    Power Apps Consulting and training at www.PowerApps911.com
  • Věda a technologie

Komentáře • 145

  • @smartwatchicon
    @smartwatchicon Před rokem +1

    what a awesome video Shane, I finally starting to get the hang of the patch function, all thanks to your video tutorial. I managed to create my own form, which is a milestone for me, I did however wanted to add attachments as our sales reps would like to add photos or video clips, so I added a new form, deleted all the fields, and kept attachments, then added 'editform'.updates after the curly brackets and closed the patch. works like a charm thank you very much.

  • @chrisbunting5437
    @chrisbunting5437 Před měsícem +1

    I watched/read a dozen explanations on how to do this before finally finding my way here. This is the first example that made everything perfectly understandable to mere mortals. Thank you.

  • @marieraymond6512
    @marieraymond6512 Před rokem +1

    You saved my life with this video. I was struggling for days to update using a form, and it's using the GALLERY that's the trick. THANK YOU!!!!

  • @simonball5602
    @simonball5602 Před rokem

    Another great video Shane. Always good as a quick guide/refresher. Many thanks.

  • @Speeds6080
    @Speeds6080 Před 24 dny +1

    Every time I watch your videos. I think, what a great explanation. Shane, thank you for everything, appreciate you so much. Your knowledge, your explanations and your humour. Thanks mate, you’re a star !

    • @ShanesCows
      @ShanesCows  Před 23 dny +1

      🤩 thank you. I really appreciate comments like this. They keep me going. Have a great week.

  • @upgradeaerialphotos
    @upgradeaerialphotos Před rokem +6

    Hey Shane, this is a great return to the basics for the new generation of Power Apps users! Perhaps, for a follow-up video, you can discuss steps that can be taken to prevent duplicate entries in a datasource when using the Patch function. Thanks for all you do!

    • @ShanesCows
      @ShanesCows  Před rokem

      How about this one Dave? 😎 czcams.com/video/Ap3_Ea9H8b0/video.html

    • @upgradeaerialphotos
      @upgradeaerialphotos Před rokem

      @@ShanesCows Yup! I forgot about that one (even though I commented about it 😀)

  • @hellopsp180
    @hellopsp180 Před 23 dny +1

    The .Text bit was all i needed :)

  • @dougydoe
    @dougydoe Před rokem +1

    Great refresher on the fundamentals on Patching. I thoroughly enjoyed it. Thanks for sharing.

    • @ShanesCows
      @ShanesCows  Před rokem

      Glad you enjoyed it! I appreciate little comments like this, they keep me focused on good content. Thanks

  • @lxz86
    @lxz86 Před rokem +1

    生动, 通俗易懂、感谢沈阳老师

    • @ShanesCows
      @ShanesCows  Před rokem

      不客气 (Hopefully that says you are welcome) 😎

  • @joaomanoel1486
    @joaomanoel1486 Před 10 měsíci +1

    Always helping me with something. Thank you Shane!

  • @mathiashaaland-jensen213
    @mathiashaaland-jensen213 Před 8 měsíci

    Great video that really helped me with the Patch function!

  • @oluwatobipaul6171
    @oluwatobipaul6171 Před rokem +1

    thank you Shane for this refresher video.

  • @HrErik1
    @HrErik1 Před měsícem

    Thank you so much. This is great!

  • @mikatapio7375
    @mikatapio7375 Před 8 měsíci +1

    I rebelliously made my first 2 apps in production using Forms and Submit even though I found out quite early Shane prefers Patch over them. Now, I've decided to step down from the barricades and use the patch function, because it will allow me to create much more user-friendly input screen and help me adjust the visualization of everything. Though if this doesn't serve my purpose I am going back to Forms and Submit. To be continued.

    • @ShanesCows
      @ShanesCows  Před 8 měsíci +1

      If forms are working then stick with them. Don't change for me. 🤩

  • @jeanpierreragequit1726
    @jeanpierreragequit1726 Před rokem +1

    it reminds on the very first video i had to watch on the same channel. Always instructive to refresh my knowledge !!

    • @ShanesCows
      @ShanesCows  Před rokem +1

      Thank Jean. I felt like so much has changed visually it was good to cover it again just to make it fresh. And a reminder never hurts. 😎

    • @jeanpierreragequit1726
      @jeanpierreragequit1726 Před rokem

      @@ShanesCows exactly !

  • @tonyshams
    @tonyshams Před 6 měsíci +1

    Thanks, Shane!

  • @calebessilva
    @calebessilva Před rokem

    Amazing video. Thanks for sharing!

  • @paolovr1970
    @paolovr1970 Před 11 měsíci +1

    Thanks Shane 🙏🙏🙏

    • @ShanesCows
      @ShanesCows  Před 11 měsíci

      You are welcome. Patch is Perfect! 😁

  • @sudhirsimson3340
    @sudhirsimson3340 Před rokem

    Thank you for sharing the Best Practices. Appreciate it.

    • @sudhirsimson3340
      @sudhirsimson3340 Před rokem +1

      With the View and Edit form, I find it hard to change the look and feel. Do you suggest using the Patch function so that we can have an easier option to design fields? Appreciate your input.

    • @ShanesCows
      @ShanesCows  Před rokem

      My pleasure!

    • @ShanesCows
      @ShanesCows  Před rokem +1

      Yup. If you want things to look nice you should switch to patch.

    • @sudhirsimson3340
      @sudhirsimson3340 Před rokem

      @@ShanesCows Thank you. Do you have videos on design best practices?

  • @Dude276175
    @Dude276175 Před 4 měsíci +1

    Great video, thanks! I can't wait to go and get rid of that ugly form control!

  • @dpbartel
    @dpbartel Před rokem

    I love the patch function. I know that this is indirectly related to patch, but when I do in gallery editing with onChange patching, the selected field (focus) will jump to where ever it wants to after the data source has updated and the gallery receives it's data has changed refresh event. For the end user this is very disruptive. Since this is being done inside of a gallery, SetFocus does not work (boo). is there a way to keep or put the selected field back to the place that the user wanted it to go after the gallery goes thru it's datasource refresh?

  • @JustinLynch80
    @JustinLynch80 Před rokem +1

    Great video. Love your content. How would you handle tracking if there's are unsaved changes like with a form?

    • @ShanesCows
      @ShanesCows  Před rokem +1

      You would have to add OnChange to your controls and have it set a variable when a change is made, then use that as "UnSaved" logic.

  • @martinwhite2369
    @martinwhite2369 Před 10 měsíci

    Thanks for this Shane. Saving changes using a form has the OnSuccess event to let you know that the save went ok. Is the absence of an error the only way to know a patch worked?

  • @DanielWeikert
    @DanielWeikert Před rokem

    Can you elaborate on the benefits of patch vs (viewform,editform, newform)?
    Thx

  • @s961201
    @s961201 Před 5 měsíci

    Hi - I would love to see a video (if one doesn’t already exist) - on best practice when dealing with both new items and editing existing items. What’s the default property of the input controls? How do you toggle between showing the selected items’ value when editing and blank them when creating new records?

  • @ashleyhoff7561
    @ashleyhoff7561 Před 5 měsíci

    As a Power Apps Newbie, this is a great easy to follow video.
    I'm assuming that using patch will make using a SQL view for display and then using the underlying table to save easier?

  • @robertdeitrich6059
    @robertdeitrich6059 Před 2 měsíci

    I enjoyed the video very much and was able to successfully patch new records to my SP List. Still looking for one last piece that is going to seem strange at first glance. My SP List will have the same Barcode value listed multiple times as I don't want to overwrite the information from the previous update. The problem I'm having is finding a way for it to show me the latest record input when the barcode is scanned again. It continues to pull the original record. Is there a way to call up the current record on each subsequent scan? Thanks!

  • @donaldhersey
    @donaldhersey Před 3 měsíci +1

    1000 thanks - Shane scales up the capability kung fu perfectly here

  • @loveandhate441
    @loveandhate441 Před 5 měsíci

    Thanks !
    So, if I have a DropDown control (related to another SP list) in my form, I can't use SubmitForm, but Patch only ?
    Correct ?
    Or perhaps to use SubmitForm for populating MOST of the fields and THEN Patch to fill this ONE DropDown (related to another SP list).
    Feasible or not ?

  • @davidmachalsky7274
    @davidmachalsky7274 Před rokem

    Hello Shane, perfectly explained, thank you so much ;-) Patching an existing item with "Gallery.Selected" works fine, but is there an easy way to patch an existing item based on for example ID or Name? Thank you ;-)

  • @Alan-wt1vo
    @Alan-wt1vo Před rokem +1

    every time I use patch I always come back to your videos, this was great quick refresher - thanks. Is it possible to use patch to reset a value to a default one or null a value? say remove a date in a record to null?

    • @ShanesCows
      @ShanesCows  Před rokem

      This video explains it Alan 😎 czcams.com/video/VUk7krgitzw/video.html

    • @Alan-wt1vo
      @Alan-wt1vo Před rokem

      Thank you amazing video there is always a random setting to do something.

  • @jof_diesel3253
    @jof_diesel3253 Před 9 měsíci

    How would you patch to a different data source, though? In my case (after watching), I got everything set up and working. I added a "complete task" button with onselct to remove the item from my sharepoints list. I would like to add this removed item to a different sharepoints list to retain the completed items. How would I patch the item to the different sharepoints list using the same button I mentioned. I did try on my own, and I keep getting a "network error field title is required."

  • @MarcosVinicius-xp9vs
    @MarcosVinicius-xp9vs Před 4 měsíci +1

    Great video Shane, just a quick question.
    is it possible to put check boxes on the itens and update multiple itens with a singular information?
    like for an example i have a bunch of itens that are in a gallery and i want to update the arrive date for them, is it possible to set up patch to do all of them at once?

    • @ShanesCows
      @ShanesCows  Před 4 měsíci

      Yes. Power Apps Select Multiple Items in A Gallery
      czcams.com/video/wpZbYPvPO68/video.html

  • @franknielsen3219
    @franknielsen3219 Před rokem +1

    Nice recap 😊😊

  • @Rimawi-iq2ti
    @Rimawi-iq2ti Před rokem

    Hey Shane, Hope you are doing well, I have been trying to add a code to a Save Icon so that when selected it takes the form that I created to a different SharePoint List, but it has not been working ,I'm new to this Sharepoint powerapps area and Im just lost at this point Idk what function to go for i tried collect but was told it is wrong they told me to use patch function but i keep getting the record type issue

  • @user-ok8yr4qm2n
    @user-ok8yr4qm2n Před 8 měsíci

    Hi - great videos! Thank you. I had a question. I have a shopping cart type app (thanks to another one of your videos). The initial screen is a gallery populated from one datasource (catalog) that is a SP list. I want users to select an item and 'navigate' to the next screen that is the actual order form which is connected to another SP list (datasource is shopping cart). The two datasources share several fields and I am trying to get the item name and quantity fields to populate on the form from the gallery. I do also have a collection that grabs that data and I've tried to use that. Nothing has worked. I've ever gotten error messages that datasources don't match or just no error but nothing moves to the next screen. So I guess I am looking for info on how to move data collected in a gallery from one datasource and move it to a form using another datasource. I hope that makes sense.

  • @kristoferneilesparrago8361
    @kristoferneilesparrago8361 Před 2 měsíci +1

    Thanks for this helpful video Shane! I just have a question. Is it possible for PowerApps to record different time stamps based on user editing the form? I have a Productivity App which records the Start and End time; however, I also need to catch the time the user goes back to that record to edit and record the time they spent on editing that record which can happen multiple times.

    • @ShanesCows
      @ShanesCows  Před 2 měsíci

      Check out this video. czcams.com/video/tNKcsuL72ks/video.html I think it should get you going. :)

  • @jimmylichtenstein4323
    @jimmylichtenstein4323 Před 7 měsíci +1

    Shane this is a great training and very easy to follow. I am hoping you have another one that addresses what I am trying to do but can't find. I am using the standard form templates and need the ability to effectively load a record, edit it and save as a new one. I can't seem to figure out how to do that. Do you have any suggestions? Thank you in advance.

  • @alexloiselle7720
    @alexloiselle7720 Před 9 měsíci

    Could you explain how to add a line to patch something that is a drop down/searchable box? For example, I have a drop down box with the option to search for your supervisor name and have it linked to Office 365 data. How can I get this to patch and add the data entry into the Sharepoint list? Thank you

  • @CptQuinnElle
    @CptQuinnElle Před rokem

    How would you patch a pen input when submitting a form into a SharePoint list? And then be able to pull that peninput from the list into an email or pdf?

  • @sininv1
    @sininv1 Před 4 měsíci +1

    hi Shane, this is a great explanation for Patch, can I know where to view the var formula that you mentioned? Thank you

    • @ShanesCows
      @ShanesCows  Před 4 měsíci

      Can you tell me when in the video I mentioned it and I will get you an answer.

  • @imax8307
    @imax8307 Před 8 měsíci

    Patch is great to use but how do you handle the equivalent of the Forms 'On Success' & 'On Failure'?

  • @addalex_nextlevels
    @addalex_nextlevels Před rokem +2

    Hi Shane, How about if we want to use both for adding new records and editing abilities at once?

    • @ShanesCows
      @ShanesCows  Před rokem

      Yes, possible as long as you can create the info.

  • @franknielsen3219
    @franknielsen3219 Před rokem +1

    Just a quick question. I had to do a patch to a SharePoint OnPrem list throug a gateway. Text, and date columns worked just fine, but choice and lookup columns just blowed up. I tried build the 100% same patch on my own SP Online envirorment, and everything went smooth. Have you tried something similar? Ended up using a form to avoid the errors.

    • @ShanesCows
      @ShanesCows  Před rokem

      Frank that makes zero sense to me :( It shouldn't be different.

  • @mahmoudhosny5779
    @mahmoudhosny5779 Před rokem +1

    thank you ,
    is that the same when using form to modify sharepoint list from gallery

    • @ShanesCows
      @ShanesCows  Před rokem

      Forms are different but you can use them :)

  • @martinc3907
    @martinc3907 Před rokem

    Good video. In terms of patching a SQL data source. How do you handle SQL table primary keys which are auto numbers when creating a new record? Also, the not null fields, I guess they could be given a default value when creating a new record.

    • @bartleymollohan1090
      @bartleymollohan1090 Před 9 měsíci +1

      I do not patch when using SQL. I make sure my SQL data table has a primary key. Then I use the new app function, use SQL and then let it automatically create a three screen app.
      I do however use patch with SQL data if I am creating adding an editable table to the app I just created.

    • @martinc3907
      @martinc3907 Před 9 měsíci

      Thanks for the response I've learnt so much since I posted that. I've since learnt how to patch, and it is now straight forward for me.
      One problem I'm having though is that one table is not patching because the user does not have permission to add a new row to a table. It is only one table, and the other tables are fine. Using the set var for a common person identifier across tables and for this reason Power Apps treated it as a handled error with no warning that one table was not getting patched. I used Shane's example code to get Power Apps to show the handled network error.
      So now I'm working out how to ensure users have the necessary permissions to tables so that this does not happen.
      @@bartleymollohan1090

  • @milidottori4057
    @milidottori4057 Před rokem +1

    Great video Shane! I'm having problems patching a SharePoint combobox, do you have any advice for me?? thank you!

    • @ShanesCows
      @ShanesCows  Před rokem +1

      I have a whole video on the "hard columns" czcams.com/video/b4Fb57UsJLI/video.html 😎

    • @milidottori4057
      @milidottori4057 Před rokem

      @@ShanesCows you’re awesome ✨

  • @Saif_Ali_Khan_1301
    @Saif_Ali_Khan_1301 Před rokem +2

    Hey Shane, do you have any video on containers and it uses? we do create responsive apps without containers right, nowadays every now and then in youtube people are adding containers in powerapps, there are 3 types of it, why should we use? what is the exact use of it

    • @ShanesCows
      @ShanesCows  Před rokem +1

      This is one of my favorites. Shows how to use Containers instead of Groups. czcams.com/video/BL7a5PmgZoc/video.html

    • @Saif_Ali_Khan_1301
      @Saif_Ali_Khan_1301 Před rokem

      @@ShanesCows Thank you so much #Shane 😍

  • @TessAlmond
    @TessAlmond Před rokem

    This is helpful, but didn't work for my current situation. OnSelect I want Status field to update, based on what was selected in a dropdown box. so basically If ddAppRej = Approve then update Status to Submitted for Processing and if ddAppRej = Reject then update Status to Rejected. And also, patch the Notes field data into the record. I could probably figure it out, but if you have another video to direct me that would help, please let me know.

  • @Ali-gi3cf
    @Ali-gi3cf Před měsícem +1

    13:24 I wonder if it's still possible to update the records in the gallery, when using Collect function rather than Patch function? Collect function doesn't have a field to allow us to type "Defaults(Employees)" like there's in the Patch function. That's why I find it a little bit tricky to determine where and how to use it.

    • @ShanesCows
      @ShanesCows  Před měsícem +1

      You can Patch a collection. :) Collect does not update existing records, only adds new ones.

  • @stefanloots9630
    @stefanloots9630 Před rokem +1

    Great Video Thanks, How do i patch an image (upload) to a image column in sharepoint.

    • @ShanesCows
      @ShanesCows  Před rokem

      I haven't tried that one. I usually upload the image to a doc library instead czcams.com/video/3QaiM8SeWfM/video.html

  • @user-iw8fm5fm2s
    @user-iw8fm5fm2s Před 10 měsíci +1

    Thanks for the video, how to use a function with more than 100 characters of text

    • @ShanesCows
      @ShanesCows  Před 10 měsíci

      The amount of text is dependent on the column you are saving to. A dataverse text column defaults to 100. You can edit your table and increase it.

  • @user-fi3rz3yx2y
    @user-fi3rz3yx2y Před rokem +3

    can you do a class on how to pull all records from a collection via html to print to PDF?

    • @ShanesCows
      @ShanesCows  Před rokem

      czcams.com/video/bfXV_GXc_JM/video.html should be exactly that.

  • @jeanpaulmathieu8019
    @jeanpaulmathieu8019 Před 5 měsíci

    Hi Shane, I'm trying to patch 3 columns, they all have links, I did this but it only patches the first one, any idea on how to get all 3 patched? Thanks!!!
    Patch('SP List',
    Defaults('SP LIST'),
    {'Title': DataCardValue18.Text,
    'Column 1': RichTextEditor2.HtmlText,
    'Column 2':DataCardValue31.HtmlText,
    'Column 3':RichTextEditor1.HtmlText}
    )

  • @Kaybelo_
    @Kaybelo_ Před 9 měsíci +1

    Hi Shane, i'm working on an app for practice purposes and i used a patch to submit a form and I tried to use the OnSuccess property to send an email notification but it doesn't work. Could you please give out pointers on how to go about!?

    • @ShanesCows
      @ShanesCows  Před 9 měsíci

      If you Patch from a form you are not submitting the form so OnSuccess will not trigger. You would need to add the Send Email after the Patch.
      Patch(....);
      SendEmailv2(...)
      Something like that.

  • @1012piyush
    @1012piyush Před 11 měsíci +1

    Hi Shane, Really nice video, thank you!! I want to upload image from power apps to my sharepoint column Image and view it as well in power apps, how can i do that? Thanks in advance.

    • @ShanesCows
      @ShanesCows  Před 11 měsíci

      I don't have a video on that yet, it wasn't easy the first time I looked but I do plan to revisit it.

  • @lijunchen
    @lijunchen Před 9 měsíci +1

    Very informative video! One question though. How was the "employee" Sharepoint list created? I tried to create an employee directory list from the Office 365 Users connector, but with no success. Can you advice whether this can be done? Thanks.

    • @ShanesCows
      @ShanesCows  Před 9 měsíci +1

      I built the Employee list in SharePoint starting with a blank list and adding rows and columns. I am not pulling it from AD directly. You could fetch that info but I don't have a video on that.

    • @lijunchen
      @lijunchen Před 9 měsíci

      It will be very welcome if you can do one on creating a Sharepoint staff list from the Office 365 user directory and a Power app on that too. So far I have not seen any informative video on that yet. There are man uses for such apps.

  • @princekatyal7008
    @princekatyal7008 Před 2 měsíci +1

    Hi @Shane, I need your help. im trying to edit the previous record in powerapps and save it as a new record in a dataverse table..:: how caj I do it??

    • @ShanesCows
      @ShanesCows  Před 2 měsíci

      I have a video that talks about Copying an Item like that :) czcams.com/video/mbKovagC7As/video.html

  • @hdrider2319
    @hdrider2319 Před rokem

    How do you "De-Select" and item slected in a gallery?

  • @cbtjoe
    @cbtjoe Před 11 měsíci +1

    What happens to the bennefits of using the OnSuccess of a Form upon submitting it? How do we accomplish those results with just Patch?

    • @ShanesCows
      @ShanesCows  Před 10 měsíci +1

      Set(varRecord, Patch(…)) now varRecord has the output of the patch aka the LastSubmit. 😎 Maybe I will do a new video on just that.

  • @MichaelDeBlasis1369
    @MichaelDeBlasis1369 Před 2 měsíci +1

    Is it good practice to add a timer when patching a text input? I have a text input with the patch set on the "onchange" Property and its of course trying to patch after each character is typed. How annoying. hehe. My research has led me to the timer solution but I was curious if you agreed or not.

    • @ShanesCows
      @ShanesCows  Před 2 měsíci

      YOu could do that. Typically I don't like to Patch OnChange for the exact Chaos you mention. Setting DelayOutput to true will help but I would make the users click Save, if not you are just asking for trouble. :)
      If you do stick with OnChange then include a loading spinner czcams.com/video/UWy5I_MuIgU/video.html so they can't make any changes until the first one saves.

    • @MichaelDeBlasis1369
      @MichaelDeBlasis1369 Před 2 měsíci +1

      I went with your advice and set all patch statements to one button. Then I added a nice little spinner to watch while it runs and set the image to go invisible when its not running. Thanks a bunch!@@ShanesCows

    • @ShanesCows
      @ShanesCows  Před 2 měsíci

      @@MichaelDeBlasis1369 Awesome. While your users don't think it is ideal, it will make the app most stable and performant, which they do actually care for. 🤩🤩

    • @MichaelDeBlasis1369
      @MichaelDeBlasis1369 Před 2 měsíci

      I would love to also add a way to track changes and make the save button a different color when changes are detected. As well as notify the users when they don't save data and attempt to navigate away. And I WILL figure it out somehow. haha. THats my self handed project this week. Try and make that a reality because it just seems cool to do.

  • @vidalrick75
    @vidalrick75 Před 3 měsíci +1

    @ShaneCows thank you so much for all the videos, you help us so much with all of them. I do have a very basic (probably stupid) question that every time I'm creating something in Power Apps I struggle to understand the diference. In the very beginning of your Patch formula explanation you add the record Title and then you added First Name. Why First Name is in between single quotes and Title is not? And when it comes to Age again no single quotes... it's confusing for a young padawan like me 😞

    • @ShanesCows
      @ShanesCows  Před 3 měsíci +1

      If the field name you are using has a space you need the quotes. SO:
      Title
      'Title with a space'
      FirstNameNoSpace
      'First name with spaces'
      That is it. :)

    • @vidalrick75
      @vidalrick75 Před 3 měsíci +1

      @@ShanesCows ok I feel even more stupid now seeing how clear this is... but an informed stupid 🤣🤣🤣. Thanks again!!

    • @ShanesCows
      @ShanesCows  Před 3 měsíci +1

      Nah better to ask then wasting braincells @@vidalrick75

  • @vedvoyager
    @vedvoyager Před rokem +1

    Nice one... But how to proceed about the onsucess events?

    • @ShanesCows
      @ShanesCows  Před rokem

      Patch(logichere);Whatever you want to do when the Patch is done. 😎
      Bonus:
      Set(varRecord, Patch(LogicHere))
      That would do the Patch and save the record to the variable varRecord. That would be the same as Form.LastSubmit

  • @full-metal_jacob5858
    @full-metal_jacob5858 Před 10 měsíci +1

    Can you use patch with a dropdown?

    • @ShanesCows
      @ShanesCows  Před 10 měsíci

      Yes. I show it in this video where I talk about complex SharePoint columns. czcams.com/video/b4Fb57UsJLI/video.html

  • @ABCD-ABCDEFGH
    @ABCD-ABCDEFGH Před 8 měsíci +1

    How do you patch multiple people picker fields.

    • @ShanesCows
      @ShanesCows  Před 8 měsíci

      The same way you patch multi select choice columns but using the record style I showed for a single person.

    • @ABCD-ABCDEFGH
      @ABCD-ABCDEFGH Před 8 měsíci

      It’s not multi choice people picker it is 3 people picker with different values. I ran in to issue of having the first one being patched only all the time.

  • @antoniobranderas
    @antoniobranderas Před 10 měsíci +1

    Great video, but patching I’m not patching 33 fields.

    • @ShanesCows
      @ShanesCows  Před 10 měsíci

      Sometimes you have to pick your battles :) If forms work then 👍 lets do that :)

  • @club-crm1080
    @club-crm1080 Před rokem +1

    Excellent video (as usual from SY...) but the REAL problem is that now (June 2023) all your excellent and useful videos on "How to Patch Complex columns" DOES NOT WORK ANYMORE!!! Could you plead help us with the new sintax?...please...

    • @ShanesCows
      @ShanesCows  Před rokem

      Did you see the new version of the Patch complex column video I put out? czcams.com/video/b4Fb57UsJLI/video.html Everything there works best I know.

    • @club-crm1080
      @club-crm1080 Před rokem

      ​@@ShanesCowsNo, I didn't, but I did after your reply: It was exactly what I needed and it helped me solving my problem. Thank you, Shane: it is not by accident that you are "the Rockstar of Power Apps"!!! By the way my mistake was that I was working within a solution, but I did not put my data source (A Dataverse table) inside the same solution, as so0n as I imported the data source I was able to replicate your exercises. "Thank you and have a nice day!!

  • @piachakravortty1
    @piachakravortty1 Před 5 měsíci +1

    Instead of referencing each columns in patch how can I only reference few columns?

    • @ShanesCows
      @ShanesCows  Před 5 měsíci

      You only have to reference the required columns all of the other are optional.

    • @piachakravortty1
      @piachakravortty1 Před 5 měsíci

      Sorry my question was not clear. I have one text input box that populates data(say parameter) from a table based on unique id selected by user. Then based on each parameter that got populated on the screen, user will input value for each parameter. Now each parameter is column name of the output table I want to load data. So I have to put condition like if parameter populated on screen = column name on table then patch the parameter value entered.

  • @nicholsodes3621
    @nicholsodes3621 Před 11 měsíci

    Hi Shane, do you need to do something different, if your data source is an excel table, as opposed to a sharepoint list? I have been trying to replicate your formula for my excel table data source, but keep getting the error icon. Thank you
    Patch(
    NamingConventionTable3,
    Gallery1.Selected,
    {Status:"Test"}
    )

    • @ShanesCows
      @ShanesCows  Před 11 měsíci

      That looks correct to me. The Items for your Gallery1 is NamingConventionTable3? There is a column named Status with a type of Text?

    • @nicholsodes3621
      @nicholsodes3621 Před 11 měsíci

      @@ShanesCows yes, both of those are correct and i am entering this value in to the OnSelect property of my button.

  • @dawnpeacock9548
    @dawnpeacock9548 Před 11 měsíci

    Can I patch from one list to another? I have a "parent" list with requests and a "child" list with comments with "title" as the key field. In a screen, I have a gallery that pulls an edit form from the "parent" and an edit (mode of new) for the "child" so a comment can be added. I can "form submit" the new comment, but I'd like to find a way to take some data from the "parent" to update the "child" so I can send an email to the person that created the "parent" item with the comment that someone puts in the "child" one. If you can understand what I just said, you win "Dawn translator of the year" :D Sometimes us low-coders get in a little over our heads!

  • @MerkDolf
    @MerkDolf Před rokem +1

    😅 👌👍

  • @user-dl8bb6dk1u
    @user-dl8bb6dk1u Před rokem +1

    Hi Shane, thank you for video, will you consider to make one for Parse JSON function in PowerApps 🙏🏼🫶🏻

    • @ShanesCows
      @ShanesCows  Před rokem +1

      I will put it on my list now that it is Preview. :)

  • @TYS22
    @TYS22 Před rokem +1

    Hi Shane, thank you for the video. I am trying to patch a collection into a dataverse table based on the matching lookup column from the table and a column in the collection. This is not working properly. Anything am doing wrong? Thank you.

    • @ShanesCows
      @ShanesCows  Před rokem

      Did you see this video? PowerApps Dataverse Lookup columns and Relationships - Create, Edit, View
      czcams.com/video/BPkv7S11Zp8/video.html