AtTask(Workfront)外部页面:将参数发送到外部服务器 [英] AtTask (Workfront) External Page: Send parameter to external server

查看:109
本文介绍了AtTask(Workfront)外部页面:将参数发送到外部服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要显示一些与Workfront内部任务相关的外部数据.我可以创建一个仪表板,以显示来自私有本地服务器的静态外部页面".我需要在该URL中传递一个参数,其中包含有关当前任务的一些信息,因此我可以从与该任务相关的本地ERP数据库获得响应(我的ERP系统中的字段用于关联报价/订单/发票到Workfront任务).例如,我必须定义一个类似于 http://my.intranet/report?ref的URL = $$ REFNUM ...然后$$ REFNUM令牌将替换为仪表板所在任务的参考号.我的服务器将看到一个看起来像 http://my.intranet/report?ref = 12345 http://my.intranet/report?ref = 12345 ,并返回与任务有关的信息,参考号为12345.

I need to display some external data related to a task inside Workfront. I can create a dashboard that displays a static "External Page" from a private local server. I need to pass a parameter in that URL that includes some information about the current task, so I can get a response from a local ERP database that is relevant to that task (a field in my ERP system is used to relate quotes/orders/invoices to Workfront tasks). For example, I would have to define a URL that would look something like http://my.intranet/report?ref=$$REFNUM ... And the $$REFNUM token would be replaced with the reference number for the task where the dashboard is located. My server would see a request that looks like http://my.intranet/report?ref=12345, and return information related to the task with reference number 12345.

我有两位顾问的建议,建议这样做是可行的,但是我找不到任何文档来解释如何在外部页面URL中传递动态信息.有什么建议吗?

I have proposals from two consultants that suggest that this is possible, but I can find no documentation that explains how to pass dynamic information out in an External Page URL. Any suggestions?

更新:通过进行一些其他黑客操作,我发现可以使用以下语法返回会话ID:

UPDATE: With some additional hacking, I've discovered that I can get a Session ID returned using the following syntax:

some.url/query?session={!$$SESSION}

我可以使用以下语法获取用户ID:

and I can get User ID using this syntax:

some.url/query?userid={!$$USER.ID}

我尚未成功获取与任务相关的详细信息. {!$$ TASK.ID}返回null,无论是从仪表板创建页面还是从Task布局中嵌入的选项卡调用.

I have not yet been successful getting task related detail. {!$$TASK.ID} returns null, whether called from the dashboard creation page, or from a tab embedded on a Task layout.

还有其他秘密的通配符变量以及如何使用它们吗?

Are there any other secret wildcard variables and how to use them?

推荐答案

找到解决方案.以下语法将使Workfront返回调用它的对象的会话和ID:

Solution found. The following syntax will cause Workfront to return the Session and ID of the object from which it is called:

some.url/query?session={!$$SESSION}&object={!ID}

可以在API调用中使用这些对象来获取与该对象有关的其他信息,例如referenceNumber.来自AtAppStore的此页面,这是我找到语法的地方. http://store.atappstore.com/index.php/executive-summary/

These objects can be used in an API call to get other information related to the object, such as referenceNumber. Credit to this page from AtAppStore, which is where I found the syntax. http://store.atappstore.com/index.php/executive-summary/

这篇关于AtTask(Workfront)外部页面:将参数发送到外部服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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