URL 在桌面中受支持,但在 Salesforce 移动应用程序中不受支持
/lightning/o/Task/new?defaultfieldvalues=whatId='+objectId+',ActivityDate='+string.valueof(Date.today())+'&backgroundContext=%2Flightning%2Fr%2FOpportunity%2'+ObjectId+' %2Fview'
通过使用此 URL,我也获得了相关值。但是移动设备不支持此 URL
我从其工作 URL 中删除了 defaultfieldvalues在桌面和移动设备上都很好,但没有获得相关值...
/lightning/o/Task/new?whatId='+objectId+',ActivityDate='+string.valueof(Date.today())+'&backgroundContext= %2Flightning%2Fr%2FOpportunity%2'+ObjectId+'%2Fview'
/lightning/o/Task/new?defaultfieldvalues=whatId='+objectId+',ActivityDate='+string.valueof(Date.today())+'&backgroundContext=%2Flightning%2Fr%2FOpportunity%2'+ObjectId+'%2Fview'
by using this URL I get related values also.But this URL is not supported on mobile
I removed defaultfieldvalues from URL its working fine in Both Desktop and mobile but not got related values ...
/lightning/o/Task/new?whatId='+objectId+',ActivityDate='+string.valueof(Date.today())+'&backgroundContext=%2Flightning%2Fr%2FOpportunity%2'+ObjectId+'%2Fview'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://help.salesforce.com/s/ ArticleView?id=sf.links_useful_custom_buttons_create_record_dfv.htm&type=5
在移动应用程序中,看看您是否可以通过快速操作实现一些很酷的事情(它们也可以有默认值)。否则,就到了开发人员时间并启动自定义光环/闪电 Web 组件。
https://help.salesforce.com/s/articleView?id=sf.links_useful_custom_buttons_create_record_dfv.htm&type=5
In mobile app see if you can achieve something cool with a quick action (they can have default values too). Otherwise it's developer time and whip up custom aura/lightning web component.