1

我在 iOS 上使用 zkSForce 直接访问我们的 SalesForce 数据,并为客户门户用户登录和查看案例。这一切都有效,客户门户用户可以登录应用程序并查看案例并进行查询等。

我遇到的问题是,在用户是客户门户用户之前,他们是个人帐户。我们可以进入 SalesForce 并选择启用个人帐户作为客户门户用户。但我们想要做的是能够从 iOS 设备上执行此操作。从设备上,我们希望能够说:为 AccountId xxxxxx 启用客户门户许可证。

不知道我们会怎么做,或者我们是否真的可以做到这一点......

4

1 回答 1

0

I'd say "it's better to not do it". Sorry, I feel the answer to this would be more philosophical than truly programming-related.

Obviously Customer Portal/Guest user cannot enable himself as a damn actual user. It would be wrong on so many levels:

  1. He/she would be able to select to which Account he wants to be associated, out of many interesting possibilities ;)
  2. If he can "elevate" himself that would defeat the whole purpose of limiting Cust. Portal user's options in the first place.
  3. Hackers, data miners & screen scraping applications welcome!
  4. You guys pay for Cust. Portal licenses.

So... you can hardcode username & pass of a dedicated "SysAdmin" user in your iOS app that'd connect and fix the data. Except what if it's hacked or password expires?

Or you can build something like "request Access" screen? Whatever. A form which they'd fill in (I'm John Smith, I work for company XYZ, my Email is ..., I need access because of Case 0123456, somebody I know at your org is...) and then either a human being looks at it or you leverage Web-To-Lead, Email-To-Case, a Site page or whatever to programmatically decide what to do with it?

于 2013-01-24T20:43:47.663 回答