我是 Sales Force 的新手,我希望外部客户端可以通过 url 访问新创建的 Lightning Web 组件。我正在添加到现有的 SalesForce 实例。
我们的代码库中有几个现有的 lwc,其中两个可以通过外部客户端的 url 访问。两者都遵循类似的模式:
[organization url] /schedule/s/self? [query params] (name of lwc "selfSchedule")
[organization url] /schedule/s/opt-out? [query params] (name of lwc "subscriptionOptOut")
我想对新组件做类似的事情,但我不明白中间值来自哪里或它们是在哪里定义的。我不确定为什么它是“时间表”,也无法推理“自我”和“选择退出”的来源。中心值总是 s 吗?
我在 GUI 以及代码库中的文件中查找了定义这些值但无济于事的地方。
有人可以提供有关在哪里查找/定义中间 URL 值的指导,以便我可以正确引用它们吗?
I am new to Sales Force and I want a newly created Lightning Web Component to be accessible by url to outside clients. I'm adding to an existing SalesForce instance.
We have several existing lwc in our code base, two of which are accessible by url to outside clients. The both follow a similar pattern:
[organization url] /schedule/s/self? [query params] (name of lwc "selfSchedule")
[organization url] /schedule/s/opt-out? [query params] (name of lwc "subscriptionOptOut")
I want to do something similar with the new component, but I don't understand where the middle values are coming from or where they are defined. I'm not sure why it's "schedule" nor have I been able to reason where "self" and "opt-out" come from. Will the center value always be s?
I have looked in the GUI as well as the files in the code base for a place where these values are defined to no avail.
Can someone please offer guidance in where to find/define the middle URL values so that I can properly reference them?
发布评论
评论(1)
您的组织正在使用“网站”或“体验云”(以前称为客户/合作伙伴社区,以前称为客户/合作伙伴门户)。转到设置 ->站点或设置 ->体验一下...并看看。
如果您不知道自己正在使用社区,那么您可能没有真正的社区用户和社区用户。许可证(比常规许可证便宜,但仍然如此),您可能只有“来宾用户”进行未经身份验证的访问。小心向来宾用户公开的内容
可能会有一些 trailheads 和 视频(如果您迷路了)。
lightningCommunity__Page
) 来表明可以将其放在社区页面上。部署。Your organisation is using a "Site" or "Experience Cloud" (formerly known as Customer / Partner Community, formerly known as Customer / Partner Portal). Go to Setup -> Sites or Setup -> Experience... and have a look.
If you had no idea you're using a community there's a chance you don't have real community users & licences (cheaper than regular licenses but still), you might have just the "guest user" for unauthenticated access. Be careful what you expose to guest users
There might be some trailheads and videos if you're lost.
lightningCommunity__Page
) to it to indicate it's OK to drop it on community page. Deploy.