将 URL 发送(加载)到 Web 浏览器并在 APEX 的后台运行 [英] Send (Load) a URL to web browser and run it in background in APEX

查看:15
本文介绍了将 URL 发送(加载)到 Web 浏览器并在 APEX 的后台运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apex/Visualforce 是否允许在 apex 中存储为字符串的 URL,并在后台在 Web 浏览器中运行它.

Does Apex/Visualforce allow a URL which is stored as string in apex and run it in web browser in background.

实际上,该 url 是从 Docusign RestAPI 调用返回的,用于将信封发布到更正"状态.在我手动将 url(链接)粘贴到 Web 浏览器并运行它之前,信封校正状态不会被激活.

Actually, that url is returned from a Docusign RestAPI callout for posting the envelope into "correction" status. The Envelope correction Status is not activated until i manually paste the url (link) in to a web browser and run it.

有谁知道如何在后台通过 Apex/Visualforce 在 Web 浏览器中以编程方式运行 url?
(或者)无论如何,除了在网络浏览器中运行 URL 之外,我是否可以在 Docusign 中激活信封的更正"状态?

Does anyone know how to run a url programatically in a web browser through Apex/Visualforce in background ?
(or) Is there anyway that i could activate the "correction" status of envelope in Docusign other than running the URL in web browser?

推荐答案

据我了解您的问题,简单的答案是否"/是",但让我分解一下:

As I understand your question(s), the simple answer is NO/YES, but let me break it down:

  1. 从 Apex 运行字符串 URL - 是 - 请参阅页面参考

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_system_pagereference.htm

  1. 能否在后台运行 URL - 是的,您可以使用 HTTP 类

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_http.htm#apex_classes_restful_http_http

  1. 您能否在后台运行 DocuSign 正确的 URL - 不,您返回的 URL 需要浏览器进行渲染和用户 UI 交互.

  1. Can you run a DocuSign correct URL in Background - NO, the URL you get back requires the Browser for rendering and user UI interaction.

其他方式 - 是的,如果信封尚未完成或签名者尚未完成其签名操作,您可以通过 DocuSign REST API 更正信封.如果您对 DocuSign 正确的分步示例感兴趣,我还创建了一个实验室来在亚马逊上演示这一点.

Other Way - YES via the DocuSign REST API you can correct the envelope if it has not been completed or the signer has not completed their signing action. Also I have lab I created to demonstrate this on Amazon if you are interested in a step by step example of DocuSign correct.

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_http.htm#apex_classes_restful_http_http

SAMPLE HTTP PUT 通过下面的 DS REST API 用于现有信封:

PUT /restapi/v2/accounts/437977/envelopes/ed3be3c1-be06-41c2-c68c-10ddccbd655e/recipients 
Host: demo.docusign.net
X-DocuSign-Authentication: {"Username":"yourdsemailorID","Password":"yourpasswordorDSapipassword","IntegratorKey":"yourDSintegratorkey"}
Content-Type: application/json
Accept: application/json


{ "signers": [ { "recipientId": "1", "name": "David W. Grigsby (corrected)", "email": "youremail@yourdomain.com" } ] } 

这篇关于将 URL 发送(加载)到 Web 浏览器并在 APEX 的后台运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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