Solved

How to check if an action name exist within a graph?

  • 10 January 2023
  • 2 replies
  • 134 views

Userlevel 7
Badge +8

Hello all,

I need to check in a graph an Action Name exist so I loop through the actions but I am unable to get the Action name. Can someone help me out here?

for (int actionID = 0; actionID < Base.Actions.Count; actionID++)
{
string actionName = Base.Actions[actionID].ToString();

if (actionName == "MyButton")
{
//Do Stuff
}
}

 

icon

Best answer by MoulaliShaik79 11 January 2023, 14:19

View original

2 replies

Userlevel 4
Badge +1

Hi @aaghaei,

After spending a couple of hours, I came to know that by using the below code, We can get all the ActionNames from the current Graph.

            foreach (var act in e.Cache.Graph.Actions.Keys)
            {
                var actionName = act;
            }

 

The below one is from ServiceOrders Screen:

 

 

 

I hope it helps you!

Moulali Shaik.

 

 

 

 

 

Userlevel 7
Badge +8

Thank you @MoulaliShaik79 Appreciated for the time. 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved