@@RezaDorrani Hi , but i wanted to store multiple users in one record, that multiple users are coming from another share point list in a gallery, on check i am creating collection and i want to patch the selected users by checking check box and store that into collections and wanted to patch that to store in one column
a few years ago i watched that video and learned how to use patch. it is always a great pleasure to refresh my mind and test if the functions are still useable or if the syntax may has changed. Reza you are a great teacher. thank you so much for all your videos. your calm, precise and clean way to explain this topics by showing usecases is just neat and of real great educational value. Pardon my French... you're a f*cking Legend!
I'm glad to hear that the video was helpful and continues to provide value. It's always rewarding to know that my explanations and examples are making a positive impact.
Video after video you prove that I didn't subscribe for nothing. It's simple, yet very complex and this (important!) stuff is not in the MS documentation. Thanks a lot again. For reference when I come back - I'm sure I'll check this video more than once - let's note that the summary starts at 20:00, which is brilliantly timed 😉
For anyone wondering how to patch attachment column, you can, but for any reason, you have to write at the end of your patch function : patch {….}, form1.updates, form1 this edit form where the attachment component is, and it works !
I'm a very lazy dude but with this I have no more excuse to procrastinate. Thanks, Reza. BTW, you made me stopped wasting my life watching all other UA-cams LOL!!!
@@RezaDorrani Thanks! I'm working on migrating my MS Access apps to MS PowerApps. I'm very interested in the topic of generating reports, especially complicated reports, which Access is very capable of. Watching your tuts on pdf, very helpful and practical (of course!). Greatly appreciate!!!
That’s great video! I looked for the way to use patch function to choice column, but, it was difficult to find in Japanese content. This video is very helpful for me. ありがとうございます。
Hi, Reza, your videos, as always, saved me many hours of headaches. Now, knowing all these principles I can build complex features. Thanks a lot again.
Great tutorial, Reza! Thank you. Perfect timing, too. I’m customizing the Edit form for a new SP document library & really struggling with updating complex data types (choice columns with user fill-in, multi line text columns, yes/no). This video will help tremendously. Looking for to the next one & checking out Audrie’s as well.
I concur with @Jim Fitch. I was banging my head on my drop-downs using lookup columns, i realize I need to do the drop-downs as choices(…), then every else is easy.
Thank you Reza. I want to include an auto increment in my list. Want function do I use to patch auto number starting from 1 --- to my SharePoint list? I'm running a powerapp survey
@@RezaDorrani Thank you. And do you have any recommendations on how I can generate graphs for my PowerApp survey? I tried web part chart on SharePoint but it didn't work out because my survey responses do not contain number values. All responses are I'm text.
@@itstiktok8765 I do not have a video on this scenario. I would have to try it out to provide guidance. I will recommend posting your query on the forums at powerusers.microsoft.com
This was very helpful to gather the user information from 365 however, what is the formula or input to retrieve the manager's information? I've tried multiple codes/inputs and I can't seem to figure it out.
You would need to use the office 365 users connector to get that information. I do not have a video reference on this scenario. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
dear reza thanks for the video.do you know how to patch crm yes/no toogle from power apps please.i got two radio buttons yes,no in powerppas if i select yes from powerapps and click submit it needs to update in crm .toggle should change to yes and vice versa .i tried path in if condition i am getting errors some how
This video is purely focussed around Power Apps. For CRM (CDS) the format for patching is a little different. When you are Patching for Yes/No type column in CRM use 'colName (EntityName)'.Yes where colName - is name of your field and EntityName is name of your entity.
Great reference video for all column types, thanks. I’ve come across an issue though with a sharepoint look up column. My list uses a site column which looks up to list on the root site in the site collection however if I try to patch to it the lookup field isn’t visible. If the look up points to a list on the same site then all is well, but not if it is looking at the parent site. Any ideas?
Hi Ian, Great question. I have not tried it. My guess would be that you would need to include some sought of relationship with the root site. Modern SharePoint world is flat, meaning you build site collections and not sub sites. You can also relate sites together using the new hub features. There is also new CT hub publishing features coming soon.
@@RezaDorrani Many thanks for your reply. I am finding your videos very helpful. My issue comes from having a legacy sharepoint set up with a large hierarchy of sites and sub sites. Following the demise of sharepoint designer it’s a shame MS didn’t consider backward compatibility with power apps functionality. I’ll investigate the hub features you’ve mentioned and see what they have to offer as a solution. I don’t suppose you have done a video on them as well, have you. Many thanks again.
@@iancrosby7265 I have not done videos on SharePoint but have been working on SharePoint since 2007 :) Here is the reference documentation for hub sites - docs.microsoft.com/en-us/sharepoint/planning-hub-sites
Great Video. I need to do the same thing than you with "subject" but my "subjects" refer to an another sharepoint list as your "class". So There is a multiple selection i need to patch in a column with multiple choices and these column refer to an another list. How can i pass multiple ids?
Tough to understand your question without looking at your App in action. I would recommend posting your query with screenshots on the forums at powerusers.microsoft.com
Excellent video!!....i have a scenario where the entries are made in sharepoint list directly as its used by different teams, i have developed a power apps for a particular team where they want a text box value to be summed up each time when the particular ID is selected from the drop down....the problem that am facing is i want to alter only one column but since there are few mandatory columns in sharepoint list its asking me to patch a value for those columns, but i dont want to alter any other columns....is there a way to do this
Hi Pricilla , If you are using Patch to create a new record, then all mandatory columns need to have values. If you are using Patch to update a record, then you can update your fields of choice.
Hi Reza, Always appreciate and enjoy your instruction. I am trying to write a patch to update an existing record. I am not using a gallery. I get an error when attempting to patch a people / group field. My patch function states an error "Network Error when using patch function: The requested operation is invalid. Can you tell me what I should be looking for when that error comes up. It is not very clear
I have not come across this issue, hence not sure what the resolution would be. I would have to reproduce your scenario to know the next steps. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani I did and not getting any responses that are helpful. A couple people asked me to post my patch function which I did but without response
@@golfnutt8 Forums is a free platform. You may or may not get the best response. I do not have any bandwidth to validate this and hence asked to check on forums.
@@RezaDorrani Its no problem, I was just wondering if you had heard of anything concerning this. Totally understand you are busy. Again, your videos are amazing and we learn a lot from them.
Reza, do you know if there is a way to patch an Attachment to a SP list. I took the control from another form connected directly to a SP data source but when I try to use a collection with a different structure I cannot map the patch to the attachments field. Any thoughts?
Is this the best way to post to a list if you are brining in multiple data sources? I am still learning and so far this seems to be the only option I see. Any insight on this would be greatly appreciated.
I have a question if I have 3 screens with 3 edit forms and these edit forms have different fields from different tables from my database and I have a button on the last page to save all the information the user inputted how can I save all the information into my database?
@@RezaDorrani sir, i have need some help about main category item and sub category item display in power app same gallery and how to control because they are two list main category and sub category how to manage pleases guide me how to solve this
@@imranfc your best bet would be to post your query with screenshots on the community forum at powerusers.Microsoft.com since it would be difficult to provide help without looking at your data source, column types and use case.
@@RezaDorrani Sir, give me some help about order Id actually I am using function patch forall function and data save correctly but my problem when I am show this data in gallery and search repeat order id with multiple rows. I want show only one order id and then I am click to show other all rows expand with same Id. Kindly help me about this problem
Love your videos. I'm trying to find out how to patch a SharePoint person column with multiple values. I'm my Powerapp I'm using a combo box for the people picker. I've found videos on how to patch SharePoint multiple person field, but the values are hard coded. I need a way to patch multiple people from the combo box people picker input from my user. So far, I can't find out how to do this. Any ideas? Thanks again.
What is comment? A column or office comments? Patch supports column data. For office comments - I have done a recent video on "Build a Chat experience in Power Apps"
Hi, i think you made forgot Table at 21:45 for Manged Metadata. I need to add Table for Enterprise keyword column. BTW your vide is very instructive. I learnt a lot again
You would need to add termguid and label with structure as shown in video. I did not cover managed metadata in video but my blog showcases the syntax rezadorrani.com/index.php/2020/05/04/power-apps-patch-function-with-sharepoint/
Hi Reza when I use combobox with choices and bulkupdating why same value is populated to sharepoint list ,created collection on combobox on change property ,appreciate your answer.
I would have to see your code to know why this is happening. I would recommend you post your issue with screenshots on the forums at powerusers.microsoft.com/
I will have to look at your App in action to provide any guidance. I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com
ua-cam.com/video/tPxE_-DcWkg/v-deo.html For Patching you have to follow the format of a person type column as described in this blog post - rezadorrani.com/index.php/2020/05/04/power-apps-patch-function-with-sharepoint/
Hi Reza, hope you doing great.i have a SharePoint choice column, when i use the patch function to submit my form, all the other colums get updated except this particular column, this is what my onSelect function for the submit button looks like "Patch(Helpdesk, Default(Helpdesk), CreateTicketForm.Updates)". Can you help figure out why a particular column isn't updating? Thanks in advance
I will have to look at your App in action to provide guidance. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
How to update both SharePoint list fields and corresponding powerapps field using MS flow? If I select trigger the action when an item is created in SharePoint, then only SharePoint list field is getting updated ,powerapps form filed will remain same. If I select trigger action as powerapps, then I am not getting the SharePoint form 🆔. Could you please make a video on this scenario? A simple approval workflow with a status field in powerapps?
If power apps is connected to SharePoint and if SharePoint list is being updated then the changes should reflect in Power Apps. Sounds more like an issue or some disconnect with me understanding your use case. I will recommend you check on the forums at powerusers.microsoft.com/
@@RezaDorrani I have set my status field display mode as view in powerappps, (I don't want to edit the status field by an end user). when I change other field value through workflow, they are getting updated( they have display mode as edit). Hw can I change a field with view mode through workflow.
@@Shinsha-vaami Display mode of control in Power Apps has no effect on updating the field from flow. You can simply use update item action and set the values for the fields.
This video was super helpful, thank you. I'm having an issue with the Patch function in which I want to keep the records that already exist in a multiple select field, but simply add an additional record. To be more specific I have a multiple select people field in my sharepoint list. If record already contains others in the column I want to keep them there, but also add the user to it. Not sure how to keep records that are already in the column and add another record without completely replacing them.
You should store the existing values related to the field in a variable. Then let user make new selections and prior to patching merge the existing and new selection values. Also, ideally you would want to show the existing values to the user so they can just update them. If you need more assistance I would recommend posting your query with screenshots to the community forums powerusers.microsoft.com/t5/General-Discussion/bd-p/PowerAppsForum1
HI Reza, with the People Picker control, even if I enter and select another persons name, when the data is patched to SP list, it displays my name and not the person whom I selected.
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
Great walkthrough, question - do you ever work with collections? If so, how do you use a dropdown and or a datepicker in the collection and patch it to a sharepoint list?
Hi Reza, your awesome. Each and every video of your is very informative and easy to understand for beginners like me. One quick question on this. Say for my requirement I just have a form which need to update and I'm using PATCH function and there is no Gallery or DataTables to select from. But however I'm having a Dropdown in PowerBI to filter this Form(Power BI and PowerApp integration). So in this case is there a syntax which I could use in this place of Defaults(Source_Name)? Because I cannot use Lookup nor First nor Filter functions.
Thanks Pavan. Even in case of power bi and power apps integration, the home screen will have a gallery. Check ua-cam.com/video/5y2jJyH4Eu0/v-deo.html Defaults is used only when you want to create new item. When editing data for form, you will need the item context.
I have a app which wanted to save multiple people values into SP list and it's already enabled for multiple people selection but how can we store it in SP list using patch, thanks
I do not have a video reference for this scenario. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hello Reza, I have a gallery with data coming from source A, i can filter that data but i want to move that filtered data into source B which is a sharepoint list. how do i use patch to achieve that? so i want to use the filtered data in my gallery to create a new records in source B.
How to proceed with a powerapps, full CRUD where the requirement is to have 14 people picker (contacts for each department) with sharepoint list as datasource. I designed 14 text columns in SPL and within gallery control, combo box for people picker. I'm stuck with accessing each department combo box and patching each of them. Is this the right approach or any other way to do this?
I do not have a video reference on this scenario and would have to try it out to provide guidance. I recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
You can use the same screen to update or add records. I have seen a lot of questions around this on the forums. I will recommend you check on the forums at powerusers.microsoft.com/
Thank you and you really asked me a question that got me thinking. I found the solution and I would surely be sharing this soon on my twitter handle @rezadorrani. Credit to you. Your need to do 2 things 1 - Go to experimental feature and turn on formula level error management 2 - Patch your person column as follows PersonColName: Blank() Let me know how it goes.
Hi Sir I have data in Excel 20 Rows and 5 Columns (Columns and Rows may vary based on available data).I want to copy (Ctrl C) all data from excel and past (Ctrl V) into PowerApps canvas and Patch to SharePoint along with few headers in Canvas with the help of button. Request your help in this regard.
I have never tried that. I dont think copy and paste works that way. I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com
Lookup column value is not getting saved into sharepoint list. BUT when I select and wait in the function that I have written it is showing the ID and column value.
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
Hey Reza, I am making the Editable Grid based on your video. On both of these videos everything is working except patching the date. even to the collection I can't patch a date from DatePicker, if I use Today() it works, but I am unable to get datepicker working with patch and I've searched all over. Please advise.
It should simply be datepicker.selecteddate. I dont think there is much more to it. Probably has to do with format of date. See what today() returns and compare it with what you are providing from date picker. I have not faced any issues with dates hence my advise is limited to what I know. I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani today() works. and when I substitute in any of the following: I've tried: ApprovalDate: dateApprovalDate.SelectedDate (it's last in the list so no comma) ApprovalDate: { '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", DateValue:dateApprovalDate.SelectedDate }.DateValue and just for fun: ApprovalDate: { DateValue:dateApprovalDate.SelectedDate }.DateValue I get nothing. I see it in the gallery and then I can see the patch running (little dots moving) then as it tries the date, the frame around it goes bold and the date disappears out of the gallery and isn't in the collection, so when I patch the collection, it's not on the sp list b/c it gets wiped out of the collection. I've looked at every event to see if somehow *I* wiped it out and I don't see anything. I will look into formats and mess around, if anything I've replied with gives you more ideas, I'm just stuck. Thanks Reza for replying. I appreciate it.
@@RezaDorrani Hey Reza, I changed the format, it still didn't work but I noticed when I changed to long format, it first put the longformat date into the gallery field and then it switched to what the format really should be which is mm/dd/yyyy briefly and then blanked out again. Very odd behavior I will check with the forum but, again, if that sparks an idea please share. thanks, Sir.
Hi, Lookup column is not getting saved into sharepoint list. But in power apps, when I select the column I am trying to save, it is showing both ID and value correctly.
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
@@RezaDorrani Hi thanks for the reply. I tried checking the video and it seems you still have to input it one by one? my dilemma is i need a code for 1. Submit - New ID 2. Edit -Old Data, Old ID 3. Save As New - Old Data, Save into New ID 1 and 2 seems easy, but 3 seems to lengthy given that my form contains so many item to be filled up sadly Currently it seems stupid honestly... Was looking for a way to shorten this. The first part are text inputs so Update seems to work, the 2nd batch are choices allowing users to input if not in the choices... overall seems like there should be a better way than this? *EDIT cant seem to attach the code due to its length, but basically there are over 600 Datacards in the Screen. I had to use Excel to make it easier to create the Code since it was repetitive. Patch('PADMOUNTED TRANSFORMER',{'Test ID':Text(DataCardValue2.SelectedDate,"yyyy-mm-dd-PDMT-")& Last('PADMOUNTED TRANSFORMER').ID+1, 'Date of Test':'Date of Test_DataCard1'.Update, 'Project Code':'Project Code_DataCard1'.Update, Client:Client_DataCard1.Update, Address:Address_DataCard1.Update, Equipment:Equipment_DataCard1.Update,................................ //2nd part// 'Tap Setting':If(!IsBlank(DataCardValue22.Selected),DataCardValue22.Selected,If(!IsBlank(DataCardValue22.SearchText),{Value: DataCardValue22.SearchText,'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"},Blank())), 'TTR Test Equipment':If(!IsBlank(DataCardValue23.Selected),DataCardValue23.Selected,If(!IsBlank(DataCardValue23.SearchText),{Value: DataCardValue23.SearchText,'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"},Blank())),.......................... Any idea is appreciated. TIA
@@grapegh0stx I would have to look at your app in action (screenshots) to provide any guidance. I will recommend you post your issue with screenshots on the forums at powerusers.microsoft.com/
Hi Reza.. A quick query.. I am trying to patch my powerapp with Excel database in OneDrive for business. It created a powerappid in file.. But the data is not getting captured. Can you guide on this issue please.
Hi Ashish, I would have to see the code base to help. I would recommend posting your issue with screenshots on the forums at powerusers.microsoft.com/t5/Building-Power-Apps/bd-p/PowerAppsForum1
Power BI data set is read only. I have done videos on how to connect back to source from power bi and update using patch. Check ua-cam.com/video/5y2jJyH4Eu0/v-deo.html
@@RezaDorrani Thanks for the reply. I don't want to write back to the data source though I want to read the Power BI data to a Sharepoint List through the Power App visual. Is this possible even with power automate?
@@fenrir433 Please check my videos on power bi integration with apps and flows. I have done videos on them. You can read power bi data in both apps and flows (read-only data) which you can take and write to any data source of your choice.
hey Reza, Hope you are doing good. How did we Patch Multi choice column to SharePoint from ComboBox? It is working with hard coded but not with the Combo Box selected items.
@@RezaDorrani Thanks. New Courses':Table({Value:ComboBox1.Selected.Value},{Value:ComboBox1.Selected.Value})}) New Courses: Is SharePoint List Column name. EveryTime I am patching, getting the item patched. Example: PowerApps as subject. Tried SelectedItems too but not working
@@fakharahmedkhan5157 Cannot guess here by looking at chat. It should work. But seems u r simply assigning same value twice. I will recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Hi Mustafa, Lookup columns need the following format { Value: "", Id: 2// Id of lookup column } So a multi values lookup would be Table( { Value: "", Id: 2// Id of lookup column }, { Value: "", Id: 1// Id of lookup column } ) Table(Value:Dropdown.selected.value) is not working for you since format is not right. Also dropdown.selected.value will only give you the text. Try the format shown in this message.
Excellent Video! As are all of your videos. Question, I see on the Video "Patch function with SharePoint Columns" you have "ID of item created". Can you tell us how you did that from Sharepoint? Thank You so much for your great Videos!
Hi sir, can you please help me in this scenario, due to threshold limit of the sharepoint i am able to use 12 lookup columns in my list. but in my required there should be 13 for that i am using text box in the list while customizing in PowerApps for the list form i am using as people picker for one control. My data is saving to the list. but while editing it data is not showing. Please help me sir.
SharePoint has a limit of 12. That cannot be changed in sharepoint online. You would either have to change the column types or look for a different data source.
still helpful after 4 years. QQ How to tackle when display name and User().FullName are slightly different in length. for example, some users drop middle name in profiles but sharepoint picks it up. I will try the workaround of leaving it blank when patching in the meantime
Hello Reza, Thank you for this video I want to update a particular item on a SharePoint List, I need to get the sharepoint item ID and then Patch the record i want to update. E.g Patch(Library,Lookup(Library, Id..... How do I get the particular ID of the item I want to Patch on SP
Lookup is the correct function to use. 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
@@RezaDorrani Thank you! I figured it out. Created a variable and parameter to hold the SharePoint List Item ID and that worked. Please is it possible to patch attachments to a SharePoint List? If yes, please how do we do about it?
I got a lookup column and the user selects multiple items. Then I save it to the collection. Then on a final screen, I got a submit button, I patch the collection to the Sharepoint list. But for the lookup column, I am getting errors. I am trying Metadata(SP):{Value: metadata(collection).Value, Id: metadata(collection).Id}
Hi Reza, your videos are always great. What is the best practice for a multi select combo box when multiple choices are made or updated? Can this patch function be updated to handle that? Thanks again.
Yes, works with all column types except attachments. I did a recent video on Patch function (check if that helps) + video description has link to a blogpost I wrote on Patch function and all SharePoint column types.
@@RezaDorrani Thank you, I missed the link to the blog. Very informative and have added my email. How am I able to add not only my multi select lookup choices and my other fields to the same patch and how is patch used with Table as you show? I know your busy, so I apologize for bothering you; I'm just struggling to make this work for my project.
@@golfnutt8 I do not have a specific video on that. And would have to try it out to let you know how. I would recommend posting your query with screenshots on the forums powerusers.microsoft.com
@@RezaDorrani I did and I have found multiple functions that look like they would help but not with what I am doing. For all I know, being somewhat new to this, is I may be going about this all wrong. I will keep looking. Thanks again.
HI REZA,HAVE FOUND THAT COLLECTION AND FOR ALL WITH PATCH MAKES NO SIGNIFICANT DIFFERENCE .IS USING COLLECTION FOR PATCH IS OTHER OPTION OTHER THAN FOR ALL.thank you for your response.
Hiii ! great video rezaa! i followed your tutorial powerapps bulk data. I successfully create exactly what i want based on the video. But I have a problem where I want to patch data collection to sharepoint but i only can patch 20 data only :( did you know why? Thank you reza !
I have not run into this issue, hence I do not know the reason for this issue. I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Mate great video. You made my day easy, everything I was looking for at a single place 🙌🙌
Thank you
Thank you Vikram
@@RezaDorrani Hi , but i wanted to store multiple users in one record, that multiple users are coming from another share point list in a gallery, on check i am creating collection and i want to patch the selected users by checking check box and store that into collections and wanted to patch that to store in one column
@@amanchourasia1870 I do not have any video references on this use case. I recommend posting your scenario on forums powerusers.microsoft.com/
a few years ago i watched that video and learned how to use patch. it is always a great pleasure to refresh my mind and test if the functions are still useable or if the syntax may has changed. Reza you are a great teacher. thank you so much for all your videos. your calm, precise and clean way to explain this topics by showing usecases is just neat and of real great educational value.
Pardon my French... you're a f*cking Legend!
I'm glad to hear that the video was helpful and continues to provide value. It's always rewarding to know that my explanations and examples are making a positive impact.
This is how every tutorial should be done. Slowly broken down in parts and explained step by step. Thank you Reza
Thank you Ami
Thank you for watching
Video after video you prove that I didn't subscribe for nothing. It's simple, yet very complex and this (important!) stuff is not in the MS documentation. Thanks a lot again.
For reference when I come back - I'm sure I'll check this video more than once - let's note that the summary starts at 20:00, which is brilliantly timed 😉
Thank you for the wonderful feedback. The timing on the summary was indeed perfect 😉
Your channel is enough to build a full fledged business application in PowerApp! . Thank you so much Reza.
Wow! Thank you.
For anyone wondering how to patch attachment column, you can, but for any reason, you have to write at the end of your patch function : patch {….}, form1.updates, form1 this edit form where the attachment component is, and it works !
It works only if you are actually using a form control. Without form control (form1.updates), you cannot patch to attachments column.
Reza, I do not know you, but thank you so much, I spent several hours until I found your video...you are great.
Glad it was helpful! Thank you for watching.
I'm a very lazy dude but with this I have no more excuse to procrastinate. Thanks, Reza. BTW, you made me stopped wasting my life watching all other UA-cams LOL!!!
Thanks for watching. Hoping to make this channel cover most bases of power platform.
@@RezaDorrani Thanks! I'm working on migrating my MS Access apps to MS PowerApps. I'm very interested in the topic of generating reports, especially complicated reports, which Access is very capable of. Watching your tuts on pdf, very helpful and practical (of course!). Greatly appreciate!!!
非常感谢!使用Patch函数将数据上传到Sharepoint的这个步骤很关键,您的视频讲解的非常细致!
感谢您观看和喜欢视频
The User patch was spot on. Thank you! Also, thank for the link to the code, you saved my a lot of time.
Glad to hear it!
this video is a gem ...all scenarios covered with precise details step by step .... I just love it. Thanks a bunch Reza!!
You are most welcome Aroh
One of the most usefull video about Power Apps and SharePoint. Thank you for these high quality videos.
You're very welcome!
That’s great video! I looked for the way to use patch function to choice column, but, it was difficult to find in Japanese content. This video is very helpful for me. ありがとうございます。
Glad it was helpful!
Again, very important video if you want to success with powerapps! thank you Reza.
Thanks for watching David
Hi, Reza, your videos, as always, saved me many hours of headaches. Now, knowing all these principles I can build complex features. Thanks a lot again.
Great to hear! Thank You so much for the feedback.
Thank you Reza. Finally I got the solution to patch the different column types.
Glad to hear that! Thanks for watching.
Best channel i have subscribed so far. Great as always! Thanks!
Thank you for your kind words.
Will try my best to keep posting relevant and useful information.
Thanks a ton for another great tutorial, Reza. Just wished I had found your video wayyyyyy earlier in the day 😅
It’s never too late :)
Man this is amazing, excelent way of showing EVERYTHING, I love it, really good !
Thank you Mauro
Ευχαριστούμε!
Ευχαριστώ
Learned a lot, especially the one on the Lookup columns. Well done!
Thanks Marc
Great tutorial, Reza! Thank you. Perfect timing, too. I’m customizing the Edit form for a new SP document library & really struggling with updating complex data types (choice columns with user fill-in, multi line text columns, yes/no). This video will help tremendously. Looking for to the next one & checking out Audrie’s as well.
Thank you Jim. Glad it was useful.
Audrie is one of my favorites too.
I concur with @Jim Fitch. I was banging my head on my drop-downs using lookup columns, i realize I need to do the drop-downs as choices(…), then every else is easy.
Excellent Video, Please tell us the remaining topic videos.
Check the community tab on my channel. I share all info about upcoming videos there.
Thanks sir for power apps videos in simple language
Your most welcome
Ultimately , I found solution here !!! Thank you.
Welcome 👍
Superb overview - thank you! 👍👍
Thanks Brian
Thank you Reza. I want to include an auto increment in my list. Want function do I use to patch auto number starting from 1 --- to my SharePoint list? I'm running a powerapp survey
SharePoint already has a column called ID which is a unique auto number column.
@@RezaDorrani Thank you. And do you have any recommendations on how I can generate graphs for my PowerApp survey? I tried web part chart on SharePoint but it didn't work out because my survey responses do not contain number values. All responses are I'm text.
@@itstiktok8765 I do not have a video on this scenario. I would have to try it out to provide guidance. I will recommend posting your query on the forums at powerusers.microsoft.com
Hi; Time: 13:40 How are the details unlocked?
I did not understand your question.
This was very helpful to gather the user information from 365 however, what is the formula or input to retrieve the manager's information? I've tried multiple codes/inputs and I can't seem to figure it out.
You would need to use the office 365 users connector to get that information.
I do not have a video reference on this scenario. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Thanks, learned a lot from this!
Yes, great video!
Glad it was helpful!
Thank you
Great video Reza! Thanks!
My pleasure!
Hi Reza! Please, do you have any video for beginners, about collections? Thank you!
Currently No. But is a high priority video in my list.
dear reza thanks for the video.do you know how to patch crm yes/no toogle from power apps please.i got two radio buttons yes,no in powerppas
if i select yes from powerapps and click submit it needs to update in crm .toggle should change to yes and vice versa .i tried path in if condition i am getting errors some how
This video is purely focussed around Power Apps. For CRM (CDS) the format for patching is a little different.
When you are Patching for Yes/No type column in CRM use 'colName (EntityName)'.Yes where colName - is name of your field and EntityName is name of your entity.
@@RezaDorrani thanks very much will try that
Great reference video for all column types, thanks. I’ve come across an issue though with a sharepoint look up column. My list uses a site column which looks up to list on the root site in the site collection however if I try to patch to it the lookup field isn’t visible. If the look up points to a list on the same site then all is well, but not if it is looking at the parent site. Any ideas?
Hi Ian,
Great question. I have not tried it. My guess would be that you would need to include some sought of relationship with the root site.
Modern SharePoint world is flat, meaning you build site collections and not sub sites. You can also relate sites together using the new hub features. There is also new CT hub publishing features coming soon.
@@RezaDorrani Many thanks for your reply. I am finding your videos very helpful. My issue comes from having a legacy sharepoint set up with a large hierarchy of sites and sub sites. Following the demise of sharepoint designer it’s a shame MS didn’t consider backward compatibility with power apps functionality. I’ll investigate the hub features you’ve mentioned and see what they have to offer as a solution. I don’t suppose you have done a video on them as well, have you. Many thanks again.
@@iancrosby7265 I have not done videos on SharePoint but have been working on SharePoint since 2007 :)
Here is the reference documentation for hub sites - docs.microsoft.com/en-us/sharepoint/planning-hub-sites
Great Video. I need to do the same thing than you with "subject" but my "subjects" refer to an another sharepoint list as your "class". So There is a multiple selection i need to patch in a column with multiple choices and these column refer to an another list. How can i pass multiple ids?
Tough to understand your question without looking at your App in action. I would recommend posting your query with screenshots on the forums at powerusers.microsoft.com
Hello Reza, can you please share the link of the video where you have prepared a people picker from scractch
I have done plenty of videos. Do not remember in which one I did that. Check either the combo box video or one of my editable grid videos.
Excellent video!!....i have a scenario where the entries are made in sharepoint list directly as its used by different teams, i have developed a power apps for a particular team where they want a text box value to be summed up each time when the particular ID is selected from the drop down....the problem that am facing is i want to alter only one column but since there are few mandatory columns in sharepoint list its asking me to patch a value for those columns, but i dont want to alter any other columns....is there a way to do this
Hi Pricilla ,
If you are using Patch to create a new record, then all mandatory columns need to have values.
If you are using Patch to update a record, then you can update your fields of choice.
@@RezaDorrani got it,thank you
Hi Reza, Always appreciate and enjoy your instruction.
I am trying to write a patch to update an existing record.
I am not using a gallery.
I get an error when attempting to patch a people / group field.
My patch function states an error "Network Error when using patch function: The requested operation is invalid.
Can you tell me what I should be looking for when that error comes up. It is not very clear
I have not come across this issue, hence not sure what the resolution would be. I would have to reproduce your scenario to know the next steps. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani I did and not getting any responses that are helpful. A couple people asked me to post my patch function which I did but without response
@@golfnutt8 Forums is a free platform. You may or may not get the best response. I do not have any bandwidth to validate this and hence asked to check on forums.
@@RezaDorrani Its no problem, I was just wondering if you had heard of anything concerning this. Totally understand you are busy. Again, your videos are amazing and we learn a lot from them.
@@golfnutt8 Thanks for understanding. I have not heard anything on this one.
Reza, do you know if there is a way to patch an Attachment to a SP list. I took the control from another form connected directly to a SP data source but when I try to use a collection with a different structure I cannot map the patch to the attachments field. Any thoughts?
Patch statement does not support attachments.
You would need flow - ua-cam.com/video/g9ChYuTdNd4/v-deo.html
@@RezaDorrani thank you Reza.
Is this the best way to post to a list if you are brining in multiple data sources? I am still learning and so far this seems to be the only option I see. Any insight on this would be greatly appreciated.
Patch and SubmitForm are your options
thanks Reza great tutorial.
You are most welcome
I have a question if I have 3 screens with 3 edit forms and these edit forms have different fields from different tables from my database and I have a button on the last page to save all the information the user inputted how can I save all the information into my database?
If they are form controls, you can simply use the SubmitForm function to submit the data to your database.
Thanks for your valuable videos Reza. Can you please advise how do i create a list with O365 users automatically? Is it possible?
You can use the Office 365 Users connector to list all the users in your Power App
its really good video about patch functionalities.
Glad you liked it
@@RezaDorrani sir, i have need some help about main category item and sub category item display in power app same gallery and how to control because they are two list main category and sub category how to manage pleases guide me how to solve this
@@imranfc your best bet would be to post your query with screenshots on the community forum at powerusers.Microsoft.com since it would be difficult to provide help without looking at your data source, column types and use case.
Thank you
@@RezaDorrani Sir, give me some help about order Id actually I am using function patch forall function
and data save correctly but my problem when I am show this data in gallery and search
repeat order id with multiple rows. I want show only one order id and then I am click to
show other all rows expand with same Id. Kindly help me about this problem
Love your videos. I'm trying to find out how to patch a SharePoint person column with multiple values. I'm my Powerapp I'm using a combo box for the people picker. I've found videos on how to patch SharePoint multiple person field, but the values are hard coded. I need a way to patch multiple people from the combo box people picker input from my user. So far, I can't find out how to do this. Any ideas? Thanks again.
Depends on how the combox is being populated with data. At the end of the day, when you patch the format should be as described in this video.
Awesome! Great info!
Thanks for watching!
Hello Reza, thank you for the video. I would like to know if there is a way to enter a comment in the SharePoint List using Patch.
What is comment? A column or office comments? Patch supports column data. For office comments - I have done a recent video on "Build a Chat experience in Power Apps"
Really, very useful , Thank you so much !!!
Thank you for watching
Hi, i think you made forgot Table at 21:45 for Manged Metadata. I need to add Table for Enterprise keyword column. BTW your vide is very instructive. I learnt a lot again
You would need to add termguid and label with structure as shown in video. I did not cover managed metadata in video but my blog showcases the syntax rezadorrani.com/index.php/2020/05/04/power-apps-patch-function-with-sharepoint/
Really helpful video. Would this patching be the same to Dataverse?
Patch function syntax would be same.
But the column types and formats used for Patching would be different.
Hi Reza when I use combobox with choices and bulkupdating why same value is populated to sharepoint list ,created collection on combobox on change property ,appreciate your answer.
I would have to see your code to know why this is happening.
I would recommend you post your issue with screenshots on the forums at powerusers.microsoft.com/
Reza, the patch can be used with a data form as well. I have found issues with Combobox (with filter) when I move from submitting to patch.
I will have to look at your App in action to provide any guidance. I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani Thanks I will do that.
thx u very much, Il helps me, but what if I want savc the invoice analysed in the same SharePoint List Attchement, what could I do?
Patch function does not support attachments.
Check ua-cam.com/video/3dNeMVLZDHo/v-deo.html
Thanks for sharing. May I know how we can lookup the sharepoint list by user().email and patch to update the info?
ua-cam.com/video/tPxE_-DcWkg/v-deo.html
For Patching you have to follow the format of a person type column as described in this blog post - rezadorrani.com/index.php/2020/05/04/power-apps-patch-function-with-sharepoint/
Hi Reza, hope you doing great.i have a SharePoint choice column, when i use the patch function to submit my form, all the other colums get updated except this particular column, this is what my onSelect function for the submit button looks like "Patch(Helpdesk, Default(Helpdesk), CreateTicketForm.Updates)". Can you help figure out why a particular column isn't updating? Thanks in advance
I will have to look at your App in action to provide guidance. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, is it possible to start with a blank canvas app and then publish to Sharepoint (like infopath) to create the columns?
Start with blank App - Yes.
Publish like InfoPath and create columns - No
What if you have a multi select choice column in share point and you want to patch it with the contents of a collection?
For collection patching, check ua-cam.com/video/VzrarcM9W5k/v-deo.html
How to update both SharePoint list fields and corresponding powerapps field using MS flow?
If I select trigger the action when an item is created in SharePoint, then only SharePoint list field is getting updated ,powerapps form filed will remain same. If I select trigger action as powerapps, then I am not getting the SharePoint form 🆔.
Could you please make a video on this scenario? A simple approval workflow with a status field in powerapps?
If power apps is connected to SharePoint and if SharePoint list is being updated then the changes should reflect in Power Apps. Sounds more like an issue or some disconnect with me understanding your use case. I will recommend you check on the forums at powerusers.microsoft.com/
@@RezaDorrani I have set my status field display mode as view in powerappps, (I don't want to edit the status field by an end user). when I change other field value through workflow, they are getting updated( they have display mode as edit). Hw can I change a field with view mode through workflow.
@@Shinsha-vaami Display mode of control in Power Apps has no effect on updating the field from flow. You can simply use update item action and set the values for the fields.
This video was super helpful, thank you. I'm having an issue with the Patch function in which I want to keep the records that already exist in a multiple select field, but simply add an additional record. To be more specific I have a multiple select people field in my sharepoint list. If record already contains others in the column I want to keep them there, but also add the user to it. Not sure how to keep records that are already in the column and add another record without completely replacing them.
You should store the existing values related to the field in a variable. Then let user make new selections and prior to patching merge the existing and new selection values.
Also, ideally you would want to show the existing values to the user so they can just update them.
If you need more assistance I would recommend posting your query with screenshots to the community forums
powerusers.microsoft.com/t5/General-Discussion/bd-p/PowerAppsForum1
how to patch multiple value in poeple and group? I have manger names display in textbox and need to display them on pepole and group? plz help
rezadorrani.com/index.php/2020/05/04/power-apps-patch-function-with-sharepoint/
HI Reza, with the People Picker control, even if I enter and select another persons name, when the data is patched to SP list, it displays my name and not the person whom I selected.
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
Great walkthrough, question - do you ever work with collections? If so, how do you use a dropdown and or a datepicker in the collection and patch it to a sharepoint list?
I am actually working on a video that showcases how to patch data held in collections for entire record data.
That video should be out coming Tuesday.
Hi Reza, your awesome. Each and every video of your is very informative and easy to understand for beginners like me.
One quick question on this. Say for my requirement I just have a form which need to update and I'm using PATCH function and there is no Gallery or DataTables to select from. But however I'm having a Dropdown in PowerBI to filter this Form(Power BI and PowerApp integration). So in this case is there a syntax which I could use in this place of Defaults(Source_Name)? Because I cannot use Lookup nor First nor Filter functions.
Thanks Pavan.
Even in case of power bi and power apps integration, the home screen will have a gallery.
Check ua-cam.com/video/5y2jJyH4Eu0/v-deo.html
Defaults is used only when you want to create new item.
When editing data for form, you will need the item context.
I have a app which wanted to save multiple people values into SP list and it's already enabled for multiple people selection but how can we store it in SP list using patch, thanks
I do not have a video reference for this scenario. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Great video, thank you
You are welcome!
Hello Reza, I have a gallery with data coming from source A, i can filter that data but i want to move that filtered data into source B which is a sharepoint list. how do i use patch to achieve that?
so i want to use the filtered data in my gallery to create a new records in source B.
Load all filtered data into a collection and patch it in one go.
ua-cam.com/video/VzrarcM9W5k/v-deo.html
How to proceed with a powerapps, full CRUD where the requirement is to have 14 people picker (contacts for each department) with sharepoint list as datasource.
I designed 14 text columns in SPL and within gallery control, combo box for people picker. I'm stuck with accessing each department combo box and patching each of them. Is this the right approach or any other way to do this?
I do not have a video reference on this scenario and would have to try it out to provide guidance. I recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
@@RezaDorrani thank you. I will post this on forum.
Found it. Thanks!!!! Can you patch to tables at the same time?
Which Tables?
Sir, do I have to create another screen for Update-Patch ? Hope you would notice this.
You can use the same screen to update or add records.
I have seen a lot of questions around this on the forums.
I will recommend you check on the forums at powerusers.microsoft.com/
Thanks Reza, it is great video. Do you know how to patch person field with null?
Thank you and you really asked me a question that got me thinking. I found the solution and I would surely be sharing this soon on my twitter handle @rezadorrani. Credit to you.
Your need to do 2 things
1 - Go to experimental feature and turn on formula level error management
2 - Patch your person column as follows
PersonColName: Blank()
Let me know how it goes.
Hi Sir
I have data in Excel 20 Rows and 5 Columns (Columns and Rows may vary based on available data).I want to copy (Ctrl C) all data from excel and past (Ctrl V) into PowerApps canvas and Patch to SharePoint along with few headers in Canvas with the help of button.
Request your help in this regard.
I have never tried that. I dont think copy and paste works that way.
I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani Hi Sir
Thanks for your reply. Request you please suggest any alternate method.
@@bujjibabukj9616 I would have to try this out to suggest. I would recommend you post your query on the forums at powerusers.microsoft.com/
@@RezaDorrani Thank you Sir
I have posted in powerusers.microsoft
Lookup column value is not getting saved into sharepoint list. BUT when I select and wait in the function that I have written it is showing the ID and column value.
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
Great Video. Translationen
Glad you liked it!
I'm having trouble clearing a user and group field in sharepoint once it's set using the PATCH() function.
Is this not supported?
Did you try the technique in this video?
Great informative video
Glad it was helpful!
Thanks Reza for the great video but the video does not contain the last point which is "Patch vs Form"
I have done multiple videos on Patch and Form control.
Thanks, great resource
You're welcome!
That was excellent, thank you. I've used patch a lot but still learned heaps
Glad you liked it Ryan.
I plan to add videos on advanced Patch functions & the Form control soon.
Eager to see the next videos you mention here!
Hey Reza, I am making the Editable Grid based on your video. On both of these videos everything is working except patching the date. even to the collection I can't patch a date from DatePicker, if I use Today() it works, but I am unable to get datepicker working with patch and I've searched all over. Please advise.
It should simply be datepicker.selecteddate. I dont think there is much more to it.
Probably has to do with format of date. See what today() returns and compare it with what you are providing from date picker.
I have not faced any issues with dates hence my advise is limited to what I know.
I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani today() works. and when I substitute in any of the following: I've tried:
ApprovalDate: dateApprovalDate.SelectedDate (it's last in the list so no comma)
ApprovalDate:
{ '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
DateValue:dateApprovalDate.SelectedDate
}.DateValue
and just for fun:
ApprovalDate:
{
DateValue:dateApprovalDate.SelectedDate
}.DateValue
I get nothing. I see it in the gallery and then I can see the patch running (little dots moving) then as it tries the date, the frame around it goes bold and the date disappears out of the gallery and isn't in the collection, so when I patch the collection, it's not on the sp list b/c it gets wiped out of the collection. I've looked at every event to see if somehow *I* wiped it out and I don't see anything. I will look into formats and mess around, if anything I've replied with gives you more ideas, I'm just stuck. Thanks Reza for replying. I appreciate it.
@@RezaDorrani Hey Reza, I changed the format, it still didn't work but I noticed when I changed to long format, it first put the longformat date into the gallery field and then it switched to what the format really should be which is mm/dd/yyyy briefly and then blanked out again. Very odd behavior I will check with the forum but, again, if that sparks an idea please share. thanks, Sir.
@@AmyCustomer It has to be format related.
I’m sorry but I cannot assist as I cannot reproduce the issue. Forums will be your best bet.
@@RezaDorrani I totally understand and thank you for pointing me to the forums. And thanks for all the goodness you share. Cheers, Sir.
Hi,
Lookup column is not getting saved into sharepoint list. But in power apps, when I select the column I am trying to save, it is showing both ID and value correctly.
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
is there a way to patch and not do it 1 by 1? similar to submitform
You could use collections and Patch the collection in one go.
Concept of collection Patch ua-cam.com/video/wI6SHGQ9ATg/v-deo.html
@@RezaDorrani Hi thanks for the reply.
I tried checking the video and it seems you still have to input it one by one?
my dilemma is i need a code for
1. Submit - New ID
2. Edit -Old Data, Old ID
3. Save As New - Old Data, Save into New ID
1 and 2 seems easy, but 3 seems to lengthy given that my form contains so many item to be filled up sadly
Currently it seems stupid honestly... Was looking for a way to shorten this.
The first part are text inputs so Update seems to work, the 2nd batch are choices allowing users to input if not in the choices... overall seems like there should be a better way than this? *EDIT cant seem to attach the code due to its length, but basically there are over 600 Datacards in the Screen. I had to use Excel to make it easier to create the Code since it was repetitive.
Patch('PADMOUNTED TRANSFORMER',{'Test ID':Text(DataCardValue2.SelectedDate,"yyyy-mm-dd-PDMT-")& Last('PADMOUNTED TRANSFORMER').ID+1,
'Date of Test':'Date of Test_DataCard1'.Update,
'Project Code':'Project Code_DataCard1'.Update,
Client:Client_DataCard1.Update,
Address:Address_DataCard1.Update,
Equipment:Equipment_DataCard1.Update,................................
//2nd part//
'Tap Setting':If(!IsBlank(DataCardValue22.Selected),DataCardValue22.Selected,If(!IsBlank(DataCardValue22.SearchText),{Value: DataCardValue22.SearchText,'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"},Blank())),
'TTR Test Equipment':If(!IsBlank(DataCardValue23.Selected),DataCardValue23.Selected,If(!IsBlank(DataCardValue23.SearchText),{Value: DataCardValue23.SearchText,'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"},Blank())),..........................
Any idea is appreciated. TIA
@@grapegh0stx I would have to look at your app in action (screenshots) to provide any guidance. I will recommend you post your issue with screenshots on the forums at powerusers.microsoft.com/
Hi Reza..
A quick query..
I am trying to patch my powerapp with Excel database in OneDrive for business.
It created a powerappid in file..
But the data is not getting captured.
Can you guide on this issue please.
Hi Ashish, I would have to see the code base to help.
I would recommend posting your issue with screenshots on the forums at powerusers.microsoft.com/t5/Building-Power-Apps/bd-p/PowerAppsForum1
does patch work with gallery selected items? in a power bi report?
(Power App visual in power bi report)
Power BI data set is read only.
I have done videos on how to connect back to source from power bi and update using patch.
Check ua-cam.com/video/5y2jJyH4Eu0/v-deo.html
@@RezaDorrani Thanks for the reply. I don't want to write back to the data source though I want to read the Power BI data to a Sharepoint List through the Power App visual. Is this possible even with power automate?
@@fenrir433 Please check my videos on power bi integration with apps and flows. I have done videos on them. You can read power bi data in both apps and flows (read-only data) which you can take and write to any data source of your choice.
hey Reza, Hope you are doing good. How did we Patch Multi choice column to SharePoint from ComboBox? It is working with hard coded but not with the Combo Box selected items.
Make sure output of combo box control when patch is in following format
Table({Value:"a"},{Value:"b"})
or [{Value:"a"},{Value:"b"}]
@@RezaDorrani Thanks. New Courses':Table({Value:ComboBox1.Selected.Value},{Value:ComboBox1.Selected.Value})})
New Courses: Is SharePoint List Column name.
EveryTime I am patching, getting the item patched. Example: PowerApps as subject.
Tried SelectedItems too but not working
Patch('Student Fee Tracker',{Title:TextInput1.Text,Name:TextInput1_1.Text,Fees:Toggle1.Value,'Fee Submitted Date':DatePicker1.SelectedDate,Batch:{Value:Dropdown1.Selected.Value},'Number of Student':Value(TextInput2.Text),'New Courses':Table({Value:ComboBox1.Selected.Value},{Value:ComboBox1.Selected.Value})})
@@fakharahmedkhan5157 Cannot guess here by looking at chat. It should work. But seems u r simply assigning same value twice. I will recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Hey Reza, how to Patch Multi- Value Lookup Column in SP List, Table(Value:Dropdown.selected.value) not working for me.
Hi Mustafa,
Lookup columns need the following format
{
Value: "",
Id: 2// Id of lookup column
}
So a multi values lookup would be
Table(
{
Value: "",
Id: 2// Id of lookup column
},
{
Value: "",
Id: 1// Id of lookup column
}
)
Table(Value:Dropdown.selected.value) is not working for you since format is not right. Also dropdown.selected.value will only give you the text. Try the format shown in this message.
Thank you for your work. But what about patch with controls for numbers?
Just directly patch that column with numerical value. Example:
numberColumn: 1
Excellent Video! As are all of your videos. Question, I see on the Video "Patch function with SharePoint Columns" you have "ID of item created". Can you tell us how you did that from Sharepoint? Thank You so much for your great Videos!
ID is created automatically in SharePoint.
@@RezaDorrani Thanks for the quick response, but how do I get that ID in Powerapps to use after it is automatically created in Sharepoint?
@@ronpalyok3212 When you get the item, you will get the id also.
@@RezaDorrani Wow how quick!!! If I patch a record, how do I get the ID
@@ronpalyok3212 Simply save the response of patch in a variable. Set(x, Patch(...))
x will have all the data you need.
Hi sir, can you please help me in this scenario, due to threshold limit of the sharepoint i am able to use 12 lookup columns in my list. but in my required there should be 13 for that i am using text box in the list while customizing in PowerApps for the list form i am using as people picker for one control. My data is saving to the list. but while editing it data is not showing. Please help me sir.
SharePoint has a limit of 12. That cannot be changed in sharepoint online.
You would either have to change the column types or look for a different data source.
Hello, i want to add a value to the lookup dropdown, can u plz help
ua-cam.com/video/BzZ0a3zRFUk/v-deo.html
still helpful after 4 years. QQ How to tackle when display name and User().FullName are slightly different in length. for example, some users drop middle name in profiles but sharepoint picks it up. I will try the workaround of leaving it blank when patching in the meantime
Great to hear!
Use one or the other to keep things consistent. Or simply query users profile using o365users connector.
Hello Reza,
Thank you for this video
I want to update a particular item on a SharePoint List, I need to get the sharepoint item ID and then Patch the record i want to update. E.g Patch(Library,Lookup(Library, Id..... How do I get the particular ID of the item I want to Patch on SP
Lookup is the correct function to use. 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
@@RezaDorrani Thank you! I figured it out. Created a variable and parameter to hold the SharePoint List Item ID and that worked. Please is it possible to patch attachments to a SharePoint List? If yes, please how do we do about it?
@@theresaa.efiokwu9863 Patch function does not support attachments.
@@RezaDorrani Thank you for your swift response. What method would you advise since we are unable to Patch Attachments?
@@theresaa.efiokwu9863 form control. I have done many videos on attachments.
I got a lookup column and the user selects multiple items. Then I save it to the collection. Then on a final screen, I got a submit button, I patch the collection to the Sharepoint list. But for the lookup column, I am getting errors. I am trying Metadata(SP):{Value: metadata(collection).Value, Id: metadata(collection).Id}
Is your lookup column multi select or single?
A collection is an array - you can only pass 1 value at a time to the Value and Id property.
Great video...! Thanks
can u please suggest on how can I duplicate the gallery item and submit it with a new ID to SP?
Using defaults(datasource) in patch will post data as a new item to data source. This will automatically generate a new ID in SP.
this is useful!
Glad to hear that!
Can I have the link for video on IT Helpdesk ticket through powerapps and sharepoint
I don't think I have a video on that scenario. Here is a link to all my videos ua-cam.com/users/RezaDorranivideos
@@RezaDorrani Thank you so much!!
Hi Reza, your videos are always great.
What is the best practice for a multi select combo box when multiple choices are made or updated? Can this patch function be updated to handle that?
Thanks again.
Yes, works with all column types except attachments. I did a recent video on Patch function (check if that helps) + video description has link to a blogpost I wrote on Patch function and all SharePoint column types.
@@RezaDorrani Thank you, I missed the link to the blog. Very informative and have added my email.
How am I able to add not only my multi select lookup choices and my other fields to the same patch and how is patch used with Table as you show?
I know your busy, so I apologize for bothering you; I'm just struggling to make this work for my project.
@@golfnutt8 I do not have a specific video on that. And would have to try it out to let you know how. I would recommend posting your query with screenshots on the forums powerusers.microsoft.com
@@RezaDorrani I did and I have found multiple functions that look like they would help but not with what I am doing.
For all I know, being somewhat new to this, is I may be going about this all wrong. I will keep looking.
Thanks again.
@11:39 "...if I remove the ID..." => If I move the Value
I believe ID is required for lookup column
@@RezaDorrani you said remove ID, but you removed Value instead.
@@moyura2 Ahh. Sorry. Mistake in video :)
HI REZA,HAVE FOUND THAT COLLECTION AND FOR ALL WITH PATCH MAKES NO SIGNIFICANT DIFFERENCE .IS USING COLLECTION FOR PATCH IS OTHER OPTION OTHER THAN FOR ALL.thank you for your response.
Patch collection is way faster than forall and more performant.
Check - ua-cam.com/video/VzrarcM9W5k/v-deo.html
how about if you have 2 data source ? will it work? patching on different data source?
You would need 2 patch statements for that. A patch statement works with a single data source.
Will it work 2 patch stament? With comma?,
@@jefflim8895 patch(..);patch(…)
@@RezaDorrani thank you 😁 i will try it
It is also possible to do a submitform and patch? Together?
Hiii ! great video rezaa! i followed your tutorial powerapps bulk data. I successfully create exactly what i want based on the video. But I have a problem where I want to patch data collection to sharepoint but i only can patch 20 data only :( did you know why? Thank you reza !
I have not run into this issue, hence I do not know the reason for this issue.
I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com