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
@ShanesCows7 күн бұрын
Awesome. It is one of my favorite functions. So helpful once you get the hang of it.
@emmanuelmaceda24754 жыл бұрын
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!!!
@ShanesCows4 жыл бұрын
Fantastic!
@Bekesam2 жыл бұрын
It's been a struggle getting my mind wrapped around the With function, till I came across your video, thank you!!!
@zero2herobeatspaul8824 жыл бұрын
On a Shane Young marathon right now in January 2021, improving my PowerApps skills. Thank you for your teaching and your energy!
@ShanesCows4 жыл бұрын
Wonderful! Thanks for watching and putting up with me. 🐶
@laelheasman34823 жыл бұрын
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!
@ShanesCows3 жыл бұрын
Thanks for the kind words! Means a lot to me. 🐶
@andrewnunes81134 жыл бұрын
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.
@ShanesCows4 жыл бұрын
With is awesome! I use it a lot for performance optimization.
@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 Жыл бұрын
Appreciate that. 😎 Have a great weekend 😎
@lescolle42684 жыл бұрын
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
@ShanesCows4 жыл бұрын
Thanks. Enjoy learning 😎
@webwatcher1882 жыл бұрын
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.
@ShanesCows2 жыл бұрын
Thanks John :)
@AndreasMake5 жыл бұрын
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!
@ShanesCows5 жыл бұрын
Yeah this function is cool
@AdamHaas8 ай бұрын
14:00 In the IF statement, do you need to reference the ID? Or can you just reference the record with IsBlank(record) ?
@ShanesCows8 ай бұрын
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.
@terrisepulveda6275 жыл бұрын
Gradz on the growth of the number of viewers for your training! And as always, great content. I see myself referencing this many times!
@ShanesCows5 жыл бұрын
Glad you like it.
@edakarajillo2 жыл бұрын
Could I use this kind of functions in a model-data driven apps? Or even in power pages?
@ShanesCows2 жыл бұрын
Not yet, their goal is to bring Power FX (the formula language where With lives) but they haven't yet.
@stephendarier13903 жыл бұрын
Hi Shane it's so awesome I surch something I'm struggling with and your videos pop love it man keep them coming.
@ShanesCows3 жыл бұрын
Thanks :)
@anats30089 ай бұрын
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?
@ShanesCows9 ай бұрын
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.
@bradlystewart11564 жыл бұрын
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
@ShanesCows4 жыл бұрын
Bradley leave a new comment with an example of a complex calc you are challenged by and I will see what I can do.
@altino912552683 жыл бұрын
Hi Shane, great video! Could you talk more about the With function?
@ShanesCows3 жыл бұрын
I love the With function. What else would you like to see covered with it? I open to ideas.
@altino912552683 жыл бұрын
@@ShanesCows We could try to use this function together with an AddColumns column or even with a gallery
@syedhussain63933 жыл бұрын
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.
@ShanesCows3 жыл бұрын
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.
@canasman115 жыл бұрын
This is awesome Shane. This is gonna be so useful when writting this kind of code now. Keep up the great work!!
@ShanesCows5 жыл бұрын
Thanks
@philipmarno49895 жыл бұрын
Great video, has really helped me rethink good code structure. I’ll be working “With” this for sure.
@ShanesCows5 жыл бұрын
I love this function! ❤️
@juanpablohernandezorozco77962 жыл бұрын
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 Жыл бұрын
For loop!
@priyanit4 жыл бұрын
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.
@ShanesCows4 жыл бұрын
That updates existing rows. You want to use Patch to add a new row. This should help kzbin.info/www/bejne/g5TPe5KFbq2pgLM
@csandford25 жыл бұрын
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!
@ShanesCows5 жыл бұрын
Yes it is possible with lots of If but more that I can post here. Sorry
@rajum54534 жыл бұрын
can we use Isblank(record) insteadof Isblank(record.Id) in the if condition..pls clarify...
@ShanesCows4 жыл бұрын
I don't see why not.
@dfheiland5 жыл бұрын
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?
@ShanesCows5 жыл бұрын
Probably not. You will have to log on periodically but to be fair I have not tried.
@bryancampbell89425 жыл бұрын
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.
@ShanesCows5 жыл бұрын
Interesting can you email me how to recreate and I will look into it. Shane at PowerApps911.com
@karlnixon56064 жыл бұрын
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 ?
@ShanesCows4 жыл бұрын
Yes, as long as you return a color Power Apps doesn’t care how you get it
@SegioVillalta5 жыл бұрын
Great video as always. Thank you Shane 🤘
@ShanesCows5 жыл бұрын
Glad to help. 😀
@anantnd3934 жыл бұрын
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
@ShanesCows4 жыл бұрын
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-rw7ss3 жыл бұрын
Very useful man! ;) thank you!
@ShanesCows3 жыл бұрын
Glad to help. 😀 It is one of my favorite functions!
@LPadillaCR5 жыл бұрын
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?
@ShanesCows5 жыл бұрын
I need to make a video on offline. 😑
@LPadillaCR5 жыл бұрын
@@ShanesCows No one better than you to go for that task!!
@ryanbond80225 жыл бұрын
@@ShanesCows Yes please!
@kiranboligarla50575 жыл бұрын
Shane, Did you do a video to built milestone charts in powerapps.
@ShanesCows5 жыл бұрын
I didn’t. Sorry.
@kiranboligarla50575 жыл бұрын
Thanks Shane. I tried to build it in power BI and able to integrate in power apps screen.
@hailm03 Жыл бұрын
Thank Shane! It's what i looking for
@ShanesCows Жыл бұрын
Awesome. This is one of my favorite functions!
@javierzorromorales43335 жыл бұрын
Thank you Shane, In the future are you going to work with a model?
@ShanesCows5 жыл бұрын
Yes. Soon I hope. Soon.
@pkp044 Жыл бұрын
Thank you so much Shane❤
@ShanesCows Жыл бұрын
Happy to help :)
@StephanOnisick9 ай бұрын
Great Examples!
@ShanesCows9 ай бұрын
Thanks! 😃 I love With
@jray14292 жыл бұрын
This is Awesome!! 😎
@ShanesCows2 жыл бұрын
Thanks! 😁
@muthuperumalkonar48743 жыл бұрын
How to browse excel file and insert VBA module and run it in powerapps?
@vishaljhaveri7565 Жыл бұрын
Difference between using UpdateContext vs With function in Power Apps? (performance)
@ShanesCows Жыл бұрын
Performance is probably similiar with With being slightly less impactful. Why make a variable if you only need the info in one place. :)
@iamnotcool425 жыл бұрын
Thanks man. your videos are really helpful
@ShanesCows5 жыл бұрын
Glad to help. 😀
@K6TJO5 жыл бұрын
Great tips Shane thanks!!
@ShanesCows5 жыл бұрын
You are welcome
@petrinnn5 жыл бұрын
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?
@ShanesCows5 жыл бұрын
Nope. 😑 You will have to copy the code around. Sorry.
@petrinnn5 жыл бұрын
@@ShanesCows Thank you!!
@TioXpi Жыл бұрын
Shane for President!
@ShanesCows Жыл бұрын
Love it! 👑
@jeanpierreragequit1726 Жыл бұрын
Thx u so much Shane !
@accmahmoud842 жыл бұрын
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
@Radioguy005 жыл бұрын
Very good!
@ShanesCows5 жыл бұрын
Glad to help. 😀
@Magayshibeo3 жыл бұрын
Great!!!
@ShanesCows3 жыл бұрын
Thanks
@bootsbax5 жыл бұрын
thanks Shane
@ShanesCows5 жыл бұрын
Happy to help
@ayoubtourabi68365 жыл бұрын
👏🏻👏🏻👏🏻👏🏻👏🏻
@ShanesCows5 жыл бұрын
😎
@kal90015 жыл бұрын
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...