• Somnath Paul 22
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi Expert,

I need to replace a JS button in lightning experience.
Code behind JS button: /apex/<some_managedpckg_vf_page>?id={!Opportunity.Id}&Object=Opportunity

Note: the page is a managed package with the controller having no public methods and no access.

Could you please sugget me a workaround for this requirement. Thanks a lot. Its bit urgent.
We have 3 Javascript buttons which change the record type and reassigns the case to a queue. Here is an example 

{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")} 

var caseObj = new sforce.SObject("Case"); 
caseObj.Id = '{!Case.Id}'; 
caseObj.RecordTypeId = '012400000009FQA';
caseObj.OwnerId = '00G40000001dp2s'

var result = sforce.connection.update([caseObj]);

if (result[0].success =='false') {
alert (result[0].errors.message);
} else {
location.reload(true);
}

I am looking for detailed step-by-step instructions/tutorial to convert this to Lightning Component. 

Thank you in advance.