Skip to main content

Hi all, is there any alternative, hack or third-party solution to achieve URL Hack for Lightning? apart from using Lightning Action Buttons, as Lightning Action Buttons are not a viable approach for my use case.

#JS_Alternatives

3 件のコメント
  1. 2018年3月5日 22:11
    Based on your description, my understanding of your issue is that depending on the event, when you create an Opportunity from the event, not always the same fields get populated. Hence you don't want to create an out of the box lightning action because you can only pop one opportunity layout no matter what type of event is the parent. I had a similar situation with a parent/child object. Case and WorkOrder. When we want to create a new work order from a case, we have to know what kind of case it is in order to create the correct kind of work order from it. To replace my javascript button that did this, I had to create a visualforce button with Case as standard controller and a controller extension that can tell me what kind of case the user was on when the custom button was clicked. Doing it this way, you can create a visualforce button where Event is the standard controller and add a controller extension that allows you to take field data from the Event and use it to create the type of opportunity you want with the correct field populated. You then create a lightning action of type Visualforce and reference your visualforce page. After that you add the new lightning action to your event layout in the lightning actions section. Hope this helps.
0/9000