Now I see, there are two similar implementations:
// This one is actually used in the XAML, it is from the internal UiPath libraries
UiPath.UIAutomationNext.Activities.NSAPCallTransaction
// invoker.Invoke() crashes with UiPath.UIAutomationNext.Exceptions.NodeNotFoundException: 'Could not find the user-interface (UI) element for this action.
and the one I used before:
// this is as well from the
UiPath.Core.Activities.SAP.CallTransaction
// invoker.Invoke() crashes with UiPath.Core.Activities.ElementNotSetException: 'The target Element was not specified for this activity. You should set its Target property or use this activity inside of a scope activity (Attach Browser, Open Browser, Open Application, Attach Window, Get Active Window, Element Scope activities).'
I reference in my project only these two libraries:
UiPath.System.ActivitiesUiPath.UIAutomation.Activities