PowerApps With Function

  Рет қаралды 41,902

Shane Young

Shane Young

Күн бұрын

Пікірлер: 106
@elizabethshort9632
@elizabethshort9632 9 күн бұрын
I discovered the With function and didn't really see the point after reading the documentation. I was really hoping there was a Shane video on it and here we are. Thank you as always
@ShanesCows
@ShanesCows 7 күн бұрын
Awesome. It is one of my favorite functions. So helpful once you get the hang of it.
@emmanuelmaceda2475
@emmanuelmaceda2475 4 жыл бұрын
Yesterday, I made a comment in your other video about using a variable to sort columns in a gallery and getting a delegation warning. I used the WITH function you showed above and it now works!!! Thank you so much!!!
@ShanesCows
@ShanesCows 4 жыл бұрын
Fantastic!
@Bekesam
@Bekesam 2 жыл бұрын
It's been a struggle getting my mind wrapped around the With function, till I came across your video, thank you!!!
@zero2herobeatspaul882
@zero2herobeatspaul882 4 жыл бұрын
On a Shane Young marathon right now in January 2021, improving my PowerApps skills. Thank you for your teaching and your energy!
@ShanesCows
@ShanesCows 4 жыл бұрын
Wonderful! Thanks for watching and putting up with me. 🐶
@laelheasman3482
@laelheasman3482 3 жыл бұрын
Hi Shane. I have watched so many of your videos and learnt such an incredible amount from you. I watched this video last week, and have found opportunity to use "With" multiple times daily since. It is such an incredibly useful function, and is cleaning up my code all over the place. You are an amazing teacher, and I just wanted to give you huge thanks for all you do for us citizen developers. Keep up the sterling work!
@ShanesCows
@ShanesCows 3 жыл бұрын
Thanks for the kind words! Means a lot to me. 🐶
@andrewnunes8113
@andrewnunes8113 4 жыл бұрын
Wow, they're like Pivoting variables! Because the definitions pivot at the beginning of the code, and that bit never needs to change. This is even better than components.
@ShanesCows
@ShanesCows 4 жыл бұрын
With is awesome! I use it a lot for performance optimization.
@berggrog1
@berggrog1 Жыл бұрын
You don't get enough feedback man. Thank you. Was trying to do some ForALL With & Patch Magic loading for example a collection or tasks, Then using forall patch to Assign Users to that task and then of course patching Checklist Items back to the first Task Item. Getting a delegation warning something like "A One to Many or Many to Many is being referenced in this functions record scope...." Crypes... well this started me on the right route. Thanks Shane. Hope all is going well
@ShanesCows
@ShanesCows Жыл бұрын
Appreciate that. 😎 Have a great weekend 😎
@lescolle4268
@lescolle4268 4 жыл бұрын
Excellent training ... I'm an IT guy just starting inside PowerApps and your training is super .. plenty of reasosn ... for sure because super easy to understand even for the Frenchie I'm but also because show at the same time a simple but also rich example
@ShanesCows
@ShanesCows 4 жыл бұрын
Thanks. Enjoy learning 😎
@webwatcher188
@webwatcher188 2 жыл бұрын
Shane, thank you so much for this wonderful lecture on how to use With function. I am building a gallery which, on each line item, needs to join (LookUp on IDs) couple other SQL tables to get text names. Using With function hugely improved the gallery performance. Your examples are great and actually cover one of my cases. I really appreciate your teaching.
@ShanesCows
@ShanesCows 2 жыл бұрын
Thanks John :)
@AndreasMake
@AndreasMake 5 жыл бұрын
As usual. Grateful for you making my life easier. Potentially help keeping my variables down to a minimum outside of the with function. Thanks Shane!
@ShanesCows
@ShanesCows 5 жыл бұрын
Yeah this function is cool
@AdamHaas
@AdamHaas 8 ай бұрын
14:00 In the IF statement, do you need to reference the ID? Or can you just reference the record with IsBlank(record) ?
@ShanesCows
@ShanesCows 8 ай бұрын
IsBlank(record) should work but I always like to be specific. In some serious you make record something like Defaults(Datasouce) which isn't actually blank but record.ID would be. So habit I always choose a primary field.
@terrisepulveda627
@terrisepulveda627 5 жыл бұрын
Gradz on the growth of the number of viewers for your training! And as always, great content. I see myself referencing this many times!
@ShanesCows
@ShanesCows 5 жыл бұрын
Glad you like it.
@edakarajillo
@edakarajillo 2 жыл бұрын
Could I use this kind of functions in a model-data driven apps? Or even in power pages?
@ShanesCows
@ShanesCows 2 жыл бұрын
Not yet, their goal is to bring Power FX (the formula language where With lives) but they haven't yet.
@stephendarier1390
@stephendarier1390 3 жыл бұрын
Hi Shane it's so awesome I surch something I'm struggling with and your videos pop love it man keep them coming.
@ShanesCows
@ShanesCows 3 жыл бұрын
Thanks :)
@anats3008
@anats3008 9 ай бұрын
Thanks Shane! I've learned PowerApps using your videos. Very useful! I'm still struggling to find the match functions between flow and PowerApps. For some reason these functions have different names in flow and PowerApps. Example: In flow this formula works: concat('Q', add(div(sub(int(formatDateTime(utcNow(), 'MM')),1), 3), 1)) but in PowerApps it doesn't. Any trick how to find those names?
@ShanesCows
@ShanesCows 9 ай бұрын
Sadly they are 2 different languages. Power Apps - Power Automate Concatenate - Concat 1+1 - Add(1,1) 1-1 - Sub(1,1) 1/1 - Div(1,1) Value - Int Text(Now(), "MM") = formdatetime stuff Month(Now()) would also just return 3 directly. Those are off the top of my head but should be close.
@bradlystewart1156
@bradlystewart1156 4 жыл бұрын
Hey Shane, I know this video was along time ago but came i came in a little late lol. If you were to do a video on complex calculations I’ve been having a few issues. My company deals with steel pipe so the prices and weight calcs can get pretty crazy. I think the “with” function is the answer tho
@ShanesCows
@ShanesCows 4 жыл бұрын
Bradley leave a new comment with an example of a complex calc you are challenged by and I will see what I can do.
@altino91255268
@altino91255268 3 жыл бұрын
Hi Shane, great video! Could you talk more about the With function?
@ShanesCows
@ShanesCows 3 жыл бұрын
I love the With function. What else would you like to see covered with it? I open to ideas.
@altino91255268
@altino91255268 3 жыл бұрын
@@ShanesCows We could try to use this function together with an AddColumns column or even with a gallery
@syedhussain6393
@syedhussain6393 3 жыл бұрын
when you used "With" function with "Lookup" function. Why did you not store lookup returned row in variable because in "With" function we save values in variables.
@ShanesCows
@ShanesCows 3 жыл бұрын
Just different way to do the same thing. If you need the value somewhere else then use a variable. IF you just need it for that one call then With is more effecient.
@canasman11
@canasman11 5 жыл бұрын
This is awesome Shane. This is gonna be so useful when writting this kind of code now. Keep up the great work!!
@ShanesCows
@ShanesCows 5 жыл бұрын
Thanks
@philipmarno4989
@philipmarno4989 5 жыл бұрын
Great video, has really helped me rethink good code structure. I’ll be working “With” this for sure.
@ShanesCows
@ShanesCows 5 жыл бұрын
I love this function! ❤️
@juanpablohernandezorozco7796
@juanpablohernandezorozco7796 2 жыл бұрын
Thank you very much shane you are the best, with this function it is possible to create a "FOR" loop and be able to use variables with the following syntax ForAll( Sequence(10), With( {Chewys: ThisRecord.Value}, Collect( Table_Dogs, { ID_Dog: Chewys, Name: "Chewy" } ) ) )
@vishaljhaveri7565
@vishaljhaveri7565 Жыл бұрын
For loop!
@priyanit
@priyanit 4 жыл бұрын
Hi Shane, Trying to insert data into existing row in SP list with the following onSelect Functions: UpdateIf( CyAt, Title = User().FullName && Text(varDT, ShortDate) = Text(DateOfEntry, ShortDate), { 'Work Location': Dropdown1.Selected, DST: Now(), Scoord: Label3.Text, status: "In" }); Please tell where and why does it fail to add any data.
@ShanesCows
@ShanesCows 4 жыл бұрын
That updates existing rows. You want to use Patch to add a new row. This should help kzbin.info/www/bejne/g5TPe5KFbq2pgLM
@csandford2
@csandford2 5 жыл бұрын
Hi, Is there a way to update a data table depending on what is selected in multiple drop down menus? I have it so that all 3 have to be selected, where as i need it that 1, 2 or 3 could be selected. Great content BTW!
@ShanesCows
@ShanesCows 5 жыл бұрын
Yes it is possible with lots of If but more that I can post here. Sorry
@rajum5453
@rajum5453 4 жыл бұрын
can we use Isblank(record) insteadof Isblank(record.Id) in the if condition..pls clarify...
@ShanesCows
@ShanesCows 4 жыл бұрын
I don't see why not.
@dfheiland
@dfheiland 5 жыл бұрын
A little off topic, but would it be possible to use PowerApps as a digital signage. Let an app run 24/7 and push some info out to a screen?
@ShanesCows
@ShanesCows 5 жыл бұрын
Probably not. You will have to log on periodically but to be fair I have not tried.
@bryancampbell8942
@bryancampbell8942 5 жыл бұрын
Came across something use WITH, it seems it cannot return a blank or "" value. Seems like a major limitation? I'm using With in the default property of a text box and it shows "false" when it should be empty, this creates a real problem.
@ShanesCows
@ShanesCows 5 жыл бұрын
Interesting can you email me how to recreate and I will look into it. Shane at PowerApps911.com
@karlnixon5606
@karlnixon5606 4 жыл бұрын
Thanks Shane, are you able to use the with() variable in formatting the Fill property of the same item? ie in your example if the Dog is Chewie set the fill property to Red ?
@ShanesCows
@ShanesCows 4 жыл бұрын
Yes, as long as you return a color Power Apps doesn’t care how you get it
@SegioVillalta
@SegioVillalta 5 жыл бұрын
Great video as always. Thank you Shane 🤘
@ShanesCows
@ShanesCows 5 жыл бұрын
Glad to help. 😀
@anantnd393
@anantnd393 4 жыл бұрын
Can you make a video to show us how to integrate Azure Functions with PowerApps? Including the part where we will need to make a swagger JSON
@ShanesCows
@ShanesCows 4 жыл бұрын
Maybe one day. We did cover that in my Advanced Power Apps class. training.powerapps911.com/courses/advanced-power-apps-and-power-automate Pretty deep stuff.
@luca-rw7ss
@luca-rw7ss 3 жыл бұрын
Very useful man! ;) thank you!
@ShanesCows
@ShanesCows 3 жыл бұрын
Glad to help. 😀 It is one of my favorite functions!
@LPadillaCR
@LPadillaCR 5 жыл бұрын
Dear Shane... Just another super hit video! Thanks! Quick question. How can I make a contacts app collect data offline for later update it once it gains connection again?
@ShanesCows
@ShanesCows 5 жыл бұрын
I need to make a video on offline. 😑
@LPadillaCR
@LPadillaCR 5 жыл бұрын
@@ShanesCows No one better than you to go for that task!!
@ryanbond8022
@ryanbond8022 5 жыл бұрын
@@ShanesCows Yes please!
@kiranboligarla5057
@kiranboligarla5057 5 жыл бұрын
Shane, Did you do a video to built milestone charts in powerapps.
@ShanesCows
@ShanesCows 5 жыл бұрын
I didn’t. Sorry.
@kiranboligarla5057
@kiranboligarla5057 5 жыл бұрын
Thanks Shane. I tried to build it in power BI and able to integrate in power apps screen.
@hailm03
@hailm03 Жыл бұрын
Thank Shane! It's what i looking for
@ShanesCows
@ShanesCows Жыл бұрын
Awesome. This is one of my favorite functions!
@javierzorromorales4333
@javierzorromorales4333 5 жыл бұрын
Thank you Shane, In the future are you going to work with a model?
@ShanesCows
@ShanesCows 5 жыл бұрын
Yes. Soon I hope. Soon.
@pkp044
@pkp044 Жыл бұрын
Thank you so much Shane❤
@ShanesCows
@ShanesCows Жыл бұрын
Happy to help :)
@StephanOnisick
@StephanOnisick 9 ай бұрын
Great Examples!
@ShanesCows
@ShanesCows 9 ай бұрын
Thanks! 😃 I love With
@jray1429
@jray1429 2 жыл бұрын
This is Awesome!! 😎
@ShanesCows
@ShanesCows 2 жыл бұрын
Thanks! 😁
@muthuperumalkonar4874
@muthuperumalkonar4874 3 жыл бұрын
How to browse excel file and insert VBA module and run it in powerapps?
@vishaljhaveri7565
@vishaljhaveri7565 Жыл бұрын
Difference between using UpdateContext vs With function in Power Apps? (performance)
@ShanesCows
@ShanesCows Жыл бұрын
Performance is probably similiar with With being slightly less impactful. Why make a variable if you only need the info in one place. :)
@iamnotcool42
@iamnotcool42 5 жыл бұрын
Thanks man. your videos are really helpful
@ShanesCows
@ShanesCows 5 жыл бұрын
Glad to help. 😀
@K6TJO
@K6TJO 5 жыл бұрын
Great tips Shane thanks!!
@ShanesCows
@ShanesCows 5 жыл бұрын
You are welcome
@petrinnn
@petrinnn 5 жыл бұрын
Shane, Is it possible to use this With Function in another button? For example, i have this code.. that i have to use in a lot buttons.. ForAll(Filter(arrusuarios;varNovo="NOVO");Patch('ATAS - Possíveis Usuários';Defaults('ATAS - Possíveis Usuários'); {Nome:Nome;Empresa:Empresa;Telefone:Telefone;Email:Email; EditarUsuario:EditarUsuario; varNovo:"FOI"}));; I dont want to write the same code in ALL buttons.. i would like to call this function like... all my code are a function called SEND_OFFLINE... and just to use SEND_OFFLINE in my buttons?
@ShanesCows
@ShanesCows 5 жыл бұрын
Nope. 😑 You will have to copy the code around. Sorry.
@petrinnn
@petrinnn 5 жыл бұрын
@@ShanesCows Thank you!!
@TioXpi
@TioXpi Жыл бұрын
Shane for President!
@ShanesCows
@ShanesCows Жыл бұрын
Love it! 👑
@jeanpierreragequit1726
@jeanpierreragequit1726 Жыл бұрын
Thx u so much Shane !
@accmahmoud84
@accmahmoud84 2 жыл бұрын
In the gallery I have: A field for a vessel name A field for the cost I want to lookup the cost from a data source based on the vessel name Lookup(name of the table where the cost is stored, name of vessel name in the data source=name of the gallery.Selected.name of the field of the vessel name). Name of the column of the cost When I apply the above I get blank
@Radioguy00
@Radioguy00 5 жыл бұрын
Very good!
@ShanesCows
@ShanesCows 5 жыл бұрын
Glad to help. 😀
@Magayshibeo
@Magayshibeo 3 жыл бұрын
Great!!!
@ShanesCows
@ShanesCows 3 жыл бұрын
Thanks
@bootsbax
@bootsbax 5 жыл бұрын
thanks Shane
@ShanesCows
@ShanesCows 5 жыл бұрын
Happy to help
@ayoubtourabi6836
@ayoubtourabi6836 5 жыл бұрын
👏🏻👏🏻👏🏻👏🏻👏🏻
@ShanesCows
@ShanesCows 5 жыл бұрын
😎
@kal9001
@kal9001 5 жыл бұрын
Trying to be respectful here, but isn't powerapps generally a bit stupid?!... It seems like a lot of things could be done so much easier by getting rid of the WYSIWYG and get a scripting editor up where you can make proper variables and change stuff how you like...
Create nested data tables with the PowerApps Concat Function
27:46
Power Apps CountRows, CountIf, CountA, and Count vs  Delegation
17:00
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
5 Fancy Functions in Power Apps
19:55
Shane Young
Рет қаралды 11 М.
With Function Power Apps
3:57
Dhruvin Shah
Рет қаралды 6 М.
Learn to use the PowerApps Filter function
21:03
Shane Young
Рет қаралды 305 М.
PowerApps Nested Data Functions and Delegation
19:36
Shane Young
Рет қаралды 10 М.
PowerApps Forms - Form Mode
21:23
Shane Young
Рет қаралды 247 М.
PowerApps Hide Button Based on User and other fun
23:44
Shane Young
Рет қаралды 125 М.
PowerApps AddColumns ShowColumns
25:13
Shane Young
Рет қаралды 64 М.
A better PowerApps Data Model - Flexible and fast
26:52
Shane Young
Рет қаралды 46 М.
Power Apps Deep Linking to Screen | App StartScreen & OnStart
22:56
Reza Dorrani
Рет қаралды 109 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН