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

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

问题描述

Apex/Visualforce是否允许将URL以字符串形式存储在apex中,并在后台在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标注返回的,用于将信封发布为更正"状态.直到我手动将网址(链接)粘贴到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吗?
(或者) 无论如何,除了在Web浏览器中运行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-是-请参见pagereference

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需要使用浏览器进行渲染和用户界面交互.

  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 Correct的分步示例感兴趣,我还会创建一个实验室来在Amazon上进行演示.

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

下面通过DS REST API进行HTTP HTTP PUT来测试现有信封:

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天全站免登陆