Save Multiple Records with a single click in Microsoft Power Apps

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 42

  • @windy1658
    @windy1658 День тому

    Thank you very much. Does it work on Model-driven app as well?

  • @hereskieu1
    @hereskieu1 Рік тому +1

    Thank you for a great video! I have a question: How do you reset all field to blank after you submit the form without deleting them from collection? Thank you!

  • @ryanbond7144
    @ryanbond7144 4 роки тому +1

    Thanks, really good. Obviously we could add some data validation too. Nice and clean and fast.

    • @ChinoDoesStuff
      @ChinoDoesStuff  4 роки тому

      Hey Ryan.. glad you liked the video! And yes you are right, some validation in there pretty much would compete the solution :)

  • @MrSparkefrostie
    @MrSparkefrostie Рік тому

    All super happy, this will help, only one thing, there are a few fields I need to update, is there no better visual than text boxes, like an excel grid?

    • @ChinoDoesStuff
      @ChinoDoesStuff  Рік тому

      Something like this perhaps? ua-cam.com/video/Y5G5p84mD84/v-deo.html

    • @MrSparkefrostie
      @MrSparkefrostie Рік тому +1

      @@ChinoDoesStuff pretty much exactly what I needed, will see if I can add them to a collectiom and patch the collection, else I may get many blank rows if the user gets distracted (i will be addinfmg logic that it only show ñs recirds that user modified and do a somehow recent (likely the need for the collect) but the inspiration is there

  • @bellam2413
    @bellam2413 2 роки тому +1

    Hi! thank you for this video. Can I use this approach to Update a record that's already in the SharePoint list?

    • @ChinoDoesStuff
      @ChinoDoesStuff  2 роки тому

      Yes you should be able to loop through records in the same way.

  • @mustafahussainmohsin320
    @mustafahussainmohsin320 2 роки тому +1

    HI, Thanks for the video, will the saving process work exactly for SharePoint too???

    • @ChinoDoesStuff
      @ChinoDoesStuff  2 роки тому +1

      Yes it will

    • @christinesmith3744
      @christinesmith3744 2 роки тому

      @@ChinoDoesStuff How can one do this ? I am struggling to figure out how to do this for Sharepoint.

  • @AdiCristea
    @AdiCristea 4 роки тому +2

    One thing to mention is that for the first two records, because there was no change, nothing was submitted on Genre, so for dropdowns a different approach is required, especially due to the "Select..." value too (resetting the control wouldn't work as it would reset the others too).

    • @ChinoDoesStuff
      @ChinoDoesStuff  4 роки тому +1

      Hey Adi.. Yes I noticed that while I was filming the video but glazed over it as I thought nobody would really pick up on what I did and just fix it in their own app :)... You are completely correct you do need to implement a little bit of extra code to get the drop down field 'Genre' (or any drop down field) to work correctly. In this instance, on the Default property of Genre the following code should fix the issue - 'If(IsBlank(ThisItem.crd96_genre),"Select...",ThisItem.crd96_genre)'

    • @AdiCristea
      @AdiCristea 4 роки тому +2

      @@ChinoDoesStuff Exactly, now your viewers have all they need to start patching records in one go, great video!

  • @area_2111
    @area_2111 3 роки тому +2

    Great Tutorial. I have two questions hope you can advise :)
    1. How to make it auto populate to other column once we pick from the drop down list? for example once pick item from column A then automatic populate defined data on Column B and C?
    2. I'm on processing to create monthly timesheet, Can you advise once select month and relate to the date on the label?

    • @ChinoDoesStuff
      @ChinoDoesStuff  3 роки тому

      Sorry for taking so long to get back to you..did you get this working?

    • @area_2111
      @area_2111 3 роки тому

      @@ChinoDoesStuff Not yet

  • @magnusjeppesen
    @magnusjeppesen 3 роки тому +1

    Great video! :D
    But missing the relaxed music I'm used to on this channel ;)

  • @doublexl83
    @doublexl83 Рік тому

    This was a great video!
    I have a couple questions.
    1-The Patch command clears out the TextInput once it is clicked out. The values are still being collected, but they are not visible in the TextInput. I tried adding the default value to ThisItem.fieldname but it causes a delay when trying to go to the next field. It didn't look like you had this issue in your video. any suggestions?
    2- a few of the fields have a default value that I don't want visible. Because the default value doesn't cause a change, the data isn't being Patched. Is there a way that I can still have that patch?

  • @marcelomachado254
    @marcelomachado254 2 роки тому +2

    Hi. Thanks for the video.
    I got stuck in a problem with the save button.
    As the example you show, I also have a date field, that in the Sharepoint List is set as a Date/Time (only date).
    I setted On Change = Patch( DataInput; ThisItem; {dt_impact : dtpicker_impact.SelectedDate})
    I also tried = Patch( DataInput; ThisItem; {dt_impact : DateValue(dtpicker_impact.SelectedDate)})
    But save button has the error like:
    The type of this argument does not match the expected type. The expected type is Date and you are using text.
    Could you help??

    • @ChinoDoesStuff
      @ChinoDoesStuff  2 роки тому +1

      Remove the DateValue() function. :)

    • @marcelomachado254
      @marcelomachado254 2 роки тому +1

      @@ChinoDoesStuff
      My first try there was no DateValue()

    • @rkaji81
      @rkaji81 2 роки тому

      @@marcelomachado254 Did you manage to solve it?

  • @basehumax
    @basehumax 2 роки тому

    Hi Chino, Is it possible on clicking plus button not to copy previous data when adding multi lines?

  • @octobrain23232
    @octobrain23232 Рік тому

    On the Save button portion of the code (the last section) my application is erroring out saying:
    'The specified column 'crfde_PartDescription' does not exist. The column with the most similar name is 'Part Description'.'
    However, when I try using the 'human readable' name of the field with 'Part Description' (that is what the error suggests) it also doesn't work.

  • @jakeg9711
    @jakeg9711 3 роки тому

    New to PowerApps, stuck on the ClearCollect at the start :(
    I have a dropdown in my DS and I think this might be throwing the error if you could point me in the right direction!
    Just subbed, videos really helpful for someone starting out :)

    • @ChinoDoesStuff
      @ChinoDoesStuff  3 роки тому

      Hey Jake.. Did you work out how to get the ClearCollect working?

    • @jakeg9711
      @jakeg9711 3 роки тому

      @@ChinoDoesStuff nope! The error I'm getting is that the drop down column I am trying to use is of an incompatible type.

    • @ChinoDoesStuff
      @ChinoDoesStuff  3 роки тому

      What's your data source and what is the column type?

    • @jakeg9711
      @jakeg9711 3 роки тому

      @@ChinoDoesStuff It is set up as a dropdown, have tried googling to try and convert it in the code but unsure how!

  • @bobbyw1074
    @bobbyw1074 Рік тому

    If I have new records and updated records in the collection can I still use the collect collection to the datasource? What would the syntax be?

    • @ChinoDoesStuff
      @ChinoDoesStuff  Рік тому

      You definitely need to handle updating exisiting records and adding new records to a collection / data connection differently.

  • @kanwalsaini9717
    @kanwalsaini9717 3 роки тому

    Hi , we can create multiple new records in sharepoint also? I have user requirement where user wants to create more than 1 record using single click of button in powerapps.

    • @ChinoDoesStuff
      @ChinoDoesStuff  3 роки тому

      Yes should work for saving to SharePoint.lists.

    • @kanwalsaini9717
      @kanwalsaini9717 3 роки тому +1

      @@ChinoDoesStuff okk. Is there any other way of creating multiple records into sp list. I tried using for all and patch but it creates duplicate copies of same record in my list .

  • @Celebrityfashion69
    @Celebrityfashion69 2 роки тому

    How to proceed with the collections , when there is a lookup field in sharepoint list?

    • @ChinoDoesStuff
      @ChinoDoesStuff  2 роки тому

      Lookup fields in your output list can complicate things.. Did you get this working?

  • @Celebrityfashion69
    @Celebrityfashion69 2 роки тому

    it is not working on update , what if i want to update the same record ?

    • @ChinoDoesStuff
      @ChinoDoesStuff  2 роки тому

      Similar...but slightly different method.. Hopefully you worked this out.. The clue is using ForAll() function.