Named Formulas & User Defined Functions in Power Apps

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 248

  • @Stephenm84
    @Stephenm84 9 місяців тому +22

    This is a game changer. Great tutorial! Thank you so much.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      Most welcome

    • @Stephenm84
      @Stephenm84 9 місяців тому

      Question: Can you use a named formula that references a data source, eg SharePoint List, with Patch()?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      @@Stephenm84 It can reference data sources. But Patch would be an on-demand call that you would make on click of a button.

    • @Stephenm84
      @Stephenm84 9 місяців тому

      ​@@RezaDorraniYep, but what I'm specifically asking is if I can keep all my references in one place:
      Formulas:
      dsMyList = MySchema_MyList;
      A Button's OnClick:
      Patch(dsMyList, Defaults(dsMyList), { field1 = "Value"})
      When I attempt this, Patch() gives me an error:
      "The first argument should be a collection"

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      @@Stephenm84 Yes, that should work. Best to try it out :)

  • @PA_Freak
    @PA_Freak 9 місяців тому +6

    Moving collections to NamedFormulas really boosts!! 🚀🚀
    Having a complex app with 15 screens >30 datasources and >20 collections, where I moved majority of collections (only static) to Formulas now.
    Result is impressiv: App loading time went down from 3-5 sec to 1 sec. !!
    Thx again for sharing this !

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Awesome!
      So happy to hear that

    • @baderahm
      @baderahm 8 місяців тому

      Thanks. But it will delay the load of the galleries n their update, after refreshing the data. Isn’t it?

    • @RezaDorrani
      @RezaDorrani  8 місяців тому

      @@baderahm Give it a try and check

    • @Bekesam
      @Bekesam 8 місяців тому

      @PA_Freak or @RezaDorrani, when mentioned "collections(only Static)", what do you mean by that? Thanks

    • @RezaDorrani
      @RezaDorrani  8 місяців тому

      @@Bekesam Best to try it out and check

  • @luisfernandomacedo1451
    @luisfernandomacedo1451 8 місяців тому +3

    It goes without saying that anyone who watches Reza's tutorial is taken from basic to advanced skills. The way he has laveraged the user defined function to complex calculation was insane. Great tutorial, Reza!1

  • @kausarjahan1868
    @kausarjahan1868 4 місяці тому +2

    Very well explained, Reza! The way you breakdown each topic with use cases is just amazing. It clears up all my doubts, and I dont need to search around anymore. Thank you so much for making learning powerapps so easy and enjoyable..!!

    • @RezaDorrani
      @RezaDorrani  4 місяці тому

      Great to hear the amazing feedback! Thanks so much for watching and learning from the videos.

  • @Bekesam
    @Bekesam 9 місяців тому +1

    I had already incorporated named formulas when it was first introduced, but at the time, collections were not yet permitted. Thank you so much sharing this and I will now update the rest!!!

  • @14gigigirl
    @14gigigirl 9 місяців тому +1

    Fantastic Reza! I have an exact use case for this and you have just provided me with the solution! Thank you for another excellent video showcasing the functions. ✨🚀

  • @PA_Freak
    @PA_Freak 9 місяців тому +5

    UDF are a great enhancement, but they come with a small downside:
    To auto-format your code in “Formulas”, you’ll need to remove it first or comment-out /* */ .
    The other thing on named formulas, especially when replacing collections, they are not listed under Variables (X), so that there is a bit the overview lost…
    Certainly by marking it you’ll see the table/content.
    So good would to have another grouping to list down the NamedFormulas below Collections.
    Thanks Reza, for sharing this in such a great explanatory way, you are my first choice of information the Apps & Flows.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Most welcome!
      And thanks for sharing the feedback

  • @mannymorales7913
    @mannymorales7913 3 місяці тому +1

    Reza - great video as always. Very informative tutorial regarding this game-changing feature and thanks for the pragmatic advice regarding performance. Named Formulas and UDFs do not suffer a penalty hit, while variables do, very eye-opening. OnLoad code definitely belongs in these the App > Formulas. Thanks so much for producing and sharing!

    • @RezaDorrani
      @RezaDorrani  3 місяці тому +1

      Most welcome!
      Use Name formulas as much as possible.

  • @YourWatchTinker
    @YourWatchTinker 9 місяців тому +2

    As always you rocked with your explanation capabilities ❤

  • @Cybermatik
    @Cybermatik 9 місяців тому +1

    Great video reza, thanks for sharing ;)
    Using those formulas instead of onstart seems to be really efficient!

  • @TheKermit2110
    @TheKermit2110 5 місяців тому

    best tutorial on named formulas i've seen so far, thanks so much Reza

  • @alexpena9419
    @alexpena9419 9 місяців тому +2

    As always, your insights are timely and informative! Thank you so much❤

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Most welcome and thanks for watching

  • @twosatoshis2478
    @twosatoshis2478 9 місяців тому +1

    I'm learning so much with you. Appreciate how you go about teaching

  • @rarun0080
    @rarun0080 9 місяців тому +2

    very descriptive! Thanks for posting a video about named formulas

  • @Christian-tf6ol
    @Christian-tf6ol 9 місяців тому +1

    Truly game changer. Thank you for sharing Reza! 💯

  • @alec734
    @alec734 9 місяців тому +2

    Thank you for the video! This will reduce the use of variables and collections significantly.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Named formulas first. Then collections and variables. Each have their own space.

  • @jasonmcandrew5661
    @jasonmcandrew5661 9 місяців тому +1

    Fantastic Reza, I can definitely see how my apps can be improved with this. Thank you. 🙏

  • @callfusion2012
    @callfusion2012 9 місяців тому +1

    Work to be done! Step by step...

  • @Sam-k6g
    @Sam-k6g Місяць тому +1

    Awesome work.
    Are the UDFs usable in a gallery so the values of a particular item are used in a formula to calculate and display a result in the gallery via a label? So the parameters passed to the UDF can therefore something like ThisItem.ColumnA or ThisItem.ColumnB.Value?

    • @RezaDorrani
      @RezaDorrani  Місяць тому +1

      I have not tried it there but it should work. Best to try it out.

    • @Sam-k6g
      @Sam-k6g Місяць тому +1

      ​Reza I've confirmed it works at least for something simple. About to ramp up the complexity. 🤞

    • @Sam-k6g
      @Sam-k6g 22 дні тому +1

      Certainly able to handle some more complexity, only missing the ability to handle some behavioural functions which I am having to repeat on a number of controls. Otherwise has cleaned up a lot of duplication.

  • @SadekInfos7392
    @SadekInfos7392 9 місяців тому +2

    Thank you dear brother...we need more videos about this new feature if possible bro ❤

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      Most welcome!
      I try to bring something new in each video.

  • @szfagier1779
    @szfagier1779 6 місяців тому +1

    Hi, great video as always!! Do you think is there a way of creating UDF that would be across all apps as some sort of component?

    • @RezaDorrani
      @RezaDorrani  6 місяців тому

      Thanks!
      Currently, UDFs are per app only

  • @JoseAugustoDeLimaPereira
    @JoseAugustoDeLimaPereira 9 місяців тому +1

    This is really awesome!!! TY Reza, you're the best!

  • @BhupinderSingh
    @BhupinderSingh 9 місяців тому +1

    Thanks for explaining the functions. I always wanted this feature.

  • @mohammaddanish5997
    @mohammaddanish5997 9 місяців тому +1

    What a great explanation and It gonna help a lot. Thank you Reza.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Most welcome and glad to hear it’s helpful.

  • @itxhamza5543
    @itxhamza5543 9 місяців тому +1

    That's really cool respect from Pakistan

  • @stoplis87
    @stoplis87 9 місяців тому +1

    Great video Reza! Quick question, when using name formulas to filter a table do you know if it adds any delegation to it? e.g. a collection can only hold so many records but this isn’t creating a local copy so does it have that limit?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Thanks!
      It is delegation ready!

    • @cazillo
      @cazillo Місяць тому

      @@RezaDorrani I am finding the opposite. I have a large Filter() setup. When I put in App.Formulas I'm limited to 500. I put back into Gallery.Items and it's fine. Suggestions?

    • @RezaDorrani
      @RezaDorrani  Місяць тому

      @@cazillo I would suggest then use filter directly on gallery

  • @vonis22
    @vonis22 8 місяців тому +1

    Hi Reza, amazing video once again! Is there a way to use User Defined Functions in behavior like OnSelect. To make a Patch to Dataverse Generic from different places in the app for instance?

  • @udp77fac1
    @udp77fac1 5 місяців тому +1

    very helpful bro! thanks!!

  • @Ankjain30
    @Ankjain30 9 місяців тому +1

    Really useful, Thanks for this video Reza 👍

  • @oluwatobiyusuf
    @oluwatobiyusuf 9 місяців тому +1

    This is a game changer for me. Thank you Reza

  • @YAS-dn6xn
    @YAS-dn6xn 8 місяців тому +1

    Reza, AWESOME WORK as usual

  • @jesperchristiansen639
    @jesperchristiansen639 9 місяців тому +1

    Does Named Formulas or User Defined Function support Patch() ??
    I want to create a Custom Function to Patch some data as i use the same Patch function in several screens.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      It does not as far as I know

  • @traianpopescu3684
    @traianpopescu3684 5 місяців тому

    Great video, thank you Reza!
    Waiting from Microsoft for the day when we can define full functions with multiple lines of code, Patch functionality and any kind of Parameter or Return types 🙏🏼

  •  9 місяців тому +1

    Thanks for this video. I had considered the formulas as constants until now. I didn't know they were updated based on arguments. Do the delegation criteria apply in this case?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      Delegation criteria does apply

  • @isaiaguillon9878
    @isaiaguillon9878 9 місяців тому +1

    OMG! This is pure gold!!! Thank you for sharing Reza.... quick question, if I use a Named Formula in a gallery, I will not be able to do the grid approach you explained in one of your videos where you can add (patch) records to the gallery and then to the datasource, will that be a limitaton of namedformulas?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Collections, Variables and Named formulas will all coexist.

  • @lowcodedev
    @lowcodedev 9 місяців тому +1

    Great tutorial 👍👏

  • @rajasekare3817
    @rajasekare3817 9 місяців тому +1

    Useful for me Reza... Thanks for sharing...!

  • @karukarthi2609
    @karukarthi2609 9 місяців тому +1

    Thanks for your video and so informative. I assume all these named formulas will load when the app starts run and if the value is never used, then those formula need never be calculated.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Formulas will run only when needed.

  • @seenakhan3063
    @seenakhan3063 9 місяців тому +1

    Hello Reza, Thanks a lot , nice tutorial. I have doubt on one scenario, when we importing power apps solution multiple times into the same environment , is there any issues will happen on flow actions? My flows are triggering based on SharePoint list updates. On my development environment flows are executing as expected , but in my testing environment same flows gives multiple action , specifically two emails receiving. Can you please give me a solution for this

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Welcome!
      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

    • @seenakhan3063
      @seenakhan3063 9 місяців тому

      @@RezaDorrani sure will do - Thank you so much 😊

  • @skawathe
    @skawathe 9 місяців тому +1

    Thanks for the amazing video!
    I got below questions. It will be really helpful for me if you provide some insights on these. Thanks in advance.
    Are named formulas delegable?
    Gallery loads records in batches of 100 for performance optimization. If we use named formula in such case, will my gallery show all records? Will data row limit affect named formulas?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      Delegable as long as query is delegable.
      Gallery will load data in batches of 100 with named formulas (as long as query is delegable against data source)

  • @VanitaSharma-mr9tl
    @VanitaSharma-mr9tl 9 місяців тому +1

    Hi Reza, you are right. This is a game-changer. I do have one question though. If I create a collection named formula, as you mentioned, it will be executed only when needed. Then, what if I am referring to the collection multiple times and on multiple screens? Does it make it an expensive operation?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      It will run the formula when needed on demand as you land on those screens.
      It does do smart caching as well.
      Easiest way to check if to run monitor tool and see the api calls.

  • @markusj4729
    @markusj4729 9 місяців тому +1

    Great vid! :) Was wondering - In order to use User Defined Functions you need activate new analysis engine, I've seen that people have reported several errors after activating it, have you experienced any issues regarding this?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      UDF is in preview so would not suggest using that in prod scenarios yet.

    • @markusj4729
      @markusj4729 9 місяців тому +1

      @@RezaDorrani true :) thanks

  • @carlosvelver3194
    @carlosvelver3194 8 місяців тому +1

    Thanks for all the extremely valuable content Reza!! Is it possible to include optional parameters in this named functions?

    • @RezaDorrani
      @RezaDorrani  8 місяців тому

      I don't think optional params is currently an option

    • @a194321
      @a194321 3 місяці тому

      Are you on the look for dynamic datasources? :)

  • @avpnile
    @avpnile 9 місяців тому +1

    Nice feature.
    Is there any way I can define a user define function and use in different canvas apps?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      As of now, its for current app only

  • @OzStomper
    @OzStomper 9 місяців тому +1

    really great video - thanks!

  • @MegaKumar0
    @MegaKumar0 9 місяців тому +1

    Nice explanation! Thank you

  • @derekgray3019
    @derekgray3019 9 місяців тому +1

    absolutely brilliant Rezza, I've been meaining to learn this to move most, if not all my App.OnStart variables to named formulas. One thing I have been trying to do is use a sharepoint list of roles, so I can control who can view different views in my Apps e.g. Security role and use this to control and filter galleries. I know you did one a couple of years ago but unable to find it. And my question is can this be done using Named Formulas?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Thanks so much!
      Absolutely, named formulas is the way to go.
      Here is the video you are looking out for ua-cam.com/video/dIzOAbMjN7g/v-deo.htmlsi=xKqPYLJXnUnEUqDn

    • @derekgray3019
      @derekgray3019 9 місяців тому +1

      Perfect! I knew i had seen it before and struggled to get it to work, but now I am more experienced I think I can get to work. Thank you Sir 🙂

    • @derekgray3019
      @derekgray3019 9 місяців тому

      Just one question, i have a list of 8 items in the Security list for business area, can i filter against the list in the named formula for each business area so that a logged in user can only see what he has item level permissions for?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      @@derekgray3019 If security is already configured at item level, you simply get all items from list. Power Apps will respect security.

  • @davidhardy2063
    @davidhardy2063 9 місяців тому

    Thanks, Reza. I have a need to do a block of code from multiple spots in my app, e.g., clear a block of variables. Could we do a parameter-less Custom Formula that can execute several statements at once, allowing me to just call the function wherever I need to execute the statements?
    Something like: nfClearSignatureVars():Boolean = Set(varSignBlob, Blank()); Set(varSignBinary, Blank()); Set(varSignPrintedName, Blank());

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Not sure if setting variables in named formulas is even an option

  • @clairevoyance26
    @clairevoyance26 6 місяців тому

    Hi rezza, ive just added named formulas but how do you control the splash screen when its visibility is dependent on the data from a collection in named formula? In OnStart, you can just add set variables of the loading screen before and after the collection.

    • @RezaDorrani
      @RezaDorrani  6 місяців тому

      Named formula and a static variable is one and the same. Name formula will calculate Instantly.

  • @stelianrusu9881
    @stelianrusu9881 9 місяців тому +1

    Great info! Thanks!

  • @aiwak.9554
    @aiwak.9554 10 місяців тому +1

    very cool! I don't need refresh icon of gallery no more. I would love to use your techniques in my App. Thank you.

  • @vivekmurli5137
    @vivekmurli5137 7 місяців тому

    Hi Reza,
    Does UDF support using a custom connector inside the UDF? Do you have any articles or code samples for this?
    Is return type in UDF compulsory since the custom connector just writes to SQL.
    Any help would be appreciated 🙂

    • @RezaDorrani
      @RezaDorrani  7 місяців тому

      I don’t think it supports custom connector.
      I do not have any references on it.

  • @KuldeepSingh-nq1vi
    @KuldeepSingh-nq1vi 9 місяців тому +1

    Very Nice Explanation Reza..

  • @sergiizelenko4114
    @sergiizelenko4114 9 місяців тому

    Great video, thank you very much!
    There are some cases when I need to use a collection within a single screen (when modifying a gallery and patching the result to DB, for instance). Can such collection be "local" to save pc memory?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Named formulas, collections and variables each have their use cases. None of them should be used as a data source.
      Check savedata loaddata functions for your scenario

  • @STY-ze3yy
    @STY-ze3yy 9 місяців тому +1

    Excellent bro!

  • @ErinMark11
    @ErinMark11 6 місяців тому

    Hi Reza, question about the named formulas and having your datasource filtering there instead of inside the gallery itself... are there any delegation concerns? or is the named formula acting like it was written inside the gallery's "items" property?

    • @RezaDorrani
      @RezaDorrani  6 місяців тому +1

      Its like it’s written inside gallery items property (as far as I remember)
      Best to try it out and check

  • @jaddfigaro7246
    @jaddfigaro7246 9 місяців тому +1

    All formulas in one easy place … GAME CHANGER !!
    Way easier to see where you almost duplicate formula without knowing

  • @PritishTogare
    @PritishTogare 9 місяців тому

    Hi @Reza. This video really helped during my first POC. I ran into an issue. not sure if its a bug.
    Now the Calendar view does not display the SharePoint List Data but if I edit the item in SP and save it as is, it will then display in PowerApps. I tried removing the data source and adding it again but didnt help.
    Request your assistance please. Thanks again

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Calendar view?

    • @pritishable
      @pritishable 9 місяців тому

      Sorry, it's this video
      ua-cam.com/video/pA7pcAOvf10/v-deo.htmlfeature=shared

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      I do not remember running into any issues with that video. I would recommend posting your issue on forums at powerusers.microsoft.com/

  • @aducaale328
    @aducaale328 9 місяців тому +3

    Ramadan mubaarak to all of you.

  • @abdussalambaderkudhal-fz7jw
    @abdussalambaderkudhal-fz7jw 10 місяців тому

    Thank you, Reza, for the access.
    Will this named formulas work in ForAll loop?
    if there is no sequence in named formula, that means we cannot use dependent formula?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      It should work in forall also. Best to test and check.

  • @AhmadSaab-x7n
    @AhmadSaab-x7n 9 місяців тому

    Hi Reza,
    Thank you for sharing this.
    When multiple users are simultaneously working on the same app, if User 1 updates an item, will that update automatically reflect for User 2 without requiring a manual refresh?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      It wont update automatically. Its the same behavior for any other feature in Power App. A manual refresh or restart of app or execution of a delegable function via an action like go to screen or button click would be needed.

    • @AhmadSaab-x7n
      @AhmadSaab-x7n 9 місяців тому +1

      @@RezaDorrani Thank you 🌹

  • @adityapadmawar8754
    @adityapadmawar8754 9 місяців тому

    Hi Reza sir, is UDF still a preview feature? When can we expect this function in production?

  • @shaikhfirdos2723
    @shaikhfirdos2723 9 місяців тому +1

    Awesome❤❤

  • @giorgiosurian2190
    @giorgiosurian2190 9 місяців тому

    Thank you as always! Question, doesn't this way make many more calls to the database compared to collections? Example, I have a collection of employees. In many galleries with records inserted by employees I want their picture to be displayed. With a collection I made one single call OnStart, wouldn't NamedFormulas make 1 call for each record of the galleries to retrieve the pictures of employees having hundreds of separate calls each time?
    Also, would views from Sql Server also be automatically refreshed?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Calls within galleries (n+1) query should be taken into consideration. For that specific scenario, a collection makes more sense

    • @giorgiosurian2190
      @giorgiosurian2190 9 місяців тому

      Understood, thank you. Would views from SQL be automatically refreshed?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      @@giorgiosurian2190 I have not tried with sql views hence not sure

  • @patelbhargav
    @patelbhargav 10 місяців тому

    Thanks for the early access Reza!

  • @anantv10
    @anantv10 2 дні тому

    Hi Reza, is named formula is GA Release or not ?

  • @jevinwang3769
    @jevinwang3769 9 місяців тому

    One more question - UDF does not support return type to be an array / items, right? many thanks

  • @Vennex89
    @Vennex89 8 місяців тому

    Hi Reza, I have some complex collections I use that I've split into two collections: 1 to collect the raw data and another to do non-delegable functions on the raw data. How does this play into Formulas? Just now when I tried transferring these collections over to formulas and added the named formula to a gallery, it almost stalled out the app. 😅 Any pointers? Should I get the raw data as a formula and a normal collection for the complex work afterwards? Or the other way around?

    • @RezaDorrani
      @RezaDorrani  8 місяців тому +1

      Non-delegable functions will remain non-delegable. You use collections or not, it won't matter. I encourage using delegable functions only.

    • @Vennex89
      @Vennex89 7 місяців тому

      @@RezaDorrani Thank you! So if I need to perform functions that are not delegable, like "AddColumns", should I use the Named Formulas to get the raw data first, such as just filtering by RecordStatus = "Active", and then create a collection off of that Named Formula? I guess I'm just trying to determine whether it is faster this way or if I should just do it all using collections instead.
      Appreciate the response if you have the time. Thank you again!

    • @RezaDorrani
      @RezaDorrani  7 місяців тому +1

      @@Vennex89 It wont be faster as query is not delegable. Continue using collections

    • @Vennex89
      @Vennex89 7 місяців тому

      @@RezaDorrani Thank you! Really appreciate it Reza! And thank you for responding to comments. You are only of my true and faithfuls to go to!

  • @kiran_gawade
    @kiran_gawade 9 місяців тому

    Raza, one question for formulas. When we use, it instantly execute it for collection. Does it will impact per day request cap or limit?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Not sure what instantly execute for collection means.
      These formulas are only calculated when referenced on a screen.

  • @RowDogSA
    @RowDogSA 9 місяців тому

    Great video. I am very confused with where you changed the collection colItems to a named formula nfHighPriorityTasks. The nfHighPriorityTasks table is not visible in the variables section like collections are. Is it stored locally somewhere?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      Named formulas dont list out in variables section. You simply refer to it where you need it and the formula will run.

    • @RowDogSA
      @RowDogSA 9 місяців тому +1

      @@RezaDorrani Thank you!

  • @Bekesam
    @Bekesam 8 місяців тому

    In a sense, does this not dramatically minimize the use of collections? Almost to the point that named formula's would replace collections, except for discrete use cases?

    • @RezaDorrani
      @RezaDorrani  8 місяців тому

      Named formulas would and should reduce variables and collections usage

  • @peterbibb8967
    @peterbibb8967 9 місяців тому

    My annual period runs from 1st April to 31st March, what's the easiest way to set up two variables StartOfPeriod (eg 1/4/2024) and EndOfPeriod (31/3/2025) such that today is within that period? Is it using formulae, or setting global variables? Thanks

  • @benjaminlahsen6721
    @benjaminlahsen6721 9 місяців тому

    Hi Reza! This is great. I can´t activate named formulas in my Power Apps tho. I can see the Formulas property in the App screen but it doesn't work and I am sure I am using the right syntax.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Named Formulas is Generally Available. No need to activate it.
      Im not sure why it would not show up in your app.

    • @benjaminlahsen6721
      @benjaminlahsen6721 9 місяців тому

      it does show up, but when I close the formula using ';' as requested, the error message says "Missing parent close". It is wierd@@RezaDorrani

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      @@benjaminlahsen6721 I would recommend posting your issue on forums
      powerusers.microsoft.com

  • @sridharreddy1607
    @sridharreddy1607 8 місяців тому

    Hi Reza, I have a combobox in that onchange I have a logic to update few variables coming from database sql server which works perfectly in edit mode but not in play mode as I can't see the variable values getting updated any help/suggestion please ?

    • @RezaDorrani
      @RezaDorrani  8 місяців тому

      I have not come across this issue and hence not sure what the cause for it could be.
      I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com

  • @StoneCold9898
    @StoneCold9898 9 місяців тому

    Hello Reza, Is there any way i can remove the attachment from the sharepoint list through Powerapps? for other fields we can Patch Blank() values but how to delete attachments or Image fields.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Patch function does not support attachments. Form control or flow is your other options.
      Image column can be patched. To make values blank with patch - ua-cam.com/users/shortsfg-4nu_amJI?si=i9y5dZJalZZae5XE

  • @nadyam.7733
    @nadyam.7733 10 місяців тому +1

    TY! ☺️

  • @dixitjoshi3947
    @dixitjoshi3947 9 місяців тому

    So, If we attach the named Formula to a gallery component will it automatically refresh or we have to manually refresh it.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      It will auto refresh when user lands on the page having the gallery or a filter or reset action is initiated.

    • @dixitjoshi3947
      @dixitjoshi3947 9 місяців тому +1

      @@RezaDorranigot it. Thanks for the super fast response.

  • @steviesimsii
    @steviesimsii 9 місяців тому

    Can you call power automated flows with named formulas?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Currently, No

    • @steviesimsii
      @steviesimsii 9 місяців тому

      @@RezaDorrani Ok so run The call OnStart , set the return in a variable and then Collect the collection in named formulas !?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      @@steviesimsii Better to use collection in those scenarios.

  • @shaikhrijwan9322
    @shaikhrijwan9322 9 місяців тому

    Hello sir...
    I want to watch your power platform training videos...
    So. How much amount i need to pay?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      If you click on JOIN button on my channel on a web browser, it will show you the pricing for each tier.

  • @GordeNN
    @GordeNN 9 місяців тому

    Can we do patch SharePoint list inside UDF?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Have not tried it so not sure

  • @pintu1502
    @pintu1502 9 місяців тому

    Hi Reza
    how to put row limit in editable table in powerapp. like only want 10 rows in editable table .

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Check firstN formula documentation

  • @rudivanderlocht3212
    @rudivanderlocht3212 9 місяців тому

    Reza, Can named formulas already be used in a PROD environment?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Named Formulas is generally available and should be used for production scenarios.
      UDF is in preview.

  • @gates1978
    @gates1978 9 місяців тому

    Thank you so much. I can't find the li k to download.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      Link to download is for members only (check description for details)

  • @nihar4713
    @nihar4713 5 місяців тому +1

    Amazing

  • @pream7461
    @pream7461 9 місяців тому

    @RezaDorrani "I have a question regarding PowerApps form mode. When I add an attachment to the form and then switch to view mode, clicking on the attachment opens it in a new tab. However, PDF and image files open in view mode as intended, while Word documents and Excel files open in edit mode. I want all file types and documents to open in view mode when clicked on in a new tab". Clear the doubt and make one video.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      I have not experienced an issue with opening attachment based on modes hence not sure.
      I recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com

    • @pream7461
      @pream7461 9 місяців тому

      @@RezaDorrani Thank you @RezaDorrani 🤝.
      "Why don't you try using PowerApps to achieve this?"

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      @@pream7461 "Why don't you try using PowerApps to achieve this?" ??

    • @pream7461
      @pream7461 9 місяців тому

      @@RezaDorrani😂😂 I've experimented multiple times, but unfortunately, I haven't been successful in achieving the desired effect. I'm seeking your guidance and expertise for a suitable solution recommendation.

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      @@pream7461 I cannot reproduce your issue. Best place to post your issue would be the forums powerusers.microsoft.com/

  • @fr.minabarsoum8528
    @fr.minabarsoum8528 8 місяців тому

    Hello there, I am trying to load more than 2000 records into a table in a named formula section using forall but can't achieve that. Appreciate your help

    • @RezaDorrani
      @RezaDorrani  8 місяців тому

      ForAll is NOT a delegable function.
      Best to follow best practices and work with delegation - watch ua-cam.com/video/2cKcylsGlPg/v-deo.htmlsi=VxmN0FnKcMdLcPfB

    • @fr.minabarsoum8528
      @fr.minabarsoum8528 8 місяців тому

      @@RezaDorrani Sure - anyother suggestion how to load the 3 iterration of 2000 records each into 1 table but not as a collection (managed to do that in the onstart function) but was really happy to move most of my funcitons to formulas after watching this video

    • @RezaDorrani
      @RezaDorrani  8 місяців тому

      Why do u need to load all data at once?
      If your query is delegable, as you scroll through the results it will load all the data.

    • @fr.minabarsoum8528
      @fr.minabarsoum8528 8 місяців тому

      Because the query is not delegable, hence I'm trying to load it all.

    • @RezaDorrani
      @RezaDorrani  8 місяців тому

      @@fr.minabarsoum8528 That will impact app performance in a big way and not recommended.

  • @legendgod
    @legendgod 2 місяці тому

    I have defined a named formula :
    gblColorBlue = RGBA(0,179,228,1);
    but when I pass gblColorBlue to a component as input properties. It retunes error: Name isn't valid. 'gblColorBlue ' isn't recognized.
    I workaround it by define a variable at App.OnStart:
    varColorBlue = gblColorBlue
    then pass varColorBlue to component.
    Is it the suggested workaround?

    • @RezaDorrani
      @RezaDorrani  2 місяці тому

      I have not used components in a long time and hence not sure of the workarounds.
      I will recommend posting your query on the forums at powerusers.microsoft.com in case someone has done something similar.

  • @GroverParkGeorge
    @GroverParkGeorge 9 місяців тому

    I love the idea of UDFs. Can I call a SQL Server Stored Procedure from a UDF in a Named Formula?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому +1

      Sql stored procedure just got announced. I have not tried it. Give it a shot and see.

    • @GroverParkGeorge
      @GroverParkGeorge 9 місяців тому +1

      @@RezaDorrani LOL. That's a nicer way of telling people what I always tell people in forums. "What happened when YOU tried it?" I will let you know. 😊😊

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      @@GroverParkGeorge Always best to try it.

    • @GroverParkGeorge
      @GroverParkGeorge 9 місяців тому

      @@RezaDorrani It looks like SQL Server Stored Procs can't be executed in Named Formulas. 😔😔

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      @@GroverParkGeorge same with cloud flows.

  • @lakshmichaitanya3504
    @lakshmichaitanya3504 9 місяців тому

    Hi, I came across browser crashing issue suddenly in development environment (lower Environment) with data table control where as it's working fine in production environment (higher/live environment).
    I have checked both environments are having same authoring versions but why the issue in dev not in prod...?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      I have no clue about this. Not something I have come across.

  • @naveen-i3w
    @naveen-i3w 6 місяців тому

    when iam trying to write a named formula to a list and when i see data from name formula variables pane ,it is displaying as 0 rows
    eg: nfListName='List Name' ,'List Name' is sharepoint list name. But other named formulas are assigning as you mentioned in the video

    • @RezaDorrani
      @RezaDorrani  6 місяців тому

      Im not sure why that would be the case

  • @siddeshgawande3924
    @siddeshgawande3924 9 місяців тому

    Hii reza, is it possible to Navigate different screen if user having access then navigate to screen 1 otherwise navigate to Screen 2.
    In start screen and on start property of app I am not able to Navigate screen automatically by reading my access management.. Pls provide any solution
    While loading app 1st read the access, based on that navigate to particular screen

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Closest video link I have is ua-cam.com/video/Hrc51S2NgBo/v-deo.html

  • @ravirachchh4062
    @ravirachchh4062 9 місяців тому

    Record and Table type of parameter not supported?

  • @jevinwang3769
    @jevinwang3769 9 місяців тому

    How come I defined the named formula without error, but when I try to use it, it shows "unknown or unsupported function"? thanks!

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      No idea about that as I have not experienced this

    • @jevinwang3769
      @jevinwang3769 9 місяців тому

      @@RezaDorrani Oh I know - forgot to toggle the UDF on

  • @putzz67767
    @putzz67767 9 місяців тому +1

    Greatttt

  • @arunv1909
    @arunv1909 9 місяців тому +1

    Thanks

  • @gaultztaguinod9289
    @gaultztaguinod9289 9 місяців тому

    Last time I used User Defined Function (a few weeks ago), my canvas app wouldn't publish - it just kept trying but was never successful.
    I had to roll back my changes to fix.
    Has anyone successfully publish to production?

    • @RezaDorrani
      @RezaDorrani  9 місяців тому

      Yes, I was able to 😊
      Trick is to reference data sources separately. Check the named formulas syntax I show at end of video.

  • @malikhan0123
    @malikhan0123 9 місяців тому +1

    Happy Ramazan

  • @zerokhan858
    @zerokhan858 3 місяці тому

    🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐🐐