Skip to content

Commit 1ef01eb

Browse files
authored
Merge pull request #178 from docusign/fix/updated-maestro-to-work-with-new-sdk
Updated trigger workflow method and base url for Meastro
2 parents 1a615c3 + 2c2d6ee commit 1ef01eb

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
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/appsettings.example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"AppUrl": "https://localhost:44333",
1616
"RoomsApiEndpoint": "https://demo.rooms.docusign.com",
1717
"AdminApiEndpoint": "https://api-d.docusign.net/management",
18-
"MaestroApiEndpoint": "https://demo.services.docusign.net/",
18+
"MaestroApiEndpoint": "https://apps-d.docusign.com/api/maestro",
1919
"WebFormsBasePath": "https://apps-d.docusign.com/api/webforms/v1.1",
2020
"CodeExamplesManifest": "https://raw.githubusercontent.com/docusign/code-examples-csharp/master/manifest/CodeExamplesManifest.json",
2121
"SignerEmail": "{SIGNER_EMAIL}",

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)