问题标签 [oracle-service-cloud]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
soap - RightNow:更改 SOAP 请求中的分隔符
我需要更改 RightNow 返回的字段的分隔符。目前它以下列方式返回行 - field1、field2、field3 等。我需要能够更改逗号。下面的代码运行良好,我想知道要更改的标签是什么(我尝试添加<ns7:Delimiter>
,但没有用)。
php - Oracle 服务云文件附件上传/查看
我是服务云的新手,我的任务是找出一种将文件附件保存到自定义对象的方法。我相信到目前为止,我已经完成了这一点,因为我可以看到在我的对象中创建了新记录。我的下一步是想办法找到给定 ID 的上传文件,并显示一个可点击的链接,该链接将在新选项卡中打开以显示上传文件的内容。(类似于股票 FileListDisplay 小部件)。根据 Connect PHP API 文档,没有 ROQL 查询或 fetch() 返回任何文件附件数据。我将如何显示上传的文件?
到目前为止的代码(为简洁起见缩短)
看法:
控制器:
php - 在哪里/如何通过 Oracle 服务云检索通过 Web 服务发送的文件附件?
我通过 Web 服务向 OSC 发送了一个以 Base64 编码的文件附件,我需要在客户门户上显示该附件。现在我无法在对象资源管理器中检索文件附件。我应该去哪里看?请问有什么建议吗?
这是我使用的一段xml(顺便说一句,webservices请求工作正常):
php - cURL 在 RightNow/Oracle 服务云客户门户上不起作用
我有一个小的 php 脚本,用于测试 cURL 是否已安装并正常运行。这适用于我们的 Oracle 服务云沙箱环境 (websitename.rightnowdemo.com),它在页面顶部和下方显示 google.com,它打印测试功能的结果(“cURL 已安装在此服务器上”) . 但是,我们的开发 (websitename.custhelp.com) 环境中的相同代码不起作用。它只打印“cURL 已安装”消息,仅此而已。在我们的新环境中是否有需要设置的配置设置?我怎样才能让 cURL 充分发挥作用?
代码:
formatting - 如何加粗文本 - 非 HTML 方式?
案例场景
我将一些文本数据存储到不能包含 HTML 标记的数据库中。对于换行符,我正在使用\r\n
并且当我在称为Service Cloud (FKA RightNow)的工具中查看它时输出很好
同样,有没有一种方法可以使用类似的技术将部分文本加粗\r\n
?
rightnow-crm - SOAP API 的日期问题(Oracle Rightnow 云服务)
我需要一些有关 SOAP API 的帮助。我创建了一个网站,用户可以在其中输入通过 SOAP API 从 Service Cloud 存储和检索的数据。
它工作正常,直到昨天我开始面临日期问题。例如,如果我输入今天的日期07/05/2016
,它在 RN 上存储得非常好,但在数据检索时,它会随机将日期更改为 (两天前,一天前) 05/05/2016
。
我知道 UTC 转换,但行为是如此随机,我不知道是在数据检索上增加一天还是两天。
请帮助这是一场噩梦,完全把我吓坏了。还有一个问题:由于2016 年 2 月的新版本,这可能是偶然的吗?
oracle - 从 Oracle RightNow 客户门户中的事件报告中删除内置过滤器联系人 ID
这是关于在客户门户网站上显示基于“组织”的“事件报告”。我们将在输入框中输入组织,然后单击“提交”。事故报告应仅针对该组织显示。
这种情况正在发生,但“登录”联系人 ID (c_id) 也作为过滤器传递给该事件报告。
是否可以删除对上述事件报告施加的 c_id 过滤器?如何从事件报告中删除此联系人 ID 过滤器?
有人建议使用 pre_report_get_data 挂钩,然后取消设置联系人 ID (c_id) 过滤器。但我无法弄清楚如何做到这一点。
有人可以给我一个代码片段来使用 pre_report_get_data 钩子删除 c_id 过滤器吗?或其他解决此问题的方法。
oracle - 使用 PHP 代码来自服务云的 HTTP 会话
是否可以在维护 HTTP 会话的同时从 oracle 服务云发送自定义 XML 消息?
到目前为止,我已经成功地使用 cURL 发送了一条消息:
编辑:上面的代码发送一条消息并获得响应,但是当我尝试使用 CURLOPT_COOKIEJAR 和 CURLOPT_COOKIEFILE 维护 HTTP 会话时,第二个 cURL 消息响应抱怨没有活动会话。
我用来维护会话的代码(在 Rightnow 环境之外测试时工作)
谢谢!
php - Upload file into "assets" folder via move_uploaded_file()
In Service Cloud (FKA RightNow) Customer Portal, isn't the "assets" folder writable?
I'm trying to upload a file to a subfolder inside the "assets" folder but I seem to be running into permission issues. The code I'm using is:
This is throwing an error which states:
Access to move_uploaded_file is denied because its trying to access restricted folders in ......
Is there no way to save the uploaded file into the "assets" subfolder via PHP?
EDIT:
The destination seems to be correct as if I use:
it prints:
So the correct filepath is being referenced but somehow the framework is not allowing me to save it in there.
Update
The use case is such that via the CP, a person will upload a CSV/TXT file. This file would contain contact info (name, email etc) which will then be read (at a later stage) to create contacts in OSvC. This would be a recurring process, perhaps twice or thrice a month.
Since the reading of the file will not happen at the time of upload, storing the file someplace is the ideal solution.