Skip to content

Commit e8b9403

Browse files
committed
Updated trigger workflow method and base url for Meastro
1 parent 1e806e7 commit e8b9403

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

launcher-csharp/Maestro/Controllers/TriggerWorkflow.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ public ActionResult SubmitForm(WorkflowTriggerModel model)
150150
docuSignManageClient,
151151
accountId,
152152
new Uri(workflow.TriggerUrl),
153-
model);
153+
model,
154+
this.RequestItemsService.WorkflowId);
154155

155156
this.RequestItemsService.InstanceId = result.InstanceId;
156157

launcher-csharp/Maestro/Examples/TriggerWorkflowService.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ public static string PublishWorkFlow(DocuSignClient docuSignClient, string accou
5050
}
5151
}
5252

53-
public static TriggerWorkflowViaPostResponse TriggerWorkflow(DocuSignClient docuSignClient, string accountId, Uri triggerUrl, WorkflowTriggerModel model)
53+
public static TriggerWorkflowViaPostResponse TriggerWorkflow(
54+
DocuSignClient docuSignClient,
55+
string accountId,
56+
Uri triggerUrl,
57+
WorkflowTriggerModel model,
58+
string workflowId)
5459
{
5560
//ds-snippet-start:Maestro1Step4
5661
var maestroApi = new WorkflowTriggerApi(docuSignClient);
@@ -76,7 +81,7 @@ public static TriggerWorkflowViaPostResponse TriggerWorkflow(DocuSignClient docu
7681
};
7782
//ds-snippet-end:Maestro1Step4
7883
//ds-snippet-start:Maestro1Step5
79-
return maestroApi.TriggerWorkflow(accountId, payload, options);
84+
return maestroApi.TriggerWorkflow(accountId, workflowId, payload, options);
8085
//ds-snippet-end:Maestro1Step5
8186
}
8287
}

launcher-csharp/launcher-csharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<PackageReference Include="DocuSign.Click" Version="2.0.0-rc1" />
4141
<PackageReference Include="DocuSign.eSign.dll" Version="7.0.0-rc2" />
4242
<PackageReference Include="DocuSign.Monitor" Version="2.0.0-rc1" />
43-
<PackageReference Include="DocuSign.Maestro" Version="1.0.0-rc1" />
43+
<PackageReference Include="DocuSign.Maestro" Version="1.0.0-rc4" />
4444
<PackageReference Include="DocuSign.Rooms" Version="2.0.0-rc1" />
4545
<PackageReference Include="DocuSign.WebForms" Version="2.0.0-rc1" />
4646
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />

0 commit comments

Comments
 (0)