Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望我的登录 URL 附加一些参数。在社区登录控制器类中,我想检索这个 URL 值并基于它创建一个记录。我尝试将这些参数设置为属性,并在 init 方法上尝试获取这些属性,但它不起作用。有人可以向我发布一些示例代码以获取 URL 中参数的值。
看看这里: https ://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_System_PageReference_getParameters.htm
IE
ApexPages.currentPage().getParameters().get('myParamName');