cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Implementing custom function

How to create custom functions and to use them in multiple controls ?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Implementing custom function

Hi @Dipak 

 

I am afraid there is no direct way to implement this. If you think this should be added as a functionality then please raise an idea on: https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas
 
As a workaround for this, you can create a button and write the piece of code on the "OnSelect" property and set the "Visible" property as false. When you want to trigger this button without even selecting it, you can use expression: Select(Button1). This may not be the perfect way to implement this but until the functionality is added, in my opinion this is worth a try.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Highlighted
Dual Super User III
Dual Super User III

Re: Implementing custom function

Hi @Dipak 

 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Regular Visitor

Re: Implementing custom function

Hey

In the thread which you have given does not meet my issue. Is there any way to write user defined functions and then use them repeatedly.

 

Thanks

Highlighted
Dual Super User III
Dual Super User III

Re: Implementing custom function

Hi @Dipak 

 

I am afraid there is no direct way to implement this. If you think this should be added as a functionality then please raise an idea on: https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas
 
As a workaround for this, you can create a button and write the piece of code on the "OnSelect" property and set the "Visible" property as false. When you want to trigger this button without even selecting it, you can use expression: Select(Button1). This may not be the perfect way to implement this but until the functionality is added, in my opinion this is worth a try.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,441)