Skip to main content

Accessing the Reason value with code on the flow side

Sample Codes

Flow

By defining the OnAfterEvent or onBeforeEvent events for the position object from which we want to get the reason value on the flow side, we args this information on the code side. We can take it as Reason["en-TR"].

if(args. EventCode == 6) // Number of the button with the Reason property  
LogExtension.Log("Position1_OnAfterEvent: " + args. Reason["en-TR"], args. Context);