Тёмный

Power Apps Patch function with SharePoint Columns 

Reza Dorrani
Подписаться 128 тыс.
Просмотров 118 тыс.
50% 1

In this video on Power Apps Patch function with SharePoint Columns, we will create and update items for all SharePoint column types along with tips & best practices for using the Patch function or Patch command.
Patch Function blog post for all SharePoint column types
- This blog has all the commands demonstrated in this video
rezadorrani.com/index.php/2020...
Power Apps SharePoint Managed Metadata column -
Part 1 - • Friday Functions Serie...
Part 2 - • Friday Function Series...
Power Apps Yes/No column bug link
rezadorrani.com/index.php/2019...

Опубликовано:

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 352   
@vikramhiremath5784
@vikramhiremath5784 4 года назад
Mate great video. You made my day easy, everything I was looking for at a single place 🙌🙌
@RezaDorrani
@RezaDorrani 4 года назад
Thank you
@RezaDorrani
@RezaDorrani 3 года назад
Thank you Vikram
@amanchourasia1870
@amanchourasia1870 Год назад
@@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
@RezaDorrani
@RezaDorrani Год назад
@@amanchourasia1870 I do not have any video references on this use case. I recommend posting your scenario on forums powerusers.microsoft.com/
@GrEgO169
@GrEgO169 4 дня назад
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 !
@RezaDorrani
@RezaDorrani 3 дня назад
It works only if you are actually using a form control. Without form control (form1.updates), you cannot patch to attachments column.
@ImranAmiKh4n
@ImranAmiKh4n 3 года назад
This is how every tutorial should be done. Slowly broken down in parts and explained step by step. Thank you Reza
@RezaDorrani
@RezaDorrani 3 года назад
Thank you Ami
@RezaDorrani
@RezaDorrani 3 года назад
Thank you for watching
@dasajeeva6875
@dasajeeva6875 3 года назад
Your channel is enough to build a full fledged business application in PowerApp! . Thank you so much Reza.
@RezaDorrani
@RezaDorrani 3 года назад
Wow! Thank you.
@ArohShukla
@ArohShukla 3 года назад
this video is a gem ...all scenarios covered with precise details step by step .... I just love it. Thanks a bunch Reza!!
@RezaDorrani
@RezaDorrani 3 года назад
You are most welcome Aroh
@user-jh4jb9qm9x
@user-jh4jb9qm9x 2 года назад
非常感谢!使用Patch函数将数据上传到Sharepoint的这个步骤很关键,您的视频讲解的非常细致!
@RezaDorrani
@RezaDorrani 2 года назад
感谢您观看和喜欢视频
@sergiocarreno1529
@sergiocarreno1529 3 года назад
Reza, I do not know you, but thank you so much, I spent several hours until I found your video...you are great.
@RezaDorrani
@RezaDorrani 3 года назад
Glad it was helpful! Thank you for watching.
@vasylsalyk165
@vasylsalyk165 2 года назад
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.
@RezaDorrani
@RezaDorrani 2 года назад
Great to hear! Thank You so much for the feedback.
@mauroquinteros8783
@mauroquinteros8783 3 года назад
Man this is amazing, excelent way of showing EVERYTHING, I love it, really good !
@RezaDorrani
@RezaDorrani 3 года назад
Thank you Mauro
@robertsummerford6368
@robertsummerford6368 2 года назад
The User patch was spot on. Thank you! Also, thank for the link to the code, you saved my a lot of time.
@RezaDorrani
@RezaDorrani 2 года назад
Glad to hear it!
@vanderstraetenmarc
@vanderstraetenmarc 4 года назад
Learned a lot, especially the one on the Lookup columns. Well done!
@RezaDorrani
@RezaDorrani 4 года назад
Thanks Marc
@fritznie4456
@fritznie4456 4 года назад
Best channel i have subscribed so far. Great as always! Thanks!
@RezaDorrani
@RezaDorrani 4 года назад
Thank you for your kind words. Will try my best to keep posting relevant and useful information.
@davidjimenez8952
@davidjimenez8952 3 года назад
Again, very important video if you want to success with powerapps! thank you Reza.
@RezaDorrani
@RezaDorrani 3 года назад
Thanks for watching David
@seshasai7348
@seshasai7348 Год назад
Thank you Reza. Finally I got the solution to patch the different column types.
@RezaDorrani
@RezaDorrani Год назад
Glad to hear that! Thanks for watching.
@akkaradechsrithongchai7766
@akkaradechsrithongchai7766 2 года назад
Ultimately , I found solution here !!! Thank you.
@RezaDorrani
@RezaDorrani 2 года назад
Welcome 👍
@JoeriBlomberg
@JoeriBlomberg 3 года назад
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 😉
@RezaDorrani
@RezaDorrani 3 года назад
Thank you for the wonderful feedback. The timing on the summary was indeed perfect 😉
@indeeed0
@indeeed0 4 месяца назад
One of the most usefull video about Power Apps and SharePoint. Thank you for these high quality videos.
@RezaDorrani
@RezaDorrani 4 месяца назад
You're very welcome!
@user-xi8cm2yx3c
@user-xi8cm2yx3c 2 года назад
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. ありがとうございます。
@RezaDorrani
@RezaDorrani 2 года назад
Glad it was helpful!
@shailajawarkar5583
@shailajawarkar5583 2 года назад
Thanks sir for power apps videos in simple language
@RezaDorrani
@RezaDorrani 2 года назад
Your most welcome
@jimfitch
@jimfitch 3 года назад
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.
@RezaDorrani
@RezaDorrani 3 года назад
Thank you Jim. Glad it was useful. Audrie is one of my favorites too.
@webdevca
@webdevca 3 года назад
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.
@charles-antoinedolbeau5215
@charles-antoinedolbeau5215 4 года назад
Thank you, it covers everything I was looking for. I even took a quick look at your error management ;-)
@RezaDorrani
@RezaDorrani 4 года назад
Good observation. Did not include that as I wanted to keep the video basic. But glad you noticed and are using it!
@BobChauvinatgmail
@BobChauvinatgmail 2 года назад
Excellent. Thank you for sharing.
@RezaDorrani
@RezaDorrani 2 года назад
Thanks for listening
@briancanfield2968
@briancanfield2968 2 года назад
Superb overview - thank you! 👍👍
@RezaDorrani
@RezaDorrani 2 года назад
Thanks Brian
@alangustavo8249
@alangustavo8249 3 года назад
Great video Reza! Thanks!
@RezaDorrani
@RezaDorrani 3 года назад
My pleasure!
@AI-Health-posts
@AI-Health-posts 2 года назад
thanks Reza great tutorial.
@RezaDorrani
@RezaDorrani 2 года назад
You are most welcome
@ElCz18
@ElCz18 Год назад
Thanks a ton for another great tutorial, Reza. Just wished I had found your video wayyyyyy earlier in the day 😅
@RezaDorrani
@RezaDorrani Год назад
It’s never too late :)
@subrataranjanpal6518
@subrataranjanpal6518 3 года назад
Really, very useful , Thank you so much !!!
@RezaDorrani
@RezaDorrani 3 года назад
Thank you for watching
@saigonpilots7063
@saigonpilots7063 Год назад
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 RU-vids LOL!!!
@RezaDorrani
@RezaDorrani Год назад
Thanks for watching. Hoping to make this channel cover most bases of power platform.
@saigonpilots7063
@saigonpilots7063 Год назад
@@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!!!
@shawnlloyd7526
@shawnlloyd7526 4 года назад
Awesome! Great info!
@RezaDorrani
@RezaDorrani 4 года назад
Thanks for watching!
@PaulHancock2020
@PaulHancock2020 4 года назад
Great video, thank you
@RezaDorrani
@RezaDorrani 4 года назад
You are welcome!
@jasonbradley2843
@jasonbradley2843 4 года назад
Thanks, great resource
@RezaDorrani
@RezaDorrani 4 года назад
You're welcome!
@pr0fessorMor
@pr0fessorMor 4 года назад
Thanks, learned a lot from this!
@fritznie4456
@fritznie4456 4 года назад
Yes, great video!
@RezaDorrani
@RezaDorrani 4 года назад
Glad it was helpful!
@RezaDorrani
@RezaDorrani 4 года назад
Thank you
@RyanBond
@RyanBond 4 года назад
That was excellent, thank you. I've used patch a lot but still learned heaps
@RezaDorrani
@RezaDorrani 4 года назад
Glad you liked it Ryan. I plan to add videos on advanced Patch functions & the Form control soon.
@jimfitch
@jimfitch 3 года назад
Eager to see the next videos you mention here!
@iferrari1
@iferrari1 2 года назад
Ευχαριστούμε!
@RezaDorrani
@RezaDorrani 2 года назад
Ευχαριστώ
@ehabatme5324
@ehabatme5324 4 года назад
Great informative video
@RezaDorrani
@RezaDorrani 4 года назад
Glad it was helpful!
@MLeosud
@MLeosud 3 года назад
awesome! thanks you!
@RezaDorrani
@RezaDorrani 3 года назад
You're welcome!
@UncleF115
@UncleF115 Год назад
this is useful!
@RezaDorrani
@RezaDorrani Год назад
Glad to hear that!
@RobHerma91
@RobHerma91 3 года назад
Great Video. Translationen
@RezaDorrani
@RezaDorrani 3 года назад
Glad you liked it!
@RameshTime
@RameshTime 3 года назад
Excellent Video, Please tell us the remaining topic videos.
@RezaDorrani
@RezaDorrani 3 года назад
Check the community tab on my channel. I share all info about upcoming videos there.
@imranfc
@imranfc 3 года назад
its really good video about patch functionalities.
@RezaDorrani
@RezaDorrani 3 года назад
Glad you liked it
@imranfc
@imranfc 3 года назад
@@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
@RezaDorrani
@RezaDorrani 3 года назад
@@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
@RezaDorrani 3 года назад
Thank you
@imranfc
@imranfc 3 года назад
@@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
@jhhatcher1885
@jhhatcher1885 3 года назад
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?
@RezaDorrani
@RezaDorrani 3 года назад
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.
@D63JOE
@D63JOE 4 года назад
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.
@RezaDorrani
@RezaDorrani 4 года назад
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
@itubeHirschberg
@itubeHirschberg 3 года назад
Vielen Dank
@RezaDorrani
@RezaDorrani 3 года назад
Sie sind herzlich willkommen
@anthonyleduc
@anthonyleduc 2 года назад
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
@RezaDorrani
@RezaDorrani 2 года назад
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/
@pavan300891
@pavan300891 2 года назад
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.
@RezaDorrani
@RezaDorrani 2 года назад
Thanks Pavan. Even in case of power bi and power apps integration, the home screen will have a gallery. Check ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5y2jJyH4Eu0.html Defaults is used only when you want to create new item. When editing data for form, you will need the item context.
@philglew-deval
@philglew-deval 2 года назад
Really helpful video. Would this patching be the same to Dataverse?
@RezaDorrani
@RezaDorrani 2 года назад
Patch function syntax would be same. But the column types and formats used for Patching would be different.
@marienaalvarez8235
@marienaalvarez8235 Год назад
Found it. Thanks!!!! Can you patch to tables at the same time?
@RezaDorrani
@RezaDorrani Год назад
Which Tables?
@bregan507you
@bregan507you 3 года назад
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.
@RezaDorrani
@RezaDorrani 3 года назад
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.
@hannahkays7771
@hannahkays7771 2 года назад
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.
@RezaDorrani
@RezaDorrani 2 года назад
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.
@fawzyel-fakharany5622
@fawzyel-fakharany5622 3 года назад
Thanks Reza, it is great video. Do you know how to patch person field with null?
@RezaDorrani
@RezaDorrani 3 года назад
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.
@sameh2967
@sameh2967 Год назад
Thanks Reza for the great video but the video does not contain the last point which is "Patch vs Form"
@RezaDorrani
@RezaDorrani Год назад
I have done multiple videos on Patch and Form control.
@javiergarcell3075
@javiergarcell3075 2 года назад
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.
@RezaDorrani
@RezaDorrani 2 года назад
Patch and SubmitForm are your options
@mohansrinivasamurthy8770
@mohansrinivasamurthy8770 3 года назад
Thanks for your valuable videos Reza. Can you please advise how do i create a list with O365 users automatically? Is it possible?
@RezaDorrani
@RezaDorrani 3 года назад
You can use the Office 365 Users connector to list all the users in your Power App
@iancrosby7265
@iancrosby7265 3 года назад
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?
@RezaDorrani
@RezaDorrani 3 года назад
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.
@iancrosby7265
@iancrosby7265 3 года назад
@@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.
@RezaDorrani
@RezaDorrani 3 года назад
@@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
@saratchandra7388
@saratchandra7388 3 года назад
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.
@RezaDorrani
@RezaDorrani 3 года назад
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/
@jayl1242
@jayl1242 2 года назад
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?
@RezaDorrani
@RezaDorrani 2 года назад
Patch function does not support attachments. Check ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3dNeMVLZDHo.html
@AltafRehmani
@AltafRehmani 4 года назад
Excellent video! Can you please do one for cds as well?
@RezaDorrani
@RezaDorrani 4 года назад
I do have a backlog of planned videos. Will add it to my list. I do plan on creating a voting feature for subscribers in future. That ways I am creating content in line with subscriber requests.
@ahmadyamout1115
@ahmadyamout1115 3 года назад
Thank you for your work. But what about patch with controls for numbers?
@RezaDorrani
@RezaDorrani 3 года назад
Just directly patch that column with numerical value. Example: numberColumn: 1
@sanmeshghongade
@sanmeshghongade 4 года назад
Great video...! Thanks can u please suggest on how can I duplicate the gallery item and submit it with a new ID to SP?
@RezaDorrani
@RezaDorrani 4 года назад
Using defaults(datasource) in patch will post data as a new item to data source. This will automatically generate a new ID in SP.
@moiseclaudia6881
@moiseclaudia6881 3 года назад
Hi Reza! Please, do you have any video for beginners, about collections? Thank you!
@RezaDorrani
@RezaDorrani 3 года назад
Currently No. But is a high priority video in my list.
@MelvinHtet
@MelvinHtet 3 года назад
Thanks for sharing. May I know how we can lookup the sharepoint list by user().email and patch to update the info?
@RezaDorrani
@RezaDorrani 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tPxE_-DcWkg.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/
@itstiktok8765
@itstiktok8765 2 года назад
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
@RezaDorrani 2 года назад
SharePoint already has a column called ID which is a unique auto number column.
@itstiktok8765
@itstiktok8765 2 года назад
@@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.
@RezaDorrani
@RezaDorrani 2 года назад
@@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
@xclone2k
@xclone2k 3 года назад
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?
@RezaDorrani
@RezaDorrani 3 года назад
Patch statement does not support attachments. You would need flow - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-g9ChYuTdNd4.html
@xclone2k
@xclone2k 3 года назад
@@RezaDorrani thank you Reza.
@johnnykal
@johnnykal 2 года назад
Hi Reza, is it possible to start with a blank canvas app and then publish to Sharepoint (like infopath) to create the columns?
@RezaDorrani
@RezaDorrani 2 года назад
Start with blank App - Yes. Publish like InfoPath and create columns - No
@pricillajackline7258
@pricillajackline7258 3 года назад
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
@RezaDorrani
@RezaDorrani 3 года назад
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.
@pricillajackline7258
@pricillajackline7258 3 года назад
@@RezaDorrani got it,thank you
@excel-k-sir
@excel-k-sir Год назад
Hello Reza, can you please share the link of the video where you have prepared a people picker from scractch
@RezaDorrani
@RezaDorrani Год назад
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.
@tusharmehtadxb
@tusharmehtadxb 3 года назад
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.
@RezaDorrani
@RezaDorrani 3 года назад
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
@tusharmehtadxb
@tusharmehtadxb 3 года назад
@@RezaDorrani Thanks I will do that.
@sandrinefournier6106
@sandrinefournier6106 2 года назад
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?
@RezaDorrani
@RezaDorrani 2 года назад
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
@golfnutt8
@golfnutt8 Год назад
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.
@RezaDorrani
@RezaDorrani Год назад
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.
@golfnutt8
@golfnutt8 Год назад
​@@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.
@RezaDorrani
@RezaDorrani Год назад
@@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
@golfnutt8
@golfnutt8 Год назад
@@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.
@Itsprincessa01
@Itsprincessa01 3 года назад
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.
@RezaDorrani
@RezaDorrani 3 года назад
Load all filtered data into a collection and patch it in one go. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VzrarcM9W5k.html
@lll809
@lll809 3 года назад
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
@RezaDorrani
@RezaDorrani 3 года назад
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.
@lll809
@lll809 3 года назад
@@RezaDorrani thanks very much will try that
@BhushanPrasad
@BhushanPrasad 2 года назад
Dear Reza, Thank you for the video, its very helpful. I have question. I have 2 person column in sharepoint list, How can I patch if one of them is optional? Thanks You :)
@RezaDorrani
@RezaDorrani 2 года назад
Patch does not force to add optional fields. You can avoid patching that column in formula.
@pythonblac130
@pythonblac130 Год назад
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
@RezaDorrani
@RezaDorrani Год назад
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
@LORD_ORiGiNALz
@LORD_ORiGiNALz 2 года назад
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
@RezaDorrani 2 года назад
If they are form controls, you can simply use the SubmitForm function to submit the data to your database.
@peanuttv6748
@peanuttv6748 2 года назад
Sir, do I have to create another screen for Update-Patch ? Hope you would notice this.
@RezaDorrani
@RezaDorrani 2 года назад
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/
@colby4390
@colby4390 3 года назад
What if you have a multi select choice column in share point and you want to patch it with the contents of a collection?
@RezaDorrani
@RezaDorrani 3 года назад
For collection patching, check ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VzrarcM9W5k.html
@saratchandra7388
@saratchandra7388 3 года назад
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.
@RezaDorrani
@RezaDorrani 3 года назад
Patch collection is way faster than forall and more performant. Check - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VzrarcM9W5k.html
@shankarsivaji5039
@shankarsivaji5039 2 года назад
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
@RezaDorrani 2 года назад
rezadorrani.com/index.php/2020/05/04/power-apps-patch-function-with-sharepoint/
@shanthanalaxmirajaram7172
@shanthanalaxmirajaram7172 2 года назад
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
@RezaDorrani
@RezaDorrani 2 года назад
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
@sudosaurus
@sudosaurus Год назад
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.
@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
@mustafahussainmohsin320
@mustafahussainmohsin320 4 года назад
Awesome Video, Mr Reza Dorrani, but I want to patch different functions, based on the DropDown Selection, lets say, if user selected, "Day off" so the form will show day off details and then patch its respective fields, and if the user selected "Annual leave", so the form will show its respective field and only the respective fields should patch. right now I am doing submitform(form1), which is submitting the whole even though I have not entered the text in different selected dropdown. can you help me with this logic? @Reza
@RezaDorrani
@RezaDorrani 4 года назад
SubmitForm concept is different from Patch function. I would recommend posting your query on the community forum at powerusers.microsoft.com/t5/General-Discussion/bd-p/PowerAppsForum1
@fenrir433
@fenrir433 Год назад
does patch work with gallery selected items? in a power bi report? (Power App visual in power bi report)
@RezaDorrani
@RezaDorrani Год назад
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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5y2jJyH4Eu0.html
@fenrir433
@fenrir433 Год назад
@@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?
@RezaDorrani
@RezaDorrani Год назад
@@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.
@fakharahmedkhan5157
@fakharahmedkhan5157 Год назад
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
@RezaDorrani Год назад
Make sure output of combo box control when patch is in following format Table({Value:"a"},{Value:"b"}) or [{Value:"a"},{Value:"b"}]
@fakharahmedkhan5157
@fakharahmedkhan5157 Год назад
@@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
@fakharahmedkhan5157 Год назад
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})})
@RezaDorrani
@RezaDorrani Год назад
@@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
@kanishkaroychowdhury4050
@kanishkaroychowdhury4050 4 года назад
hi very informative and helpful video. One question... the "Class" column in "Students" list is fetching the value from another list "Class". But in Items property you mentioned, "Choices (Student.Class)" why that so? How will we get other class values which are not saved in "Students" list but are in the "Class" list "Title" column? and another issue... how can i display people from gallery selected plz?
@RezaDorrani
@RezaDorrani 4 года назад
Class is a lookup column associated with the list "Class". Hence using Choices(Student.Class) works. You could also directly get the values from the Class list. Both approaches will work. Both approaches will show you all the data from the Class list even ones that are not saved in Students list. Display people from gallery selected? Do you mean filtering gallery data based on people picker column? Check this - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tPxE_-DcWkg.html
@kanishkaroychowdhury4050
@kanishkaroychowdhury4050 4 года назад
@@RezaDorrani hi again a great video... may be if u please give an idea how to fetch the people field in a combo box and change / edit on it
@sriramsivakumar531
@sriramsivakumar531 8 месяцев назад
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?
@RezaDorrani
@RezaDorrani 8 месяцев назад
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
@sriramsivakumar531
@sriramsivakumar531 8 месяцев назад
@@RezaDorrani thank you. I will post this on forum.
@golfnutt8
@golfnutt8 Год назад
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
@RezaDorrani
@RezaDorrani Год назад
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
@golfnutt8
@golfnutt8 Год назад
@@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
@RezaDorrani
@RezaDorrani Год назад
@@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.
@golfnutt8
@golfnutt8 Год назад
@@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.
@RezaDorrani
@RezaDorrani Год назад
@@golfnutt8 Thanks for understanding. I have not heard anything on this one.
@techdrift73
@techdrift73 Год назад
How does the patch work if your 'Class' (Office 365 Users column - 'Department' in my case) is provided dynamically when you select the student from a people picker combobox? ie you don't select class from the dropdown, the class is obtained and placed in a textbox when you select your student? - Thanks. This video has answered all my other questions👌
@RezaDorrani
@RezaDorrani Год назад
If department is a text column, you can simply patch it with combobox.selected.department Something on these lines.
@techdrift73
@techdrift73 Год назад
@@RezaDorrani Sorry, didn't mention that the 'Class' column is a lookup column to another list that has the corresponding grade for the classes. Ie class 9w is a grade 9 class thank you for the quick response.
@RezaDorrani
@RezaDorrani Год назад
@@techdrift73 This is something I would have to look at or try out. I will recommend posting your query with screenshots on the forums at powerusers.microsoft.com
@techdrift73
@techdrift73 Год назад
@@RezaDorrani Done, title is 'Patch lookup column from another list'
@RezaDorrani
@RezaDorrani Год назад
@@techdrift73 I go to forums to assist in my free time only. There are many other folks who provide guidance.
@nuraindamia9582
@nuraindamia9582 Год назад
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 !
@RezaDorrani
@RezaDorrani Год назад
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
@grapegh0stx
@grapegh0stx 2 года назад
is there a way to patch and not do it 1 by 1? similar to submitform
@RezaDorrani
@RezaDorrani 2 года назад
You could use collections and Patch the collection in one go. Concept of collection Patch ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-wI6SHGQ9ATg.html
@grapegh0stx
@grapegh0stx 2 года назад
​@@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
@RezaDorrani
@RezaDorrani 2 года назад
​@@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/
@fasawan2477
@fasawan2477 3 года назад
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}
@RezaDorrani
@RezaDorrani 3 года назад
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.
@mustafahussainmohsin320
@mustafahussainmohsin320 3 года назад
Hey Reza, how to Patch Multi- Value Lookup Column in SP List, Table(Value:Dropdown.selected.value) not working for me.
@RezaDorrani
@RezaDorrani 3 года назад
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.
@minvisusanpaul2212
@minvisusanpaul2212 Год назад
Hello, i want to add a value to the lookup dropdown, can u plz help
@RezaDorrani
@RezaDorrani Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BzZ0a3zRFUk.html
@joek2904
@joek2904 3 года назад
I'm having trouble clearing a user and group field in sharepoint once it's set using the PATCH() function. Is this not supported?
@RezaDorrani
@RezaDorrani 3 года назад
Did you try the technique in this video?
@ronpalyok3212
@ronpalyok3212 Год назад
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!
@RezaDorrani
@RezaDorrani Год назад
ID is created automatically in SharePoint.
@ronpalyok3212
@ronpalyok3212 Год назад
@@RezaDorrani Thanks for the quick response, but how do I get that ID in Powerapps to use after it is automatically created in Sharepoint?
@RezaDorrani
@RezaDorrani Год назад
@@ronpalyok3212 When you get the item, you will get the id also.
@ronpalyok3212
@ronpalyok3212 Год назад
@@RezaDorrani Wow how quick!!! If I patch a record, how do I get the ID
@RezaDorrani
@RezaDorrani Год назад
@@ronpalyok3212 Simply save the response of patch in a variable. Set(x, Patch(...)) x will have all the data you need.
@venkatajayaram3599
@venkatajayaram3599 3 месяца назад
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.
@RezaDorrani
@RezaDorrani 3 месяца назад
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
@ashishkulkarni8193
@ashishkulkarni8193 3 года назад
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.
@RezaDorrani
@RezaDorrani 3 года назад
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
@AmyCustomer
@AmyCustomer 11 месяцев назад
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.
@RezaDorrani
@RezaDorrani 11 месяцев назад
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
@AmyCustomer
@AmyCustomer 11 месяцев назад
​@@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.
@AmyCustomer
@AmyCustomer 11 месяцев назад
@@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.
@RezaDorrani
@RezaDorrani 11 месяцев назад
@@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.
@AmyCustomer
@AmyCustomer 11 месяцев назад
@@RezaDorrani I totally understand and thank you for pointing me to the forums. And thanks for all the goodness you share. Cheers, Sir.
@venkatajayaram3599
@venkatajayaram3599 3 месяца назад
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.
@RezaDorrani
@RezaDorrani 3 месяца назад
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
@sudosaurus
@sudosaurus Год назад
Hi Reza - great video as always! For a choice column, do I Ineed to keep repeating the same code for each choice value? - {Value: "choice value"}
@RezaDorrani
@RezaDorrani Год назад
If it's multi select - then array of choices video description has link to blog post
@sudosaurus
@sudosaurus Год назад
@@RezaDorrani generally choice columns have more than one option even if it's not a multi-select column. Otherwise what's the point of having one choice?
@RezaDorrani
@RezaDorrani Год назад
@@sudosaurus What I meant was single select vs multi select. Options would be many.
@sudosaurus
@sudosaurus Год назад
@@RezaDorrani so on the blog post do I need to pay attention to "Choice Column" or "Multi Select Choice column " - if the first (as it's a choice and not-multi-select), do I just need to enter "{Value: "choicevalue1", "choicevalue2"}" etc..?
@RezaDorrani
@RezaDorrani Год назад
@@sudosaurus if single select {Value:”data”} If multi Table({Value:”data”},{Value:”data”})
@Ammuveda
@Ammuveda 2 года назад
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.
@RezaDorrani
@RezaDorrani 2 года назад
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.
Далее