Skip to content

Commit 4bfabd7

Browse files
authored
fixed bulk export and get user by id (#114)
1 parent 86d3695 commit 4bfabd7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/docusign/controller/admin/examples/A003BulkExportUserData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse
5353

5454
String saveFilePath = "";
5555

56-
if (!data.getResults().isEmpty()) {
56+
if (data.getResults() != null && !data.getResults().isEmpty()) {
5757
String csvUri = data.getResults().get(0).getUrl();
5858
saveFilePath = BulkExportUserDataService.moveUserListExportToFile(
5959
csvUri,

src/main/java/com/docusign/controller/admin/examples/A007RetrieveDocuSignProfileByUserID.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse
3737
UsersDrilldownResponse usersResponse = RetrieveDocuSignProfileByUserId.
3838
getDocuSignProfileByUserId(usersApi, organizationId, args.getUserId());
3939
//ds-snippet-end:Admin7Step3
40+
4041
DoneExample
4142
.createDefault(getTextForCodeExampleByApiType().ExampleName)
4243
.withMessage(getTextForCodeExampleByApiType().ResultsPageText)
43-
.withJsonObject(usersResponse.getUsers()).addToModel(model, config);
44+
.withJsonObject(usersResponse).addToModel(model, config);
4445

4546
return DONE_EXAMPLE_PAGE;
4647
}

0 commit comments

Comments
 (0)