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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Storing PowerFx/Math O...
Power Apps
Unanswered

Storing PowerFx/Math Operations/General Code in Sharepoint list

(0) ShareShare
ReportReport
Posted on by 61

Is there any way to store code snippets in a SharePoint list so that I can use them in multiple apps? Is there a better solution? 

For instance, If I have a function that I am using for a bunch of apps, I would like to ideally only change it in one place, not have to do find every app that has that function and update it. 

I need to be able to trigger the code snippet by form dynamically. 

For example:

for sales commission process 1, the commission amount will need to sum field 1,2,3

for sales commission process 2, the commission amount will need to sum fields, 1,4,5

 

I am drawing the forms similar to how is shown here: https://platformsofpower.net/building-dynamic-forms-in-power-apps-part-1/  

I want to be able to define functions that will be applied to certain columns, and ideally would like that to be done at the SharePoint list level. 

 

Does anyone have any thoughts or experience with this?

Any help is appreciated.

Thanks!

 

Categories:
I have the same question (0)
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    I tried to figure this out long ago with no avail. I think the best bet is to build micro services using power automate flows to do a thing. Then you can just update that flow logic which will affect everything using it. 

  • JeffreyGonzalez Profile Picture
    61 on at

    Ah, that is unfortunate. I don't think power automate flows will work in my scenario, as I am needing to trigger potentially different logic for each field in a form on submit with references to other fields. I may have not explained my issue well in the first post, but alas. I will keep trying things, but hopefully updates to come will increase the flexibility of Power Apps. 

  • Verified answer
    cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    If that's the case since you will be referencing control names across the board, checking into Component Libraries. See here. You can create components and use them in your apps, and then update the library that will update across apps. 
    Component library - Power Apps | Microsoft Learn


  • JeffreyGonzalez Profile Picture
    61 on at

    I will look into this. Thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard