Appearance
Launching a Transaction
Once you have the workflow ID and all the data needed to be injected into the final API call, you can launch the transaction.
csharp
var req = new WorkflowRequestModel()
{
Workflows = new List<object> { myWorkflow }
};
var api = new WorkflowsApi(myRestEndpointUrl);
var results = api.GetWorkflows(req, apiKey, apiSecret, apiUsername, apiPassword);
if (results.IsSuccessful.Value)
{
var transaction = results.Transactions[0];
// Update or Inject all unique launch data here
// =============================================
transaction.Description = "My Altered Description";
transaction.Participants[0].FullName = "<Inject Signer Name Here>";
transaction.Participants[0].EmailAddress = "<Inject Email Address Here>";
// =============================================
var transactionReq = new TransactionCreateRequestModel()
{
Transactions = new List<TransactionCreateModel> { transaction }
};
var transactionApi = new TransactionsApi(myTransactionRestEndpointUrl);
var transactionResults = transactionApi.CreateTransactions(transactionReq, apiKey, apiSecret, apiUsername, apiPassword);
if (transactionResults.IsSuccessful.Value)
{
// Do work
}
}