ibm-ecm / ibm-content-navigator-samples

Apache License 2.0
19 stars 21 forks source link

Error for "Send for Signature" in Documentibm-content-navigator-samples/DocuSignSamplePlugin/DocuSignPlugin/ #3

Closed xavnicnsi closed 2 years ago

xavnicnsi commented 2 years ago

Once integrated by following the readme guide, I got those errors in log file when clicking on "Send for Signature" from the docusign context menu: image

image

• com.ibm.ecm.struts.actions.PluginAction.isSecureService() Invalid plugin id: DocuSignPlugin. This is likely a logic error in the plugin itself. • com.ibm.ecm.struts.actions.BaseActionHandlerImpl.executeAction() java.lang.NullPointerException

emshedu commented 2 years ago

Hi Please pull the latest update from Git. Please let me know if the issues still persists

xavnicnsi commented 2 years ago

Hello emshedu,

the previous error is gone and tahbks for that fix :) Really Appreciate your code. But I have now another issue. After filling up the form in icn, I enter 2 email addresses as recipient but after sending the Signature request I'm getting this error image

I checked the log file and I get this error: CIWEB Error: [XXXXXXXX@127.0.0.1] [REQUEST 1209] com.ibm.ecm.util.PluginUtil.invokeService() java.lang.RuntimeException: Post request Failed - HTTP error code: 400 { "errorCode": "INVALID_EMAIL_ADDRESS_FOR_RECIPIENT", "message": "The email address for the recipient is invalid. The recipient Id follows."} at com.ibm.icn.extension.docusign.util.DocuSignUtil.executePostUrl(DocuSignUtil.java:167)

Same error stated in, Docusign Api dashboard image any idea?

TIA

emshedu commented 2 years ago

Hi xavnicnsi this is because the emails needs to be registered within Docusign API as signees

xavnicnsi commented 2 years ago

Wow my bad. I don't know why I thought that the email addresses didn't need to be registered in Docusign Account so each email address could be used even if not registered. But of course it makes sense in a way but in some other use cases, not sure... Anyway once the email addresses are registered within the templates , then it's working. Many thanks again emshedu for your quick response. Really appreciate your code again!!

emshedu commented 2 years ago

You're very welcome! I am making some updates to add extra UI functionality in order to improve user experience. Please look forward to an updated version. (I will also inform this thread) Thank you for utilising this plugin

xavnicnsi commented 2 years ago

Sure I'm looking forward to it. By the way, once all recipient signed the document, is ICN supposed to get the new document with all recipients signatures? like a checkin process to replace the original doc sent without signature?

xavnicnsi commented 2 years ago

or the checkin process has to be done manually by recovering the signed document from the last email once docusign signing process has been completed?

emshedu commented 2 years ago

Yes you are correct! Please manually retrieve the signed document once it is complete. This is one of the updates that will be in the coming version. ICN will be able to retrieve the signed document, and update the tooltip related to the document with the the status of the plugin. This will be done periodically

xavnicnsi commented 2 years ago

That's great to hear. thanks for confirming that new feature! really appreciate your code!!

wdrdres3qew5ts21 commented 1 year ago

Just adding more picture about how to config for "recipient email address" you need to create Template First, then put list of people who required to signed.

image image image
xavnicnsi commented 1 year ago

Alternatively, a template without any recipient (not recommended) can be set to allow any recipient email adddress for the send for signature from ICN