Fact or Fiction? I can use global variables

agoralewski
Community Manager
Community Manager

Statement:

I can use global variables.

Question Credit:  Peter Fugere

Is this statement fact or fiction? Comment your best guess below! Answers will be revealed in one week.

agoralewski_0-1655214473895.jpeg

 

* This question is applicable to Platform 7.3.0 and may not be relevant to future releases

 

1 ACCEPTED SOLUTION

agoralewski
Community Manager
Community Manager

FACT!

You were all correct -- well done!!!

View solution in original post

7 REPLIES 7

MarkMatson
New Contributor III

FACT! I think. Through the BRApi dashboards functions.

TimVierhout
New Contributor III

Fact. Every business rule has a global object where you can store global variables.

Michel_Sabourin
Contributor II

Tim is correct, but you must enable the global functions under properties

Michel_Sabourin_0-1655243962889.png

 

 

This setting allows you to reference the business rule in a member formula. The globals object is always enabled.

t_kaplanis
New Contributor II

Fact. Can be done in the following way:

Dim MyVariable As Integer = 5 (Can be done with other datatypes such as "String")

Globals.SetObject("DesiredGlobalVariableNameHere", MyVariable)

Globals.GetObject("DesiredGlobalVariableNameHere")

Sara_EFR
New Contributor

Fact... I think...

Change the settings under Variables?

#newbie

agoralewski
Community Manager
Community Manager

FACT!

You were all correct -- well done!!!