Forum Discussion

Ando's avatar
Ando
New Contributor II
2 months ago

Extensibility Rule to grab all entities with a Text1 field and run logic on them.

Looking for some code on grabbing all entities with a text1 field of "ABC" and then run logic on them.  I didnt see anything in the Golfstream app to use.  

  • victortei's avatar
    victortei
    New Contributor III

    What’s your goal with that? Are you looking to apply a financial rule, or do you plan to use it in a Dashboard Extender or Extensibility rule?

    As T_Kress mentioned earlier, you can use E#Top.Base.Where(Text1 = 'ABC'). If it's a calculation, you could incorporate that in the DM that calls the Finance BR. If you're aiming for something specific in a Dashboard Extender, BRApi.Finance.Metadata.GetMembersUsingFilter might be the way to go. Ultimately, it depends on what you’re trying to accomplish.