web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using SQL functions
Power Apps
Answered

Using SQL functions

(0) ShareShare
ReportReport
Posted on by 60

Hi all,

 

I've just created a function in mssql:

 

1.PNG

 

This function delivers a table for 1 year with all german public holidays:

2.PNG

Great!!

... now I want to check in PowerApps wether a date (single day // eg.: "2019-06-27") is a public holiday. So I have to call the sql-function like this:

 

3.PNG

 

But how can I achieve this?

I have to call the sql-function with the YEAR ("2019") and the day date ("2019-01-01").

I want to get the fields "istFeiertag" and "feiertag" as result to display it on a text label in powerapps.

 

Any idea?

 

thanks in advance!

joerg

 

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @jup 

    Calling a table based function in PowerApps is not currently supported.  There is an Idea on the idea forum that you might want to go and vote on for this.

     

    That said, you could come up with some workarounds to perhaps utilize Flow for this and possibly also Azure Functions, but doing it directly is not an option.

     

    I hope this provides some help for you.

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @jup ,

    I'm afraid it's not suppoeted to call SQL functions currently in PowerApps.

    I suggest you express your views on PowerApps Ideas Forum. Your precious advice will be very helpful for our work.

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

    As an alternative way, I suggest you use PowerApps functions to make this.

    For example, if you want to get "istFeiertag" and "feiertag" from one specific item(date ("2019-01-01"), you could use this formula:(set it the label's Text)

    LookUp(tablename,datum=Date(2019,01,01),istFeiertag)

    LookUp(tablename,datum=Date(2019,01,01),feiertag)

     

    Best regards,

    Community Support Team _ Phoebe Liu

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard