Save Multiple Records with a single click in Microsoft Power Apps

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

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

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

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

  • @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? ruclips.net/video/Y5G5p84mD84/видео.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

  • @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.

  • @bellam2413
    @bellam2413 3 года назад +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  3 года назад

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

  • @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

  • @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.

  • @marcelomachado254
    @marcelomachado254 3 года назад +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  3 года назад +1

      Remove the DateValue() function. :)

    • @marcelomachado254
      @marcelomachado254 3 года назад +1

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

    • @rkaji81
      @rkaji81 2 года назад

      @@marcelomachado254 Did you manage to solve it?

  • @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 :)

  • @DjOyda-i9u
    @DjOyda-i9u 23 дня назад

    Do this still state collections now adays?

  • @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.

  • @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?

  • @magnusjeppesen
    @magnusjeppesen 4 года назад +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?

  • @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 .

  • @jakeg9711
    @jakeg9711 4 года назад

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

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

    • @jakeg9711
      @jakeg9711 4 года назад

      @@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  4 года назад

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

    • @jakeg9711
      @jakeg9711 4 года назад

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

  • @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.