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
Dual Super User

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
Dual Super User

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!

Highlighted
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
Dual Super User

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

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (7,192)