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

Implementing custom function

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

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

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

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!

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

Dual Super User III
Dual Super User III

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

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