+ Start a Discussion
K SrikanthK Srikanth 

Lightning URL for Activities(task,event,log a call)

Hi ,

Can any one help to get URL for   activities in lightining. 


Thanks in advance.
Naveen KNNaveen KN
Hi Srikanth, your question is not clear. can you add more details so that members can check and reply to your query.
K SrikanthK Srikanth

Hello Naveen,

On VF page, I have buttons for new task, new event, log a call. Whene ever I clcik on any of these button it should take to new tab and open respective task. In classic it is working fine. where as in lighting eventhough I use sforce.one.nagvigateurl, it is not open in new tab.

See below images for better understand.
User-added image

User-added image

Naveen KNNaveen KN
Issue is the new event window should open in the new tab instead of popup?
K SrikanthK Srikanth
Yes ,
Currently I am using sforce.one.navigateToURL(url)
aand URL is  /00U/e?what_id='+recordid+'
Dushyant SonwarDushyant Sonwar
In Spring 20 , we can populate default values in lightning

Please try using that solution
https://trailhead.salesforce.com/en/content/learn/modules/administrator-certification-maintenance-spring-20/learn-whats-new-in-spring20?trail_id=maintain-your-salesforce-certifications
Dushyant SonwarDushyant Sonwar
/lightning/o/Event/new?defaultFieldValues=WhatId=[put your record id]

Example
/lightning/o/Event/new?defaultFieldValues=WhatId=0010a00001eyU0DAAU