Saving Power Apps Data with the Patch Function

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 152

  • @chrisbunting5437
    @chrisbunting5437 5 месяцев назад +2

    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.

  • @upgradeaerialphotos
    @upgradeaerialphotos Год назад +5

    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  Год назад

      How about this one Dave? 😎 ruclips.net/video/Ap3_Ea9H8b0/видео.html

    • @upgradeaerialphotos
      @upgradeaerialphotos Год назад

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

  • @smartwatchicon
    @smartwatchicon Год назад +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.

  • @marieraymond6512
    @marieraymond6512 Год назад +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!!!!

  • @Speeds6080
    @Speeds6080 4 месяца назад +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  4 месяца назад +1

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

  • @mikatapio7375
    @mikatapio7375 Год назад +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  Год назад +1

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

  • @lxz86
    @lxz86 Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад

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

  • @dougydoe
    @dougydoe Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад

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

  • @LatinoTropico
    @LatinoTropico 2 месяца назад +1

    Hi Shane. If using SQL Server for this demo, just a reminder that the table in the database has to have a Primary Key which has Identity turned ON, for the button to work adding a new record.

    • @ShanesCows
      @ShanesCows  2 месяца назад +1

      Great point! Thanks for the reminder. It has been a long time since I did a SQL video... maybe that should change. 😎

  • @joaomanoel1486
    @joaomanoel1486 Год назад +1

    Always helping me with something. Thank you Shane!

  • @oluwatobipaul6171
    @oluwatobipaul6171 Год назад +1

    thank you Shane for this refresher video.

  • @simonball5602
    @simonball5602 Год назад

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

  • @s961201
    @s961201 9 месяцев назад

    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?

  • @hellopsp180
    @hellopsp180 4 месяца назад +1

    The .Text bit was all i needed :)

    • @ShanesCows
      @ShanesCows  4 месяца назад

      Awesomeness, glad it helped

  • @mathiashaaland-jensen213
    @mathiashaaland-jensen213 11 месяцев назад

    Great video that really helped me with the Patch function!

  • @jeanpierreragequit1726
    @jeanpierreragequit1726 Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад +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 Год назад

      @@ShanesCows exactly !

  • @Dude276175
    @Dude276175 8 месяцев назад +1

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

    • @ShanesCows
      @ShanesCows  8 месяцев назад

      Nobody likes forms 😹

  • @sininv1
    @sininv1 7 месяцев назад +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  7 месяцев назад

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

  • @jimmylichtenstein4323
    @jimmylichtenstein4323 10 месяцев назад +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.

    • @ShanesCows
      @ShanesCows  10 месяцев назад

      Jimmy like this? ruclips.net/video/_LbteL8oi5I/видео.html

    • @jimmylichtenstein4323
      @jimmylichtenstein4323 10 месяцев назад

      Thank you@@ShanesCows

  • @calebessilva
    @calebessilva Год назад

    Amazing video. Thanks for sharing!

  • @paolovr1970
    @paolovr1970 Год назад +1

    Thanks Shane 🙏🙏🙏

    • @ShanesCows
      @ShanesCows  Год назад

      You are welcome. Patch is Perfect! 😁

  • @JustinLynch80
    @JustinLynch80 Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад +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.

  • @MarcosVinicius-xp9vs
    @MarcosVinicius-xp9vs 7 месяцев назад +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  7 месяцев назад

      Yes. Power Apps Select Multiple Items in A Gallery
      ruclips.net/video/wpZbYPvPO68/видео.html

  • @kristoferneilesparrago8361
    @kristoferneilesparrago8361 6 месяцев назад +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  6 месяцев назад

      Check out this video. ruclips.net/video/tNKcsuL72ks/видео.html I think it should get you going. :)

  • @tonyshams
    @tonyshams 9 месяцев назад +1

    Thanks, Shane!

  • @Alan-wt1vo
    @Alan-wt1vo Год назад +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  Год назад

      This video explains it Alan 😎 ruclips.net/video/VUk7krgitzw/видео.html

    • @Alan-wt1vo
      @Alan-wt1vo Год назад

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

  • @sudhirsimson3340
    @sudhirsimson3340 Год назад

    Thank you for sharing the Best Practices. Appreciate it.

    • @sudhirsimson3340
      @sudhirsimson3340 Год назад +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  Год назад

      My pleasure!

    • @ShanesCows
      @ShanesCows  Год назад +1

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

    • @sudhirsimson3340
      @sudhirsimson3340 Год назад

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

  • @ashleyhoff7561
    @ashleyhoff7561 8 месяцев назад

    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?

  • @HrErik1
    @HrErik1 5 месяцев назад

    Thank you so much. This is great!

  • @donaldhersey
    @donaldhersey 7 месяцев назад +1

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

    • @ShanesCows
      @ShanesCows  7 месяцев назад

      Awesome! Glad to help

  • @milidottori4057
    @milidottori4057 Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад +1

      I have a whole video on the "hard columns" ruclips.net/video/b4Fb57UsJLI/видео.html 😎

    • @milidottori4057
      @milidottori4057 Год назад

      @@ShanesCows you’re awesome ✨

  • @robertdeitrich6059
    @robertdeitrich6059 5 месяцев назад

    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!

  • @imax8307
    @imax8307 11 месяцев назад

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

  • @stefanloots9630
    @stefanloots9630 Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад

      I haven't tried that one. I usually upload the image to a doc library instead ruclips.net/video/3QaiM8SeWfM/видео.html

  • @1012piyush
    @1012piyush Год назад +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  Год назад

      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.

  • @franknielsen3219
    @franknielsen3219 Год назад +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  Год назад

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

  • @Kaybelo_
    @Kaybelo_ Год назад +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  Год назад

      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.

  • @lijunchen
    @lijunchen Год назад +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  Год назад +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 Год назад

      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.

  • @Saif_Ali_Khan_1301
    @Saif_Ali_Khan_1301 Год назад +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  Год назад +1

      This is one of my favorites. Shows how to use Containers instead of Groups. ruclips.net/video/BL7a5PmgZoc/видео.html

    • @Saif_Ali_Khan_1301
      @Saif_Ali_Khan_1301 Год назад

      @@ShanesCows Thank you so much #Shane 😍

  • @TYS22
    @TYS22 Год назад +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  Год назад

      Did you see this video? PowerApps Dataverse Lookup columns and Relationships - Create, Edit, View
      ruclips.net/video/BPkv7S11Zp8/видео.html

  • @addalex_nextlevels
    @addalex_nextlevels Год назад +2

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

    • @ShanesCows
      @ShanesCows  Год назад

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

  • @KevinSeaton-o7i
    @KevinSeaton-o7i Год назад +3

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

    • @ShanesCows
      @ShanesCows  Год назад

      ruclips.net/video/bfXV_GXc_JM/видео.html should be exactly that.

  • @loveandhate441
    @loveandhate441 9 месяцев назад

    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 ?

  • @martinwhite2369
    @martinwhite2369 Год назад

    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?

  • @jof_diesel3253
    @jof_diesel3253 Год назад

    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."

  • @SamanthaDAlessio-o4d
    @SamanthaDAlessio-o4d 11 месяцев назад

    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.

  • @mahmoudhosny5779
    @mahmoudhosny5779 Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад

      Forms are different but you can use them :)

  • @franknielsen3219
    @franknielsen3219 Год назад +1

    Nice recap 😊😊

  • @alexloiselle7720
    @alexloiselle7720 Год назад

    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

  • @princekatyal7008
    @princekatyal7008 5 месяцев назад +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  5 месяцев назад

      I have a video that talks about Copying an Item like that :) ruclips.net/video/mbKovagC7As/видео.html

  • @משהמעין-ח2ד
    @משהמעין-ח2ד Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад

      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.

  • @MichaelDeBlasis1369
    @MichaelDeBlasis1369 5 месяцев назад +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  5 месяцев назад

      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 ruclips.net/video/UWy5I_MuIgU/видео.html so they can't make any changes until the first one saves.

    • @MichaelDeBlasis1369
      @MichaelDeBlasis1369 5 месяцев назад +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  5 месяцев назад

      @@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 5 месяцев назад

      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.

  • @Ali-gi3cf
    @Ali-gi3cf 4 месяца назад +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  4 месяца назад +1

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

  • @DanielWeikert
    @DanielWeikert Год назад

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

  • @vidalrick75
    @vidalrick75 7 месяцев назад +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  6 месяцев назад +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 6 месяцев назад +1

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

    • @ShanesCows
      @ShanesCows  6 месяцев назад +1

      Nah better to ask then wasting braincells @@vidalrick75

  • @vedvoyager
    @vedvoyager Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад

      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

  • @davidmachalsky7274
    @davidmachalsky7274 Год назад

    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 ;-)

  • @jeanpaulmathieu8019
    @jeanpaulmathieu8019 9 месяцев назад

    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}
    )

  • @cbtjoe
    @cbtjoe Год назад +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  Год назад +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.

  • @club-crm1080
    @club-crm1080 Год назад +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  Год назад

      Did you see the new version of the Patch complex column video I put out? ruclips.net/video/b4Fb57UsJLI/видео.html Everything there works best I know.

    • @club-crm1080
      @club-crm1080 Год назад

      ​@@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!!

  • @dpbartel
    @dpbartel Год назад

    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?

  • @joepark8872
    @joepark8872 Месяц назад +1

    I am trying to do a very simple patch for a new item, and I keep getting "Network error when using the patch function. The requested operation is invalid." All I trying to do is patch text to a text column.

    • @ShanesCows
      @ShanesCows  Месяц назад

      What is your formula?

    • @joepark8872
      @joepark8872 Месяц назад +1

      @@ShanesCows Something so mind-boggling simple: Patch('Master Library',Defaults('Master Library'),{Title: "Dissemination"})

    • @ShanesCows
      @ShanesCows  Месяц назад

      @@joepark8872 That looks correct. Hmmm. Any other required fields? Do you have permissions? That should be good.

    • @joepark8872
      @joepark8872 Месяц назад

      @@ShanesCows I even switched to SubmitForm(FormName) and got the same error.

  • @martinc3907
    @martinc3907 Год назад

    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 Год назад +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 Год назад

      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

  • @antoniobranderas
    @antoniobranderas Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад

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

  • @Rimawi-iq2ti
    @Rimawi-iq2ti Год назад

    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

  • @CptQuinnElle
    @CptQuinnElle Год назад

    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?

  • @full-metal_jacob5858
    @full-metal_jacob5858 Год назад +1

    Can you use patch with a dropdown?

    • @ShanesCows
      @ShanesCows  Год назад

      Yes. I show it in this video where I talk about complex SharePoint columns. ruclips.net/video/b4Fb57UsJLI/видео.html

  • @TessAlmond
    @TessAlmond Год назад

    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.

  • @piachakravortty1
    @piachakravortty1 8 месяцев назад +1

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

    • @ShanesCows
      @ShanesCows  8 месяцев назад

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

    • @piachakravortty1
      @piachakravortty1 8 месяцев назад

      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.

  • @ABCD-ABCDEFGH
    @ABCD-ABCDEFGH 11 месяцев назад +1

    How do you patch multiple people picker fields.

    • @ShanesCows
      @ShanesCows  11 месяцев назад

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

    • @ABCD-ABCDEFGH
      @ABCD-ABCDEFGH 11 месяцев назад

      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.

  • @hdrider2319
    @hdrider2319 Год назад

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

  • @dawnpeacock9548
    @dawnpeacock9548 Год назад

    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 Год назад +1

    😅 👌👍

  • @nicholsodes3621
    @nicholsodes3621 Год назад

    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  Год назад

      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 Год назад

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

  • @ilonkaepelman
    @ilonkaepelman Год назад +1

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

    • @ShanesCows
      @ShanesCows  Год назад +1

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