Skip to content

Flow documentation · legacy product

Flo_ExecuteActionSync ​

Declaration ​

C# public static extern bool Flo_ExecuteActionSync(string ActionFID);

Delphi function Flo_ExecuteActionSync(ActionFID : PChar) : boolean; stdcall;

Example ​

csharp
C#
try
{
Boolean result =FlowAPI.Flo_ExecuteActionSync("00000000-0000-0000-0000-000000000000");
if (result) MessageBox.Show("Action executed successfully"); else MessageBox.Show("Action execution failed");
}
catch (Exception ex)
{
MessageBox.Show("Exception while trying to execute Action - " + ex.Message);
}
pascal
Delphi
try
Result := Flo_ExecuteActionSync('00000000-0000-0000-0000-000000000000');
if Result then
showmessage('Action executed successfully')
else
showmessage('Action execution failed');
except
on e : exception do
showmessage('Exception while trying to execute Action - ' + e.Message);
end;

Description ​

Executes the Action with the specified ActionFID. The ActionFID can be found by looking at the FID column in the FLO_ACTIONS table of the configuration database. The function returns a True or False response indicating whether the action was successfully processed or not.

Because the action will execute Synchronously it will not return until the Action has completed processing.