Skip to main content

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
}
}

 

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.

 

 

 

 

 


Thank you @MoulaliShaik79 Appreciated for the time. 


Reply