如何删除“发件人视图”创建的锁? [英] How to remove lock created by 'Sender View'?

查看:71
本文介绍了如何删除“发件人视图”创建的锁?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我使用窗体创建了信封的仪表板,用户可以在其中编辑基本的信封收件人信息,并且窗体的操作捕获更改并进行 PUT请求更新信息在DocuSign上。 发件人视图,该视图会加载到后台,并在用户单击Bootstrap nav-tab 时显示。

In my application, I've created a dashboard for envelopes with a form where users can edit basic envelope recipient information, and the action of the form captures the changes and makes a PUT request to update the info on DocuSign. Also on this dashboard is the Sender View, which is loaded in the background and made visible when a user clicks on a Bootstrap nav-tab.

在通过表格将更改保存到收件人后,遇到一个错误:

Upon saving the changes to a recipient via the form, I'm greeted by an error:

"errorCode": "EDIT_LOCK_NOT_LOCK_OWNER",\\r\\n  "message": "The user is not the owner of the lock. The envelope is locked by another user or in another application"\\r\\n}'

我相信这是由于在后台加载了发件人视图,从而防止了更改信封,而无需先在Sender View iFrame中单击放弃更改。不幸的是,我不能依靠我的用户每次想要更改信封的方式来执行此操作。即使我直到真正需要时才加载Sender View iFrame,我仍然不信任用户在提交表单之前放弃更改。

I believe this is due to the Sender View being loaded in the background, thereby preventing changes to the envelope without first clicking "Discard Changes" in the Sender View iFrame. Unfortunately, I cannot rely on my users to do this every time they want to make a change to the envelope. Even if I don't load the Sender View iFrame until it is actually needed, I still don't trust users to discard changes before submitting my form.

我已经已尝试删除锁定,但这证明是不成功的,我必须等待锁定超时才能再次使用发件人视图。

I've tried deleting the lock, but this proves unsuccessful and I must wait for the lock to timeout before I can even use the Sender View again.

API是否提供任何解决方案强制删除信封上的锁还是复制发件人视图的放弃更改操作?

Does the API provide any solution to either forcefully remove the lock on the envelope or duplicate the Sender View's "Discard Changes" action?

推荐答案

发件人您是正确的遗憾的是,视图锁无法删除。只能使用由lockedByApp授予的令牌(而不是lockedByUser)来删除锁。使用发件人视图,Classic DocuSign体验(CDE)或New DocuSign体验(NDSE)是lockByApp,而GET不包含令牌。

You are correct, Sender View locks can unfortunately not be deleted. Locks can only be deleted with the token, which is granted by the lockedByApp (as opposed to lockedByUser). With Sender View, either the Classic DocuSign Experience (CDE) or New DocuSign Experience (NDSE) is the lockedByApp and the GET does not include the token.

发件人视图:

{
  "lockedByUser": {
    "userName": "Rickey S",
    "userId": "xxxxxxxx-2c1d-493a-89d7-6bb3117b52bf",
    "uri": "/users/xxxxxxxx-2c1d-493a-89d7-6bb3117b52bf"
  },
  "lockedByApp": "New DocuSign Experience",
  "lockedUntilDateTime": "2016-06-15T05:34:16.8600000Z",
  "lockType": "edit"
}

API生成的锁定:

{
  "lockedByUser": {
    "userName": "Rickey S",
    "userId": "xxxxxxxx-2c1d-493a-89d7-6bb3117b52bf",
    "uri": "/users/xxxxxxxx-2c1d-493a-89d7-6bb3117b52bf"
  },
  "lockedByApp": "Rickey Postman",
  "lockedUntilDateTime": "2016-06-15T05:33:30.6270000Z",
  "lockDurationInSeconds": "120",
  "lockType": "edit",
  "useScratchPad": "false",
  "lockToken": "xxxxxxxxxxAtZmQ4NS00YzNjLTllN2ItZjExMzE3MzliODgy"
}

这篇关于如何删除“发件人视图”创建的锁?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆