No video

How to use PATCH Function in Power Apps | Insert and Update data

  Рет қаралды 184,375

Reza Dorrani

Reza Dorrani

Күн бұрын

Пікірлер: 451
@paulskelton8799
@paulskelton8799 Жыл бұрын
Brilliant! So many fabulous tips and great information, along with an excellent 'ideas' use case thrown in, within such a short timeframe
@RezaDorrani
@RezaDorrani Жыл бұрын
Thank You Paul
@shondataliaferro285
@shondataliaferro285 10 ай бұрын
Rezza! You be teachin'! Patching, as described by others who shall remain nameless, left me so totally confused and thinking I need to avoid using this functionality altogether. This video as well as your resources have really opened up the concept for me. Thank YOU!
@RezaDorrani
@RezaDorrani 10 ай бұрын
Im happy to hear this video is simple and effective. I try very hard in each video to make sure I make it simple for everyone. Thanks for the feedback.
@jamesclark2020
@jamesclark2020 Жыл бұрын
When I used forall to bulk patch it took almost two hours to do 200 records- almost unusable This method reduces that time by orders of magnitude I did have to modify the patch formula to get it to work correctly For some reason when I ran Patch(SPList,collection) it would create new items instead of changing existing items. I don’t know why So I found a blog post by Matthew Devaney that provides this formula: Patch(SPList,ShowColumns(collection,”ID”),collection) and it worked exactly as I described and very quickly updated almost 200 SP list items. I appreciate your videos and all of those extra user experience and performance tips that you always provide with them. Again I am very happy that this works so well. 😊
@RezaDorrani
@RezaDorrani Жыл бұрын
Thanks James! If collection contains the unique key of the data source (lets say ID in SharePoint), then it will update the item. If it does not find or ID is blank in collection, it will create a new item. You can also check kzfaq.info/get/bejne/jOCilNWUsp-7ZZ8.html
@tmccann887
@tmccann887 5 ай бұрын
Reza to the rescue (again)! I was confused about how to update an existing record in a Sharepoint list as opposed to adding a new record. LookUp was the key and Reza explained it beautifully.
@RezaDorrani
@RezaDorrani 5 ай бұрын
Reza says Thank You
@gauravdhingra713
@gauravdhingra713 Жыл бұрын
Rezaaaaaaaa Man - You are just amazing!! Earlier I was wondering why people are writing so many appreciative comment. Now I can relate. Hence joining the boat.. Awesome work Man :)
@RezaDorrani
@RezaDorrani Жыл бұрын
Thank You so much Gaurav
@UB-qc8yk
@UB-qc8yk 2 жыл бұрын
Awesome as usual, you never cease to amaze me. I've been using Patch for some Years now, I still learnt new tips from your video.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Glad to hear that! Thanks for watching
@jesterc
@jesterc Жыл бұрын
Took me ages to work this out - should have known to come straight here - your examples and real-life solutions are epic!
@RezaDorrani
@RezaDorrani Жыл бұрын
:)
@TheFunkBros
@TheFunkBros Жыл бұрын
me too... this is the 2nd time for me.... from now on I'm coming to this guy first!
@RezaDorrani
@RezaDorrani Жыл бұрын
@@TheFunkBros Thank You both
@TheFunkBros
@TheFunkBros Жыл бұрын
You did it again... once again, I'm trying to figure out how to use another feature and I was stumped until this video and you covered the topics I needed which was the choice column, Thank you for doing more than the basics but covering other topics like different column types. It worked... now my form can update the field with the click of a button which triggers my powerautomate flow which completes the automation of my business service task. Thank you and Please keep doing what you're doing!
@RezaDorrani
@RezaDorrani Жыл бұрын
Wow! Thanks Barney for the amazing feedback. I will keep trying my best.
@poteaugs
@poteaugs 4 ай бұрын
Such an amazing video... very helpful and love the examples. There are so many hassle things that are summed up by watching your content. Keep up the great work and thank you for helping us out!
@RezaDorrani
@RezaDorrani 4 ай бұрын
Most welcome!
@kireetiyakkali
@kireetiyakkali 2 жыл бұрын
Thanks a lot Reza! Probably this is the great video on Patch() function that I have ever seen.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Wow, thanks!
@waynewei3380
@waynewei3380 Жыл бұрын
Thank you so much for this demo. This is one of the best videos for patch function. This varIdea and blank() really take the functionality to the next level.
@RezaDorrani
@RezaDorrani Жыл бұрын
Great to hear!
@dougydoe
@dougydoe 2 жыл бұрын
Great video with extremely useful content. I've been using Patch but still learnt a great deal watching this video. The various aspects and ways we could use it is really amazing. Thank you for stretching our creative skills.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Glad you enjoyed it!
@Cordycep1
@Cordycep1 Жыл бұрын
thank you very much, that column CHOICE for combobox gave me a big headache for more than a week. Also, you help me undestand why I was creating 1 extra blank record whenever I patch.
@RezaDorrani
@RezaDorrani Жыл бұрын
You're most welcome!
@MrAbumuhammad123
@MrAbumuhammad123 6 ай бұрын
This is life-saving indeed! I got a breadth of relief after learning this video. Thank you so much.
@RezaDorrani
@RezaDorrani 6 ай бұрын
You're most welcome!
@marieraymond6512
@marieraymond6512 Жыл бұрын
This is one of most useful videos for me. You're amazing!
@RezaDorrani
@RezaDorrani Жыл бұрын
Glad it was helpful!
@subhamagrahari9193
@subhamagrahari9193 Жыл бұрын
Honestly Speaking- My manager asked me to creat a form on power apps and just because of your video i was able to impress him Thank you for such a wonderful knowledge sharing One request as patch does not support attachment plz do something as alternative
@RezaDorrani
@RezaDorrani Жыл бұрын
Glad to hear the video was useful. Patch does not support attachments. Alternatives are form control or call flow from power app. I have done many videos related to form control and ones for attachments. You can check those.
@merristenzel7711
@merristenzel7711 6 ай бұрын
You are amazing, Reza! THANK YOU! I was able to figure out how to make my app work by applying some of these formulas!
@RezaDorrani
@RezaDorrani 6 ай бұрын
Fantastic!
@daniellizarraga8726
@daniellizarraga8726 Жыл бұрын
Hi Reza, very useful and valuable information in the video. Thank you very much for sharing.
@RezaDorrani
@RezaDorrani Жыл бұрын
Most welcome
@barunroyghatak4380
@barunroyghatak4380 2 жыл бұрын
Thanks Reza this video is really worthful for beginners.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Glad to hear that
@luciozanarotto1974
@luciozanarotto1974 Жыл бұрын
This video and others are wonderful. You are great Reza, congratulations!
@RezaDorrani
@RezaDorrani Жыл бұрын
Thanks Lucio
@anishshipping7200
@anishshipping7200 Ай бұрын
Reza bro.. You are doing a great job. I am a non-IT person, but your videos help me learn new things. You are a great teacher, and thanks for taking tremendous efforts and time to create such knowledgeable videos and that too free. God bless. Loads of love from the 🇬🇧. By the way do you have whatsup group or community to post doubts or sharing best practises.?
@RezaDorrani
@RezaDorrani Ай бұрын
Thank You so much! No whatsapp group or direct line 😊
@enitesh
@enitesh 2 жыл бұрын
Great video. Lots of little thinks that can help us to develop apps in better ways
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Glad to hear that! Thanks for watching.
@ajayv304
@ajayv304 Жыл бұрын
Thanks Reza. I have replicated the steps explained by you and I created an App for Idea Generation which I would refine as per my use cases. Thanks a lot.
@RezaDorrani
@RezaDorrani Жыл бұрын
Glad it helped!
@ajayv304
@ajayv304 Жыл бұрын
@@RezaDorrani I have a query regarding the Sort Function. I tried to Sort the Gallery with Sort('Work Tracker Test',Status.Value,SortOrder.Ascending). But the issue is that, it has thrown me delegation error. Can u please suggest how to get rid of this delegation error. From your other videos, I understood what exactly Delegation is all about and how it is useful. Thanks for clear explanation. U have displayed Delegation concept in FILTERING Gallery items (kzfaq.info/get/bejne/sN6KesSJttK-oaM.html). Can u please help in the case of SORT too.
@RezaDorrani
@RezaDorrani Жыл бұрын
You cannot sort directly on complex type columns (delegation challenge). Check kzfaq.info/get/bejne/bLGcfJSav8WvdGQ.html
@kayodeojo8572
@kayodeojo8572 Жыл бұрын
Thanks a lot Reza, I really needed this you are the best!!
@RezaDorrani
@RezaDorrani Жыл бұрын
My pleasure!
@akilabenjamin8268
@akilabenjamin8268 2 жыл бұрын
Reza Dorrani Always brings us something New
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Thanks
@oluwatobiyusuf
@oluwatobiyusuf 2 жыл бұрын
Thanks for the great refresher on Patch function.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Glad to hear that. Thanks for watching.
@dododad4997
@dododad4997 Жыл бұрын
Really interesting knowledge .. will come here a lot fot sure
@RezaDorrani
@RezaDorrani Жыл бұрын
Thanks and welcome
@manjeetsinghutube
@manjeetsinghutube 9 ай бұрын
This is Fantastic example... Thanks
@RezaDorrani
@RezaDorrani 9 ай бұрын
Glad you liked it!
@SHAli1474
@SHAli1474 Жыл бұрын
Another great, clear and to the point video. Thanks Reza
@RezaDorrani
@RezaDorrani Жыл бұрын
My pleasure!
@znemzzz
@znemzzz 2 жыл бұрын
haha i was looking into patching stuff lately and how to improve my calls..then you posted a vid..nice
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Hope you enjoyed it!
@ankushjain4128
@ankushjain4128 2 жыл бұрын
I like your way how to describe..never missed any video eventhrough it is beginner level .. there must be something new that i haven't heard. Can you make a vedio ForAll concept with patch statement. Eagerly waiting for that. Thanks in advance
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Im not a fan of forall and patch. I use collections and bulk update. I have done multiple videos on it.
@zanguinetti8612
@zanguinetti8612 Жыл бұрын
genius! thanks a lot, greetings from Peru!
@RezaDorrani
@RezaDorrani Жыл бұрын
You're most welcome! ❤️ Peru
@zanguinetti8612
@zanguinetti8612 Жыл бұрын
@@RezaDorrani Thanks, please, Would you mind giving me a clarification? I was trying to get the information from a dropdown with Status: {Value."field_name".Selected.Value} but appear the next message: The argument type 'crf47_usuario' doesn´t match with the expected type 'OptionSetValue'. Type found 'Record'. Please, help me.
@RezaDorrani
@RezaDorrani Жыл бұрын
@@zanguinetti8612 I will recommend posting your issue with screenshots on forums at powerusers.microsoft.com/
@zanguinetti8612
@zanguinetti8612 Жыл бұрын
great information, Reza, it not only is going to help me with this question but another questions in the future.
@shaikhfirdos2723
@shaikhfirdos2723 2 жыл бұрын
Very useful information explained..Thanks Reza.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Most welcome
@monica24k
@monica24k 3 ай бұрын
Another great video! I’ve watched a bunch of your videos and I’m still trying to find a particular example that I haven’t found yet. Do you have a video where you explain how to select multiple people and then send them to a SharePoint list in a form, and then also the option to update that entry in a form. I’ve seen examples where there’s just a single person, but I suspect that I need to use a collection for entering multiple people in a single line in a SharePoint list.
@RezaDorrani
@RezaDorrani 3 ай бұрын
Most welcome! I do not have a video reference for that. Concept would be to use collections.
@mauricioetienne3379
@mauricioetienne3379 Жыл бұрын
Amazing video Reza, firstly I would really like to thank you for all I have learned from you! 🙌🏻 This has really made me set new ambitious goals for my next couple of years… I just have trouble with the Patching & Updating of the data don’t know why. Followed exactly as your video, maybe there were some updates on coding etc Either way thanks a lot!
@RezaDorrani
@RezaDorrani Жыл бұрын
Thanks for watching and learning from the videos. I would recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@scottmatson3313
@scottmatson3313 Жыл бұрын
Excellent video!
@RezaDorrani
@RezaDorrani Жыл бұрын
Thanks Scott
@baldeepsinghnagi8943
@baldeepsinghnagi8943 6 ай бұрын
Hello Reza, I saw your video named "How to use Patch function in Power apps" and there you mentioned that if we want to do Bulk update then we need to use Updateif and Patch function and i was trying to accomplish the same in my Power apps. I created a Simple sharepoint list named "Test" and it consist of 4 columns, Title, Requestor (Person type), Approval Status (Choice), Description (Multi line text) and i added some of the records. Now i created a Power app and added a Gallery control that display the records from the SharePoint list and then added a Checkbox control to the Gallery for each record. For the Checkbox control I defined some of the properties: OnCheck: Collect(varstatus,ThisItem) OnUncheck: Remove(varstatus,ThisItem) Default: ThisItem in varstatus Then i added a Combobox control and for the Datasource property i set it to Choices('Test List'.'Approval Status') I also added a Button control and for the button control OnSelect property i set it to: UpdateIf(varstatus,true,{'Approval Status':{Value:ComboBox1.Selected.Value}}); Patch('Test List',varstatus); Clear(varstatus) Now when i am playing the app and selecting two records from the gallery and selecting a Approval status from Combobox control and pressing the Button i am getting the error. What am i doing wrong and why it shows me that Network error when using Patch function: the specified column is read-only and can't be modified
@RezaDorrani
@RezaDorrani 6 ай бұрын
I have not come across this issue and hence not sure what the cause could be. I recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
@andrewghose4788
@andrewghose4788 2 жыл бұрын
Very Helpful! Great video!
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Thanks
@raj7sam
@raj7sam 2 жыл бұрын
@rezza If possible, Please make videos on Model driven apps use cases too, there are very less content on this topic.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Not in my immediate plans.
@MrGaztab
@MrGaztab 2 жыл бұрын
Great video, thank you for the content.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Your most welcome
@douyincutest
@douyincutest 2 жыл бұрын
Really nice, thanks Rezza so much
@RezaDorrani
@RezaDorrani 2 жыл бұрын
My pleasure!
@bobbyw1074
@bobbyw1074 Жыл бұрын
Hi Reza thank you for this video! Would you be able to create a list of column syntax for dataverse?
@RezaDorrani
@RezaDorrani Жыл бұрын
I did not understand your question
@bobbyw1074
@bobbyw1074 Жыл бұрын
@@RezaDorrani You have the list of syntax for referencing complex columns in sharepoint, do you have syntax for referencing complex columns in dataverse?
@RezaDorrani
@RezaDorrani Жыл бұрын
@@bobbyw1074 I have a playlist on dataverse. I may have covered Patch in one of the videos.
@bobbyw1074
@bobbyw1074 Жыл бұрын
@@RezaDorrani oh great. I’ll look for that video. Thank you!! I love your videos!
@jamief3592
@jamief3592 6 ай бұрын
You’re my boy, Reza
@RezaDorrani
@RezaDorrani 6 ай бұрын
Thanks
@kumnegerholdings
@kumnegerholdings Жыл бұрын
Thank you Reza, learning a lot from you. Do you have the suggestion box app created already? Cant seem to find it
@RezaDorrani
@RezaDorrani Жыл бұрын
It is a template app in power apps. learn.microsoft.com/en-us/power-apps/maker/canvas-apps/open-and-run-a-sample-app
@kumnegerholdings
@kumnegerholdings Жыл бұрын
@@RezaDorrani Thank you for pointing me to it. Appreciate you!
@jray1429
@jray1429 Жыл бұрын
Great Job!
@RezaDorrani
@RezaDorrani Жыл бұрын
Thank You
@AMindGame
@AMindGame 2 жыл бұрын
Absolutely love your content, can you please make a guide about document management with library and list!?
@RezaDorrani
@RezaDorrani 2 жыл бұрын
I make videos when I get multiple requests on a particular topic. Every quarter I ask subscribers for topic suggestions on the Community Tab of my KZfaq channel. Subscribers vote for topics and the highest voted topics get added to my backlog. Make sure you post this in the next topic suggestion post. If it gets a lot of votes, I will add it to my backlog.
@lalujithu
@lalujithu Жыл бұрын
Thank you for the video. Bit confused about how we can validate existing record entries in the SharePoint list before we patch the user records. To avoid entry duplication.
@RezaDorrani
@RezaDorrani Жыл бұрын
There is no inbuilt feature for duplicate detection.
@vaibhavwarkar9629
@vaibhavwarkar9629 Жыл бұрын
Great Video sir thanks
@RezaDorrani
@RezaDorrani Жыл бұрын
Welcome
@sultanSurya
@sultanSurya 7 ай бұрын
Thanks for the video. It solved my business problem.
@RezaDorrani
@RezaDorrani 7 ай бұрын
Most welcome
@DroneEyes
@DroneEyes 2 жыл бұрын
great video Reza
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Thanks
@RanjitSingh-xk9sb
@RanjitSingh-xk9sb 2 жыл бұрын
Very helpful. Thanks
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Thanks for watching
@90daner
@90daner Жыл бұрын
you save my life sir!
@RezaDorrani
@RezaDorrani Жыл бұрын
Wow! Happy to have helped
@edgarleonj
@edgarleonj Жыл бұрын
Excelent Video thanks a lot.
@RezaDorrani
@RezaDorrani Жыл бұрын
Glad you enjoyed it!
@asbjoern_nielsen
@asbjoern_nielsen Жыл бұрын
Hi Reza and thanks for another great video! If you have the time and energy for it... here's a couple of questions related to the video: 1. On the Bulk update; how can I include the Approval log, date and approver? 2. I want to add a checkbox outside the gallery to "select all"... what's the code for this? Br, Asbjørn Nielsen
@RezaDorrani
@RezaDorrani Жыл бұрын
1 - Do not remember much of this video but if its a collection performing bulk update. You would need to include the details in that collection. Simply update collection with those details. 2 - I have done a few videos where I have shown the code for select all. You would need to check those (I do not specifically remember which one)
@omidmehdi
@omidmehdi 8 ай бұрын
that was an epic video
@RezaDorrani
@RezaDorrani 8 ай бұрын
Thanks
@PinguinPat
@PinguinPat Жыл бұрын
Thanks for your clear explanation! Although I'm still struggling with the patch of a ComboBox: I'm having a work around. But how do I get this in a ComboBox patch line? ComboBox1 > Items Fx = Choices(Locaties.Afdeling) Labels1 > Text Fx = ComboBox1.Selected.Value Buton1 = OnSelect Fx = Patch(Locaties, {Name: Label1.Text}) Thank you!!
@PinguinPat
@PinguinPat Жыл бұрын
Life doesn't always have to be difficult! :) Solution: ComboBox2 = Items Fx = Choices(Locaties.Afdeling) Button2 = OnSelect Fx = Patch(Locaties, {Name: ComboBox2.Selected.Value}) Thanks again for your excellent video's!!
@RezaDorrani
@RezaDorrani Жыл бұрын
Looks like you got it worked based on your response comment
@PinguinPat
@PinguinPat Жыл бұрын
@@RezaDorrani Respect for all your hard work and follow up on KZfaq!! It's not certainly not common for people with the knowledge that you have to do so!!
@nazuu
@nazuu 2 жыл бұрын
Thanks again. I was so stupid using default(data source) when updating a record.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Everyone is learning! Keep going.
@nazuu
@nazuu 2 жыл бұрын
@@RezaDorrani yes ! :)
@pedrooaquim736
@pedrooaquim736 Жыл бұрын
Reza I'm watching all of your vídeos. The information are unique ! One questions. When I see your gallery, I observed that the gallery is filtered by "status" ( on minute 18:49 it' shows only the "NEW") . Could you share how did you do that ?
@RezaDorrani
@RezaDorrani Жыл бұрын
By using filter function. Filter(datasource, columnname.Value = “New”) Assuming column is a choice column. I have done plenty of videos on gallery filter. I will recommend checking them out.
@Learnpowerplatform
@Learnpowerplatform 2 жыл бұрын
Thanks Reza for this amazing video to clear most of the doubts. Just one query that can we use patch function to create or update almost 20 to 25 new records in SharePoint list?
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Possible. I have done multiple videos on bulk updating data. Look for these videos in my Power Apps playlist.
@zanguinetti8612
@zanguinetti8612 Жыл бұрын
Hello, Reza, I hope you are very well!! Please, would you recommend me a video to understand how to make visible and invisible some buttons depending of the user (admin and a common user)?
@RezaDorrani
@RezaDorrani Жыл бұрын
Check kzfaq.info/get/bejne/gJOYgLCJ17Gxhnk.html and kzfaq.info/get/bejne/nMh0hKth26_Xfmw.html Best to check my playlists
@sistex3729
@sistex3729 6 ай бұрын
This is a great video. I'm not sure why but my Patch on my Submit button is not working. I receive an network error when using the Patch function: The requested operation is invalid. This is my third attempt at creating multiple forms to submit a new item to a SharePoint list. My Patch syntax is Patch('Change Request',Defaults('Change Request'), BasicForm.Updates, DetailsForm.Updates, CMForm.Updates) If I'm using the form.updates, do I need to add all the fields between { }?
@RezaDorrani
@RezaDorrani 6 ай бұрын
I have not come across this issue and hence not sure what is the cause for your issue. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@abbasthegreat5
@abbasthegreat5 Жыл бұрын
Thank you Sir.
@RezaDorrani
@RezaDorrani Жыл бұрын
Most welcome
@gkakun
@gkakun 2 жыл бұрын
great video. Thanks Raza. Any chance you can upload step by step video of how you built this app? its a great idea!
@RezaDorrani
@RezaDorrani 2 жыл бұрын
I make videos when I get multiple requests on a particular topic. Every quarter I ask subscribers for topic suggestions on the Community Tab of my KZfaq channel. Subscribers vote for topics and the highest voted topics get added to my backlog. Make sure you post this in the next topic suggestion post. If it gets a lot of votes, I will add it to my backlog.
@gkakun
@gkakun 2 жыл бұрын
@@RezaDorrani Thanks for the detailed answer. I will follow-up on this.
@tigere3528
@tigere3528 2 жыл бұрын
Reza - great content. I'm trying to figure out how to set the varIdea variable when I'm using SharePoint integration. I'm trying to patch SharePoint choice field using another list, but submit form is not saving to list
@RezaDorrani
@RezaDorrani 2 жыл бұрын
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@kwamebuanyinaohemeng919
@kwamebuanyinaohemeng919 Жыл бұрын
This is a great video. Thanks. I there a way to patch multiple emails in the person column on share point list?
@RezaDorrani
@RezaDorrani Жыл бұрын
Patch emails? I dont think there is any such option. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
@kwamebuanyinaohemeng919
@kwamebuanyinaohemeng919 Жыл бұрын
@@RezaDorrani I appreciate the quick response. Thank you. I will check the forum but perhaps I didn't put my question correctly. Looking at how you patched one person to the "Person" column type in share point, I was asking if we can patch multiple persons in the "person" type column on share point using the patch function. Or more specifically, patch an array of multiple approvers from power app to a share point list person type column.
@RezaDorrani
@RezaDorrani Жыл бұрын
@@kwamebuanyinaohemeng919 For that you would need to pass a Table of those values similar to multi select columns of type choice or lookup. Video description has link to my blog which shows an example of multi select lookups and choice. Similar pattern is needed for Person. I do not have a specific video reference on it though.
@kwamebuanyinaohemeng919
@kwamebuanyinaohemeng919 Жыл бұрын
@@RezaDorrani Sounds good. Thank you for the response.
@aleksandarbbb1051
@aleksandarbbb1051 18 күн бұрын
Great,great video.. I have one question regarding error handling: is it possible to have name of the control or ,even better, name of label , where error has happened ( if input value is logner than ti should be ) ? One more thing : can you , please , explain UpdateContext function which is within pathc function of submit button ( at 15:57 ) ? Thanks, you are the best
@RezaDorrani
@RezaDorrani 17 күн бұрын
1 - I am not sure if there is an option to do that. Not something I have explored. 2 - The App was built from an existing template in Power Apps (its an out of the box template) That template already had those updatecontext variables set.
@hardridged
@hardridged 11 ай бұрын
Hey Reza, incredible video! Is it possible to "write" in new data in a combo box and patch that new data to your data source (Dataverse in my instance - CB is connected to a lookup column)
@RezaDorrani
@RezaDorrani 11 ай бұрын
Not out of the box. It would need some form of custom logic to check if value entered exists and if not then patch it to related table. Not something I have attempted.
@hardridged
@hardridged 11 ай бұрын
@@RezaDorraniahhh, maybe i'll go another route, lol. Appreciate the quick response and very informative video though!
@toanuk
@toanuk 2 жыл бұрын
It is a clear idea, Raza. I would like to ask you for help. How do you Use a Patch Function a Photo (Camera)from Power App To Sharepoint List(Image), Instance Ideas sharepoint list add a column Image? Look forward to showing me Thanks Toan
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Image column is read only as of today (from Power Apps)
@sharepoint1231
@sharepoint1231 Жыл бұрын
Very nice video, thank you! One question, I tried submission with patch function, submitted a blank value to a required field, somehow, the system ignores it, not return any error and let me submit the blank value to the list. Any other setting is needed to stop the submitting? Thanks!
@RezaDorrani
@RezaDorrani Жыл бұрын
Not sure about this since I have not come across this issue. I would recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@benseaburg9608
@benseaburg9608 Жыл бұрын
Hi Reza, great video! I have created a "Reward App" and I am wondering if it is possible that when a new reward (new form) is submitted that the current number of points in my SharePoint list column is automatically updated with the new amount of points being added when the new form is submitted. Do you think this is possible? I have watched a few videos and browsed the forum but no luck so far. Thanks.
@RezaDorrani
@RezaDorrani Жыл бұрын
I do not have a video reference on this scenario and would have to try it out to provide guidance. Forums will be your best bet. I recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
@krzysztofbuczek5594
@krzysztofbuczek5594 Жыл бұрын
You are awsome!!!!!!!!!!!
@RezaDorrani
@RezaDorrani Жыл бұрын
Thank You
@Liam-fb4tu
@Liam-fb4tu Жыл бұрын
Hi Reza, excellent video as always and by far the best patch walkthrough on youtube. If you create a manual form and then patch the results is there a way to then clear the manual form like you would with the form control element itself by using the built in form reset function?
@RezaDorrani
@RezaDorrani Жыл бұрын
You can set all the controls reset property to a boolean variable. Then when you want to reset the controls, set(varReset,false);Set(varReset,true); and you should be good to go.
@marieraymond6512
@marieraymond6512 Жыл бұрын
​@RezaDorrani a great video
@user-kb9pk8bh7j
@user-kb9pk8bh7j Жыл бұрын
Hello Reza, thanks for this awesome video! I've learned a lot and hope to see more videos from you in the future! I have a very specific question and I hope I can get some insight and help from you if possible! Our company has a manual-entry form that was made in Power Apps , and recently we wanted to optimize it and track the time for how long a specific task is completed in. Our app consists of multiple buttons , so I tried putting some patch function into our button that enables a user to enter a new form( its a button that puts out an empty form and also starts a timer on the screen), but I cant get the data from the form itself ( so the data the user needs to fill in) , I just get a new blank record in my sharepoint list with a start time and when I press submit, with the end time and the time spent as the difference between the two. My main goal is to collect the data in the form ,as well as get the time difference between the start and the end time of the task into the sharepoint list (calculating the time spend). Is there a possible and an easy fix for this kind of problem? Looking forward to more videos like this!
@RezaDorrani
@RezaDorrani Жыл бұрын
Thanks so much. I do not have any specific video references on your scenario and not sure what the reason for your issue could be. I would recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@rothsimon6570
@rothsimon6570 7 ай бұрын
Hi reza, great video , but how do you use drop-down as a selection for the existing column to update from text box inputs . ? to pull and send data same time . ?
@RezaDorrani
@RezaDorrani 7 ай бұрын
I dont have a video reference on that scene so not sure
@renzomendoza7465
@renzomendoza7465 Жыл бұрын
Hi Reza, I just want ask regarding 8:26. I currently have a "Data Type: Table" and it is a listbox/checkbox where I can pick multiple items, and varIdea.NameofColumn or varIdea.NameofColumn.Value is not working. How can I apply it on this kind of data type. Thank you! Thanks for making this video it helps me a lot. Looking forward to your next video tutorials!
@RezaDorrani
@RezaDorrani Жыл бұрын
I would have to look at your App in action to know the cause for your issue. I will recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@renzomendoza7465
@renzomendoza7465 Жыл бұрын
@@RezaDorrani Thanks for your suggestion sir! I posted it on the forums.
@zerokhan858
@zerokhan858 4 ай бұрын
thank you so much
@RezaDorrani
@RezaDorrani 4 ай бұрын
You're welcome!
@tgamradt
@tgamradt Жыл бұрын
Great video, as always. But I was wondering why you initialized varIdea with Blank() instead of Defaults(Ideas). Wouldn't that eliminate the need for your if statement when patching?
@RezaDorrani
@RezaDorrani Жыл бұрын
Honestly I do not recollect why I had done that :)
@AndrewTSq
@AndrewTSq Жыл бұрын
@@RezaDorrani I thought the Blank() was to remove the selection of the gallery, cause if you use Defaults(Ideas) then varIdea has a value? and then the coalescing would not work.. but I am no expert so I could be wrong :)
@RezaDorrani
@RezaDorrani Жыл бұрын
@@AndrewTSq Honestly, I would have to revisit the video to refresh my memory. Your outline sounds right.
@warimontadanukulwattana9343
@warimontadanukulwattana9343 Жыл бұрын
Thanks!!
@RezaDorrani
@RezaDorrani Жыл бұрын
Welcome!
@belandry1
@belandry1 Жыл бұрын
Reza, thank you as always for your great videos and insight! I'm attempting to use ForAll to patch a variable and a field from a collection to two SQL columns "savings_request_id", and "basin_id", any thoughts on how i need to change my formula for this to work? ForAll(collPABasinSupplier, Patch(savings_request_basin_xref, Defaults(savings_request_basin_xref), {savings_request_id:varSavingsRequestID, basin_id:BasinID})). It just tells me it's invalid. Thanks again! Beau
@RezaDorrani
@RezaDorrani Жыл бұрын
I do not have a video reference on sql scenario and would have to try it out to provide guidance. I recommend checking or posting your query on the forums at powerusers.microsoft.com/ in case someone has done something similar.
@belandry1
@belandry1 Жыл бұрын
@@RezaDorrani not a problem, thanks for your reply!
@erin6094
@erin6094 Жыл бұрын
Thanks Reza. How can I using Petch update attachments?
@RezaDorrani
@RezaDorrani Жыл бұрын
Patch does not support attachments
@basehumax
@basehumax 2 жыл бұрын
Thanks useful content
@RezaDorrani
@RezaDorrani 2 жыл бұрын
👍
@sundrapillay6668
@sundrapillay6668 2 жыл бұрын
Thanks Reza
@RezaDorrani
@RezaDorrani 2 жыл бұрын
👍
@user-fe9rh1bc6u
@user-fe9rh1bc6u 10 ай бұрын
Hi Reza, Thanks for the great video, my app goes through multiple approval stages, I have created the approval history column to contain emails of every user who edited it, but the patch function is only keeping the last email, how can I make it show all emails and not replace the existing user emails with last email only?
@RezaDorrani
@RezaDorrani 10 ай бұрын
Append the data. Get last value and concatenate with current value and then patch.
@marie-franceenglish4397
@marie-franceenglish4397 Жыл бұрын
Hi Reza, thanks for all your videos! I've learned a lot. For some reason, I am running into a problem when patching back the collection to the sharepoint list. Since the patch function expects 3 arguments and we are only providing Patch(source, collection). It works, but when I close the apps and re-open, there is an error: Invalid argument type (Table). Expecting a Record value instead. If I rename the collection everywhere, then the apps works fine...until I close the app again and rename the collection again. Why is this happening? Thanks
@RezaDorrani
@RezaDorrani Жыл бұрын
I will have to look at your App in action to know why. I will recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@jakeerhussain1011
@jakeerhussain1011 2 жыл бұрын
Hi Reza, You are giving us awesome content. could show us how you implemented the count of each record based on Status selected and the Navigation to that particular items.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
I do not have a video reference on this scenario and would have to try it out to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@MaehAsmr
@MaehAsmr Жыл бұрын
Your video is very helpful, it helped me a lot. I have a problem in btnexit, when you use patch, it gives me an error in all that part, since (updateif) recognizes it as a record and not as a row, any advice?
@RezaDorrani
@RezaDorrani Жыл бұрын
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@squeeshywithpeachy5067
@squeeshywithpeachy5067 3 ай бұрын
Amazing !! I have a similar ask, I've been using 4 fields from excel out of which 3 fields are number format and 1 text. Even though the datatypes are correct, the Patch syntax throws an error. Any help is appreciated. Example- Patch('Table1' ,Defaults('Table1'), {FiscalYear:Value(TextInput_FiscalYear.Text) , FiscalPeriod:Value(TextInput_FiscalPeriod.Text) , Business:TextInput_Business.Text , Forecast:Value(TextInput_Forecast.Text})
@RezaDorrani
@RezaDorrani 3 ай бұрын
I have not come experienced this and hence not sure what is the cause for your issue. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@ItsMeProday83
@ItsMeProday83 2 жыл бұрын
On 11:30 aldough I pressed +, Status doesn't go back to NEW (it stays on last choice from gallery that was selected). I did excatly the same, and all works except this one. Regardless on this, thanks once again for great and usefull video Raza.
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Thanks for liking the video. As for your issue, I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@kusumamuralik625
@kusumamuralik625 Жыл бұрын
Tq so much sir
@RezaDorrani
@RezaDorrani Жыл бұрын
Welcome
@mrugeshpatel841
@mrugeshpatel841 Жыл бұрын
Hi, Thank you for detail video. I had issue where more than one user can try to save data at same time but only one user's data is saved in my SQL table. Will you please help to solve this?
@RezaDorrani
@RezaDorrani Жыл бұрын
I do not have any video references on this and none with sql. I will recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@Escillo
@Escillo 2 жыл бұрын
Hello, Nice video, it helped me a lot but except for one problem : what's the good code for patch a mutli select choice column with data from combobox, with items property filed with a data from another SP list ? I have tried with ForAll(DataCardValue.SelectedItems; {Value : Title}) but it does not works. Can i have to use Table() like on your website ?
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Yes as shown on website. I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@Escillo
@Escillo 2 жыл бұрын
@@RezaDorrani Thank you Reza, i write a post on the forum.
@arholderik
@arholderik Жыл бұрын
Hi, thank you so much for this tutorial. I’m trying to get this thing to work in an issue log app. I’m using the gallery selector to search for only Open Status issues for the current user. I’m using With({userEmail: User.Email},Sort(Filter(IssueLog,Status.Value=“Open”,’Created By’.Email=userEmail),Modified,Descending)) as an item filter. For some reason it breaks the default property of the status dropdown. Please help!
@RezaDorrani
@RezaDorrani Жыл бұрын
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@vidabailey16
@vidabailey16 Жыл бұрын
Hey Reza, this video is awesome, thank you. I know when you used the person field it reports data back to the data source, but I would also like to display the person's name in my text input field in the form. Let's say the text input name is "txtBox". What would the formula be for me to display the person's full name in there and write back to the data source the same?
@RezaDorrani
@RezaDorrani Жыл бұрын
Try “controlname.selected.” And intellisence will guide you through. Controlname is name of combo box control for person in form. If person column is storing all details of selected person, why do you need another column to store full name?
@vidabailey16
@vidabailey16 Жыл бұрын
@@RezaDorrani Hmm, I just want to show the person in the app itself rather than only in the database. My team won’t view the back end, and they will need to see on the front end who enters the info. Hopefully that makes sense lol thank you for your help!
@RezaDorrani
@RezaDorrani Жыл бұрын
@@vidabailey16 Yes, but for that you don’t need to save it as person and display name. You can simply use person columns display name property to show value in App
@vidabailey16
@vidabailey16 Жыл бұрын
@@RezaDorrani Thank you! What should I type?
@RezaDorrani
@RezaDorrani Жыл бұрын
@@vidabailey16 I will have to try it out myself to give you step by step guidance. Il recommend posting your query on forums powerusers.microsoft.com
@josbar80
@josbar80 Жыл бұрын
Great Video Reza. I have followed the video, but in my case I am using a Combobox. I am facing an issue, where I would like to auto populate a Text Input with the Values from a Combobox. I can achieve my result separately, but how can I achieve this based on the selection of the source in the Combobox? Any ideas?
@RezaDorrani
@RezaDorrani Жыл бұрын
I will have to look at your App in action to provide guidance & know more about your use case. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@mrarbaz8767
@mrarbaz8767 2 жыл бұрын
Thanks sir👍
@RezaDorrani
@RezaDorrani 2 жыл бұрын
👍
@kennashriner6993
@kennashriner6993 Жыл бұрын
Hi Reza, your videos are always so helpful! I am currently building a PowerApp with multiple galleries and forms with its data source as a SharePoint list, and have run into a problem when trying to submit the data using a patch function. I've been using the form1.updates, form2.updates, etc. functionality, but whenever a user tries submitting responses on other forms, a new list item is created. Is there a way to save the unfinished forms and then come back later, ultimately submitting the completed forms, without creating a new list entry in my sharepoint list? In other words, I was hoping to implement a save button that spans across four forms and three galleries. The user needs to be able to return to the app after having 'saved' the once submitted/unfinished data to a single sharepoint list item, and then submit their remaining responses using the forms - with their responses falling into the same list item. Thank you!
@RezaDorrani
@RezaDorrani Жыл бұрын
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@tibobago
@tibobago 4 ай бұрын
Hi @RezaDorrani, following the steps outlined in that video but using a dataverse for teams table as source. When I attempt to set the default value of my dropdown it doesn't accept my varName.FieldName.Value. When I look at the variable preview from my formula bar it displays " This data type is unsupported for Ev...", can't see the end of the message but I suspect my issue might come from using the modern dropdown, unfortunately the classic doesn't seem available. Appreciate your help if you know the answer. I'll keep trying and post workaround if I find one here!
@RezaDorrani
@RezaDorrani 4 ай бұрын
I have not tried this with Dataverse for team hence not sure. I recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
@pakarussiapinto6718
@pakarussiapinto6718 2 жыл бұрын
Hello reza very good job explaining, can you kindly post your style code
@RezaDorrani
@RezaDorrani 2 жыл бұрын
Style code for Power App?
@srijabandyopadhyay6556
@srijabandyopadhyay6556 Жыл бұрын
Hi Reza, any dedicated video for variables in power apps?
@RezaDorrani
@RezaDorrani Жыл бұрын
I have used variables in plenty of my videos but do not have a dedicated video on variables
@usmanwaleed3612
@usmanwaleed3612 Жыл бұрын
Great video brother, thank you so much, is it possible to get the file for the idea approval power app please
@RezaDorrani
@RezaDorrani Жыл бұрын
Thats based on a template. You can check power apps templates.
@usmanwaleed3612
@usmanwaleed3612 Жыл бұрын
@@RezaDorrani no actually certain logics and codes you have entered in the second one is bit different i guess, so if possible pls let me know, if not , it aint a issue, i m grateful already for all the contents you share and damn u read and respond to all msgs
@RezaDorrani
@RezaDorrani Жыл бұрын
@@usmanwaleed3612 Its minor updates and I always keep updating the same apps. So it will not be in the state + data source is something I cannot share.
@usmanwaleed3612
@usmanwaleed3612 Жыл бұрын
@@RezaDorrani ok , thx
Power Apps PATCH function Tutorial with Modern Controls
24:48
Reza Dorrani
Рет қаралды 58 М.
Patch vs Update vs UpdateIf in PowerApps (which one to use)
15:33
Alireza Aliabadi
Рет қаралды 25 М.
Please Help Barry Choose His Real Son
00:23
Garri Creative
Рет қаралды 22 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 3,2 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 85 МЛН
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН
Editable Grid in Power Apps | SharePoint List
42:49
Reza Dorrani
Рет қаралды 369 М.
Saving Power Apps Data with the Patch Function
17:59
Shane Young
Рет қаралды 55 М.
Power Apps Patch function with SharePoint Columns
31:51
Reza Dorrani
Рет қаралды 119 М.
Mastering Delegation in Power Apps: A Comprehensive Guide
23:13
Shane Young
Рет қаралды 38 М.
Why Power Apps Patch function doesn't work properly
16:24
Alireza Aliabadi
Рет қаралды 19 М.
Power Apps Editable Grid using Gallery & Modern Controls (2023)
23:49
Patch Function in Power Apps
11:07
Dhruvin Shah
Рет қаралды 9 М.
Please Help Barry Choose His Real Son
00:23
Garri Creative
Рет қаралды 22 МЛН