OliverH | Posts: 28

No RoleId returned

0 votes
Hey team, We have a client reporting that they have an issue can't get role id returned. Here's the workflow: I have created a transaction with your java sdk. If I go look at the JSON directly by REST api, for the document that has been added I can look at the json and see that the role is PRIMARY. However when I use the sdk and do an eslClient.getPackage if I expand the returned package and look at the documents and the signatures on the document when I look at that particular signature the roleID is null. Can you help me know what I need to do to be able to get the role back when using the SDK? Thanks,

Duo_Liang | Posts: 3776

Reply to: No RoleId returned

0 votes
Hi there, As we discussed in private channel, role ID can't get directly from the signature object. (The role ID specifically refers to the placeholder ID when the recipient type was a placeholder instead of an actual signer because placeholders don't have a signer email) Therefore, to get the role ID, you can use signer email to identify your signer, please try below Java SDK code:
                    DocumentPackage pkg = eslClient.getPackage(packageId);
                    ...
                    String signerEmail = "REMOVED_EMAIL";
                    String roleId = pkg.getSigner(signerEmail).getId();
Hope this could help, Duo

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off