I'm using Beatbox to access Salesforce's SOAP API. I can query for a series of Leads—</p>
SELECT Id FROM Lead
Does anyone know how I can create a URL to view each Lead on the website?
I'm using Beatbox to access Salesforce's SOAP API. I can query for a series of Leads—</p>
SELECT Id FROM Lead
Does anyone know how I can create a URL to view each Lead on the website?
您需要找出您的实例的 URL (naX.salesforce.com) 并生成一个指向:
http://naX.salesforce.com/<leadId>
如果用户未登录,它将在登录完成后询问凭据并重定向他。
您可以从 Beatbox 获取 Salesforce 实例的 URL。假设你开始连接这样的东西:
#!/usr/bin/env python3
from urllib.parse import urlparse
import beatbox
svc = beatbox.Client()
在此处获取网址:
svc._Client__serverUrl
稍微格式化一下:
print('{}://{}/'.format(
urlparse(svc._Client__serverUrl).scheme,
urlparse(svc._Client__serverUrl).netloc)
)
样本输出:
https://na59.salesforce.com/