You might have encountered an error while referring a named formula in a control.

Let me show you an example of the error and how to fix it.

Reason and Fix:

  • I created a named formula ‘loggedInUserEmail‘ to capture the logged-in user’s email as below.
  • Lets add a Label control and map the ‘loggedInUserEmail’ formula to the ‘Text’ property.
  • But the app is giving an error that it doesn’t recognize ‘loggedInUserEmail‘.
  • So, what’s the issue? It’s simple; you need to end the named formula declaration with a semicolon (;) always. Add the semicolon to the end of ‘loggedInUserEmail‘ and give it a try.
  • Observe the screen below. Adding a semicolon (;) resolved the issue, and now the Label control displays the email.

Refer previous post on Named Formulas, if you are a beginner.

🙂

One response to “Power Fx Named Formulas | ‘Unrecognized formula’ error”

  1. […] defines vector-based graphics in XML format. So to store the XML content I am defining a Named Formula variable […]

Leave a Reply

Visitors

2,190,763 hits

Top Posts

Discover more from Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

Subscribe now to keep reading and get access to the full archive.

Continue reading