CallJob Method (String, AxaptaObject)
The CallJob method calls the specified Axapta job using the specified job arguments.
Namespace: Microsoft.Dynamics.BusinessConnectorNet
Assembly: Microsoft.Dynamics.BusinessConnectorNet (in Microsoft.Dynamics.BusinessConnectorNet.dll)
Syntax
'Declaration
Public Sub CallJob ( _
jobName As String, _
argsobject As AxaptaObject _
)
'Usage
Dim instance As Axapta
Dim jobName As String
Dim argsobject As AxaptaObject
instance.CallJob(jobName, argsobject)
public void CallJob(
string jobName,
AxaptaObject argsobject
)
public:
void CallJob(
String^ jobName,
AxaptaObject^ argsobject
)
Parameters
- jobName
Type: System.String
- argsobject
Type: Microsoft.Dynamics.BusinessConnectorNet.AxaptaObject
Exceptions
Exception | Condition |
---|---|
AxaptaException | An unexpected error has occurred with Axapta. |
BusinessConnectorException | An unexpected error has occurred with the Business Connector. |
NoSecurityKeyException | The requested operation cannot be performed because the required security key does not exist. |
NotLoggedOnException | The requested operation cannot be performed because the user is not logged on to Axapta. |
ArgumentException | An argument passed to the method is invalid. |
ArgumentNullException | A null reference was passed to a method that does not accept it as a valid argument. |