Patch Dataverse Columns with Power Apps

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 63

  • @sangrampradhan8349
    @sangrampradhan8349 Před 22 dny +1

    You are a life saver.

    • @ShanesCows
      @ShanesCows  Před 21 dnem

      Happy to help. Have a great day. 🐶

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

    Thanks, Shane, it's very useful for me. There is a clear explanation, and keep posting videos on dataverse.
    Thanks

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

    Hi Shane,
    Great video! One addition, you can use Yes/No directly for formulas (Toggle, Visible, Color, If...). "If(ThisItem.Maintenance, Color. Orange, Color. Green)" is totally fine. This behavior lets you choose how the value should be displayed in labels, dropdowns etc. Therefore you can make it sometimes more obvious for the user, depending on the context. true/false may be harder to understand than Active/Inactive, Yes/No, Ja/Nein, On/Off...

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

    Hej Shane!
    Made my day (once again). I struggled for weeks with this problem (patching dropdown, with modern controls).
    This finally solves my problem.
    Thank you so much!

  • @user-co3ts8nn8c
    @user-co3ts8nn8c Před 6 měsíci +1

    This has been a consistent life-saver...you're a consistent life-saver

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

      Glad to help. Hope you have a great day!

  • @geralddahl9159
    @geralddahl9159 Před 10 měsíci +2

    I wonder if you or the viewers have any interest in deep-diving into Dataverse attachments stored in the Note table. (Understanding the relationship that links items stored in Notes with the Dataverse record wherein they were initially attached, displaying a thumbnail for those items etc). Thanks for showing the mechanics of add file and add image in this video - much appreciated.

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

      Interesting. I will give that a think. Thanks

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

    Thank you once again for breaking thing down to what I need to know.

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

    That's really good stuff, Shane. Thanks.
    Greetings from Germany.

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

      Thank you from the United States 🤩

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

    Really cool and insightful video, Shane. Thanks for sharing.

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

    Capo!!!! 🤩🤩🤩🤩 muchas gracias amigo, por todo tu contenido.

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

      ¡Gracias a ti por el apoyo! Me alegra mucho que disfrutes del contenido. ¡Sigamos adelante juntos! 😊🙌 Y gracias a ChatGPT por la ayuda con la traducción 😉

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

    absolutely fantastic!! helped me to solve a problem!!! thanks!!!

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

    Great video as always!

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

    Thanks Shane ... please also make a video on dataverse security if possible...keep up the good work .cheers🎉

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

    I had to add the primary key id for a new record which I put as a null value actually two double quotes "" before Defaults worked in a Patch for my Dataverse table - it was giving me an error "Network error when using Patch function: Field 'Primary Key' is required." - which was interesting. I'm still having issues getting an image to upload to an image column though - hopefully I'll get that figured out shortly. I really appreciate all your videos.

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

    Thank you Shane.

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

    Super!!!

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

    Great video, Shane.
    Speaking of optionsets, how about a fun dataverse video on how to dynamically add/remove items from them.
    How much fun would that be? 😂😂

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

      I actually tried this for another app and NO THANK YOU. 😜

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

      @@ShanesCows I actually need to figure this out for a project....do you have any resource ideas?

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

    Hi! Obrigado :)

  • @user-wd5oo4hu2k
    @user-wd5oo4hu2k Před 6 měsíci +1

    Good job!

  • @rabbit5464
    @rabbit5464 Před 10 měsíci +2

    Shane, i'm curious about patching dataverse from a collection. The ".value:" and ".text" seem to have issues with the collection. also the lookup field ".selected" seems hard to patch the table record. Could you do a video about this as I'm sure I'm not the only one with the issue? Thank you.

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

      Rabbit think about it this way. Power Apps just wants what Power Apps wants. :) So however you have the data stored in the collection, you will need to shape it to look like what Dataverse is looking for. Text and Numbers are easy but things like a Choice you would want to store the Choice in the collection, not text. It is all possible but complex, I will put it on the list of videos, but no promises.

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

      @@ShanesCows i agree that PowreApps most certainly wants what it wants. Also I don't think it likes "Modern Controls" vs "Classic" with the patch function.

  • @user-iz3zr2hb1s
    @user-iz3zr2hb1s Před 7 měsíci

    Hi Shane, Great Video! How to PATCH A dataverse table Person Column from ComboBox Selected Items In Power Apps

  • @plukraak
    @plukraak Před 7 měsíci

    Hi Shane, Ronald from the Netherlands here. Remember the picture of Brian and me with the one and only Chewy cup? I have a complicated challenge. I want to store files in a Dataverse table. That's easy and can be done with a Form in a Canvas Power App. But then I want to show the saved files (file names) in a Gallery. And when the user clicks on the name of the file in the Gallery, I want the file to open immediately, just like it works in a Form Attachments datacard. If I copy the Attachments data card from a Form and paste it into a Gallery, it does not work. It shows the file, but gives an error when you click on the file. In addition, I also want to be able to do a Search within the Gallery items on the Attachment column and then search by the name of the file. This way you can quickly search all attachments. I have created a Dataverse table with certain metadata where I store the attachments with that metadata. Unfortunately, the attachments are 'hidden somewhere' in Dataverse in a table that I cannot access from Power Apps (only when I use a Form). I can work with a Nested Gallery and have ThisItem.Attachments as Items of that Gallery and in a label ThisItem.Value, but that doesn't work either. Is see the nam of the file and that's all.
    Hopefully you can show how this can be done.
    Ronald Smit

  • @Jaisreeradhekrishna
    @Jaisreeradhekrishna Před 10 měsíci +2

    First view boss

  • @ChristianFontaine-nh4to
    @ChristianFontaine-nh4to Před 3 měsíci +1

    Can we PATCH a lookup column for an existing record ? I'm strugling to save 2 forms back to back (Parent and Child). As the ID of the Parent table is not saved in the child record, I'm looking at a workaround to update the child record

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

      Yes. When you Patch a LookUp column you have to patch the whole Record. So something like Patch(ChildTable, Defaults(ChildTable), {ParentRecord: LookUp(ParentTable, ID = IDYouWant)})

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

    Hello,
    With Sharepoint list in the Patch function "XX:Dropdown1_Action_Sat.Selected.Value" Don't Works but "XX:Dropdown1_Action_Sat.SelectedText" is correct. Why?

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

      Not sure. What column type are you using might be the difference. Dropdown1.Selected. what options do you see? Guessing something different than value.

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

    Do you have a video where you go over patching an existing record and filtering by a GUID? I always seem to struggle with the GUID patches. For example can't get this to work. And there always a combination of Text(Guid(sometimes)) or the other way around and I never remember which, and sometimes I try both and still can't get it to work.
    Patch( 'Quote Products', First(Filter('Quote Products', "quotedetailid" = lbl_QuoteProductID.Text )), { Quantity: 2 });

  • @HuyNguyen-gz8vt
    @HuyNguyen-gz8vt Před 4 měsíci +1

    Hello Shane Young,
    How can you add new record by Patch function without primary column ?
    I try use patch function to create new record, but i have an issue field is required
    The issue: "network error when using patch function field 'id' is required"
    please help me

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

      If the field is required then you cannot create a record without the field.

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

    Hi shane
    Thx very much. I'm strungling to use "for all" plus "patch" filling a lookup column when the forall is lookong at a gallery with a database that is not the same as the database in the "patch" function. I use to be able to used it in shrepoint but now it doesn't work in database. I've been in contaxr wirh the oficial support team for a couple of days, but they can't help...

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

      You would need to do A lookup inside the Patch. Example: ForAll(Table As MYDATA , Patch(Dataverse, Defaults(Dataverse), {LookupColumn: LookUp(ChildTable, IDField= MYDATA.IDValue)}))
      That is the way to think about it. Hope it helps

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

      Hi Shane, thanks you for your feedback, yes, thats the way it is done, but It doesn't work when this happens:
      "Table" is not the same table as "Childtable". The strange thing is that it used to worked when I used Sharepoint, but now it doesn't worked in dataverse!!!! " I Think there must be an issue inside powerapps, because if instead of working with a Lookup column is a "direct" column it works. And if Table is the same as Childtable, it works, even when using the lookupcolumn....@@ShanesCows

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

    Hi shane, can we patch data into empty dataverse table that only contains column name with no data yet?

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

      Patch(TableName, Defaults(TableName), {Field: Value}) Will create a new row and would work whethere the table was blank or not.

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

    Hi Shane, I want to export the scanned barcode information from powerapps and import into a table in d365fo table. Suggest me how to do this Shane

  • @ChrisLee-ov2sn
    @ChrisLee-ov2sn Před 10 měsíci

    How about updating a lookup column with a Flow in DV. WHAT A PITA(pain in the @--)!!

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

    Yesterday I was trying to figure out how can I get those Color indicators' HEX value next choices labels on the left, so we can can leverage those in Canvas Apps. ¯\_(ツ)_/¯

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

      I don't think it is possible. :(

    •  Před 10 měsíci

      @@ShanesCows Came to that same conclusion. Great walkthrough. BTW we have a Formula (Preview) Data Type as well. 👍

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

    hI, HOW ABOUT 10 DAYS LATER? lol

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

    Its important to understand that if you say "and" when saying a number, that denotes a period(200.22) you should have said "Two Hundred Twenty Two" (222)

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

      Crafted six books and still, English throws me curveballs with numbers. It's all part of the charm, right? 🤷‍♂️

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

      Absolutely! I only pointed it out cause you are killin it all video! great Job brother, thanks. @@ShanesCows