Power Apps Copy Item - Copy a record, make multiple copies, and edit + design tips

  Рет қаралды 37,652

Shane Young

Shane Young

Күн бұрын

Пікірлер: 98
@ivancuervo777
@ivancuervo777 4 жыл бұрын
I see this being useful when someone wants to create same/frequent/common requests without filling out whole forms again! Thks Shane!!
@ShanesCows
@ShanesCows 4 жыл бұрын
Glad it helped.
@NKBobcat
@NKBobcat 4 жыл бұрын
Excellent! I wish I could patch more but I use forms a lot because my app owners require lots of fields. Many apps have more than 100 fields in a single data source. Patch would take me all day. When I copy a record, I have the copy icon set a variable called Set(varCopy, true). I also Set(varRecord.ThisItem) (Learned from you!). I then navigate to the New form. I then set the Default value with If(IsBlankorError(varCopy), Parent.Default, varRecord.fieldname). It's still a lot of work, but it works for forms.
@ShanesCows
@ShanesCows 4 жыл бұрын
Thanks for sharing Bob!
@chigwidiri
@chigwidiri 2 жыл бұрын
@@ShanesCows Is it possible to copy a record with attachments?
@jray1429
@jray1429 3 жыл бұрын
This is Utterly Amazing 😂 No, really this is great. I was just looking for something similar to this. You’ve made my day. Thank You!!! Now, just to make it open the copy automatically when it’s a record that has more field
@MarieCastine
@MarieCastine 4 жыл бұрын
Thank you so much! This just saved me so much work of having to figure out the copy option. Will be implementing in my form tonight! Lol!
@mariecastine134
@mariecastine134 4 жыл бұрын
Literally took me about 1.5 hours to implement on my current form! This is wonderful and is going to save us a lot of time with our forms. Thank you!!
@ShanesCows
@ShanesCows 4 жыл бұрын
Glad it helped!
@asifh8152
@asifh8152 4 жыл бұрын
I can see another utilization of it in new form, where you want to add multiple copy of same data. Great stuff.
@ShanesCows
@ShanesCows 4 жыл бұрын
Awesome!!!
@miltinhocamo3754
@miltinhocamo3754 4 жыл бұрын
Hi Shane... thanks for your videos. I need help with time and timestamp manage. My source is from Excel on onedrive. My location is UTC-5. When my users submit a new register it register "date - 5:00" (e.g., 11-16-2020 -5:00) but not the real timestamp (e.g., 11-16-2020 10:15 am). On the other hand, an App show information from Excel on ondrive, too. When it's a time cell shows the day before (e.g. On Excel: 11-13-2020 - On App: 11-12-2020). I've tried all I know and researched but this it has been a really nightmare. Thanks in advance.
@ShanesCows
@ShanesCows 4 жыл бұрын
With Excel as a datasource I recommend storing the date as text. Then you don’t get all of the UTC chaos.
@miltinhocamo3754
@miltinhocamo3754 4 жыл бұрын
@@ShanesCows Ok. Thanks a lot.
@sininv1
@sininv1 3 жыл бұрын
Hi Shane, this is great.. Any chance of showing to u create those created more than one . thx
@ShanesCows
@ShanesCows 3 жыл бұрын
Sorry, not sure what you are asking.
@debbilawson9619
@debbilawson9619 Жыл бұрын
Great video, as always! Now for a follow-up question: How can I find the GUID (in Dataverse) of the duplicate that I created?
@ShanesCows
@ShanesCows Жыл бұрын
TableName.TableName is the ID or Primary key. That will have the GUID. If you used Patch to create it you can Set(varRecord, Patch(...your logic)). This will store the whole record you just createdin the variable. So varRecord.TableName will be the GUID.
@debbilawson9619
@debbilawson9619 Жыл бұрын
@@ShanesCows Setting the variable was exactly what I needed! Thank you for your response!
@Bozo19660
@Bozo19660 Жыл бұрын
Great videos Shane! A question please, I'm trying to replicate your 'Just copy' button patch function using a variable like you did in this video. Could you give an example of patching a choice value please through the variable? Thanks a lot!!
@Spurr82
@Spurr82 4 жыл бұрын
Hey, thought for content, I see you working with SP lists (and other DS's) a lot, and using Patch to fill, edit data, is the enough for a topic on when to use the insert an use form control and te submit form vs standard inputs with Patch, is there a fore and against, size of list working with (number of columns), flexibility etc? Great content again, thanks
@ShanesCows
@ShanesCows 4 жыл бұрын
I will add to my list of QTT videos doing a Form vs. Patch video. Fun idea.
@Spurr82
@Spurr82 4 жыл бұрын
@@ShanesCows look forward to it 👍
@joan322
@joan322 2 жыл бұрын
Hi Shane Nice video! Is it possible to the the selected records attachements copied into the new record? I have tried a lot of things, but it seems like it is not saving eventhough I have a collection, with the picture in it, added it to the attachements items, however it does not save with the attachement in it.
@ShanesCows
@ShanesCows 2 жыл бұрын
I think you have to use Flow to get and save attachments. :( Attachments are difficult to work with sadly.
@chigwidiri
@chigwidiri 2 жыл бұрын
@@ShanesCows Have you got a video on copying an item with attachments?
@danielgil9651
@danielgil9651 3 жыл бұрын
Sorry Shane is there any video where you explain how to make that screen that pop up while the background is darker? thanks
@ShanesCows
@ShanesCows 3 жыл бұрын
It is the same way I do the spinner in this video. kzbin.info/www/bejne/i4jcZnyVgtp8nbc I am sure I have covered it before in part of other videos like this one kzbin.info/www/bejne/rny7gaCBZZV3eaM but it doesn't have a dedicated video. I will add it to the QTT list. Great suggestion! 🐶
@marcosmanto
@marcosmanto 4 жыл бұрын
Many thanks Shane I learn a lot from your channel. Just one question what varOnStart do at the end of copying code? Again thanks Shane
@ShanesCows
@ShanesCows 4 жыл бұрын
Oh.. that was something i used to handle the default behavior of the search box from the first video. Not important part of copying, it is part of the visual magic only
@ndzalavukosi
@ndzalavukosi 7 ай бұрын
Im new to power apps, am looking to move a record from one sp list to another when a button is clicked on power apps, i.e list of active users is displayed and when the revoke button is selected the record should be deleted from active users and the record moved to deactivated users sp list
@georgiescicluna8405
@georgiescicluna8405 3 жыл бұрын
Hi. Great video just what l was after. In that sequence how can l add a day to the date column for the new records as they are created. Thanks in advance
@mvos1980
@mvos1980 4 жыл бұрын
Thanks Shane. We will listen to your good advice.
@ShanesCows
@ShanesCows 4 жыл бұрын
Awesome. 😎
@ahmadyamout1115
@ahmadyamout1115 3 жыл бұрын
You are amazing man thank you . But dear regarding copying the item from a list and paste it to another one is there a way to do so without using power flow?
@ShanesCows
@ShanesCows 3 жыл бұрын
You do it with patch I guess. I feel like I show some good options in this video.
@ahmadyamout1115
@ahmadyamout1115 3 жыл бұрын
@@ShanesCows thank you
@mohamednasr5444
@mohamednasr5444 2 жыл бұрын
Amazing man thanks a lot, what about if I have attachment field needs also to be edited
@cristiancampo4755
@cristiancampo4755 3 жыл бұрын
Hi Shane, thank you for the video. I tried using the same functionality however it doesnt copy the attachment, what can you advice for that?. Thank you in advance
@ShanesCows
@ShanesCows 3 жыл бұрын
I have never figured out how to Patch attachments. You would have to use a flow I am guessing
@cristiancampo4755
@cristiancampo4755 3 жыл бұрын
@@ShanesCows thank you for the quick reply, do you have a video showing how to edit certain fields of the record and when submitting it it copy the rest that hasnt being updated, including the attachment (similar to patch(...,form.updates)?
@ShanesCows
@ShanesCows 3 жыл бұрын
@@cristiancampo4755 I don’t. 😑 This video is as close as I have been that I can think of.
@ehabatme5324
@ehabatme5324 4 жыл бұрын
Thank you for your ongoing added values on PowerApps. I would appreciate an Audit Checklist app with a dashboard for operation to see audits for all departments. Also how to have a defined questions & categories based on department. Have a smooth move 🙏
@ShanesCows
@ShanesCows 4 жыл бұрын
Great suggestion!
@clairevoyance26
@clairevoyance26 Ай бұрын
hi shane, i have a form that i need to "Save As", ive tried Patch function but it doesnt work for Attachments. Any advice or tips to patch an attachment to the new form?
@ShanesCows
@ShanesCows Ай бұрын
Best I can offer is this video where I talk about how to handle attachments. Basically flow becomes involved. kzbin.info/www/bejne/gWiXhnmPnNd-eJY
@rayromych5534
@rayromych5534 2 жыл бұрын
Thanks for another great video! Got one question though - is there any way to copy item from one SharePoint list to another SharePoint list with identical columns without typing all fields/values to be copied? I tried Patch(List2, Defaults(List2), LookUp(List1, ID=3) ) ; but it complains that some fields are added automatically (Created, CreatedBy etc) rather than passed. Thanks
@riturajsingh169
@riturajsingh169 2 жыл бұрын
Hi Shane, this is an excellent tutorial. Helped me a lot. Just one question, let's say I want to bulk copy data that is sorted monthly and the only field that changes is the date. So let's say month of May had 10 records and i want to bulk copy those records into June by just changing the month field. Is that something you have a tutorial on or can help me with ?
@sreyayendluri4744
@sreyayendluri4744 4 жыл бұрын
Hi Shane, Quick question can you also copy attachments if they are part of the original record with CDS backend?
@ShanesCows
@ShanesCows 4 жыл бұрын
I haven't tried but I would guess the answer is yes. They are just a table you need to grab.
@bobcrowley6000
@bobcrowley6000 4 жыл бұрын
Do you have an video or resource for why you prefer Patch over forms?
@ShanesCows
@ShanesCows 4 жыл бұрын
I don't... I talk about it randomly. I will add it to the list of videos, that would be a solid QTT. Thanks for the idea. The quick answer is control. Forms are great if you want them the way they are but as soon as you start needing to make them look or behave certain ways I find controls + patch less work.
@fathimasamrinp2743
@fathimasamrinp2743 3 жыл бұрын
Can we copy from another source(Clipboard) and PAste this in power apps?
@ShanesCows
@ShanesCows 3 жыл бұрын
You could paste into a text input field. But nothing else fancy
@danielgil9651
@danielgil9651 3 жыл бұрын
Hi Shane, sorry it is possible to copy the attachments of the record too? I tried the way you do in the video but it doesn't work, thanks in advance
@ShanesCows
@ShanesCows 3 жыл бұрын
I have never had luck patching attachments 😑
@klaudia8323
@klaudia8323 3 жыл бұрын
Any ideas how to copy gallery items which contain the attachment? Patch and collection dont work. Using flow to do that seems like much work to do. Any ideas for workaround? 🙏🏼
@ShanesCows
@ShanesCows 3 жыл бұрын
I don’t have a better answer 🤨
@klaudia8323
@klaudia8323 3 жыл бұрын
@@ShanesCows oh :( thank you for response!
@pavelbenev3607
@pavelbenev3607 4 жыл бұрын
Another great video Shane! You rock /. I have an attachment control which I am using to attach all kind of files to a SP document library. Each attachment/s should be assigned to a specific ticket request. After that I have a gallery to display the names of all attachments for this ticket so users can review them in the future. The gallery is not refreshing with the new attachments without the refresh statement. Is there another way to do it because you said never use refresh?
@ShanesCows
@ShanesCows 4 жыл бұрын
You might be in a case that needs refresh. 😀 It is okay to use when you prove you need it, like you did. 😀
@gabseqdu
@gabseqdu 2 жыл бұрын
Hi Shane, thank you for your amazing videos. I'm having trouble with the Copy multiple items part. I have a sequence of several items on the list based on filters, when I do Copy all the first item gets copied multiple times... if my list count of items is 2 same item is copied 2 times, or 15 or 8 etc. It feels like the forall is not moving through my gallery item list. Any help would be appreciated
@tonysabarez3790
@tonysabarez3790 4 жыл бұрын
I just signed up but I can't seem to find the download for the app source above. I really would like to. Is there a link that can point to where it is?
@ShanesCows
@ShanesCows 4 жыл бұрын
Hi Tony - Https://training.powerapps911.com and sign up for the curated library. You can download this and many other apps I have built. 🐶
@tonysabarez3790
@tonysabarez3790 3 жыл бұрын
@@ShanesCows I did sign up last night but I couldn't find this = "Power Apps Copy Item - Copy a record, make multiple copies, and edit + design tips". I will look again. Maybe it was just already too late or too early for the next day :-). Thank you!
@enzisatine4918
@enzisatine4918 3 жыл бұрын
Hi Shane! Your videos are AMAZING so thank you so much for taking the time to make them :) One quick question - is there a limit on how many fields you can 'patch' to create a copy? I have a large SharePoint list (over 60 fields) and i need to be able to copy an item multiple times, but it looks like when i applied your formula it doesn't quite work. Like it worked at the beginning and then I went back to the application and it stopped working. Any thoughts?
@ShanesCows
@ShanesCows 3 жыл бұрын
Sorry for the delay. I am not sure. I guess there is a limit, I have never hit it but sounds like you may have. 😐
@shwetanayak979
@shwetanayak979 4 жыл бұрын
Hi Shane , I am new to powerapps and learning from your videos. I have a requirement I want to create a pivot table in the powerapps using a SharePoint list. I cannot use excel or poeer BI. Do you think it is possible to create a pivot table similar to one we create in excel.
@ShanesCows
@ShanesCows 4 жыл бұрын
Yikes, I don't know...
@qiangzhao7975
@qiangzhao7975 3 жыл бұрын
Thanks, Shane, this is what I am looking for, I have a question here, I have a choice column called "status", the options are "copied event" "In process" and "Closed", if I copy a "closed" item, I want the status column of the copied item is "copied event", how should I do. thanks,
@qiangzhao7975
@qiangzhao7975 3 жыл бұрын
used below to get it resolved thanks, {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
@jasonholland83
@jasonholland83 3 жыл бұрын
Where did you get the VarRecord from? I have a form that links 3 forms to each other to combined as one form under a var call vartype. How would It work for me in that since.
@julianomateus2935
@julianomateus2935 3 жыл бұрын
Hello, I'm from Brazil, I'm not able to use the patch function to copy, because the editor does not recognize the word varRecord.
@ShanesCows
@ShanesCows 3 жыл бұрын
varRecord is a variable you have to create first. I also cover VarRecord in this video which might help kzbin.info/www/bejne/bGqUoYWvh62KeLc
@julianomateus2935
@julianomateus2935 3 жыл бұрын
@@ShanesCows tks!!!!!
@RexKanum
@RexKanum 4 жыл бұрын
Is it possible to use a power app to display and edit a Teams wiki?
@ShanesCows
@ShanesCows 4 жыл бұрын
I don't know... that is a great question I am not sure about.
@rob5800can
@rob5800can 3 жыл бұрын
Thanks for this video. Very helpful.
@ShanesCows
@ShanesCows 3 жыл бұрын
You're welcome!
@ashokpershad
@ashokpershad 4 жыл бұрын
New Feature I never used before, hope some day i will refer back to this video... :)
@ShanesCows
@ShanesCows 4 жыл бұрын
It is handy for sure. 😎
@rajkiran9465
@rajkiran9465 2 жыл бұрын
Hi Shane, I am new to power apps, my requirement is to copy parent and child records,using this video I can able to copy parent record but don't know how to copy child record.could you please help me out how to do.
@ShanesCows
@ShanesCows 2 жыл бұрын
I did A video for that also Power Apps Copy, Edit, and Save Parent Child Data - Expense Report Example kzbin.info/www/bejne/oWisoIFsZbSVn6c 😎
@gerfer6261
@gerfer6261 3 жыл бұрын
After successful Refresh time came to headquarters again. My scenario = want create SharePoint items from selected start date to selected end date for an employee. I want to create a new record for each selected date range, only the date is different else same. I tried using DateDiff( startDate.selecteddate, endDate.selecteddate)>0, patch(...(Default (. ) But only end up creating 2 records regardless to date range selected. If you got a minute it will be greatly appreciated ☺️
@ShanesCows
@ShanesCows 3 жыл бұрын
Yikes, I am sure it is possible but I don't know how off the top of my head.
@tommycnbj
@tommycnbj 4 жыл бұрын
great tutorial.
@ShanesCows
@ShanesCows 4 жыл бұрын
Thank you! Cheers!
@TheToni2123
@TheToni2123 4 жыл бұрын
thx again.
@ShanesCows
@ShanesCows 4 жыл бұрын
Always welcome
@peanut-d-cat
@peanut-d-cat 4 жыл бұрын
Meow.thank you.
@ShanesCows
@ShanesCows 4 жыл бұрын
Any time 😼!
@gerfer6261
@gerfer6261 4 жыл бұрын
😊 thanks. I going to take demon out from my app👹 Refresh
@ShanesCows
@ShanesCows 4 жыл бұрын
I approve! 😁
Use Document Libraries not Attachments with SharePoint
26:21
Shane Young
Рет қаралды 18 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Java Lecture 1 - Introduction to flowcharts & pseudo-code
1:36:14
Power Apps Reset a Gallery and varRecord instead of Selected
8:08
Use a Responsive Gallery to create tabs in Power Apps
27:21
Shane Young
Рет қаралды 8 М.
PowerApps Design Ideas, IsEmpty, and making pretty galleries
36:40
Multiple Screen Form Control in Power Apps
29:46
Reza Dorrani
Рет қаралды 277 М.
PowerApps Patch Function
26:45
Shane Young
Рет қаралды 213 М.
PowerApps Multiple Filters on Gallery
23:45
Reza Dorrani
Рет қаралды 306 М.
Power Apps Editable Table/Gallery like Excel (Tutorial)
28:41
Reza Dorrani
Рет қаралды 275 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН