I am overriding the edit button with a lightning component, in my sandbox it works fine. See the metadata:

enter image description here

when deploying I only deployed the section of metadata that I wanted to add, it looked like this:

<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">

I thought this was all you had to do, am I wrong ?

The deployement was successful but in that environment the edit button in lightning is not overriden:

enter image description here

  • 1
    You need to add the actual Sales_Lex_OpportunityEdit lightning component to the deployment if it doesn't already exist on the org you're deploying to May 9 '19 at 21:21
  • Thanks! It was deployed in the deployment before, then I forgot to add the metadata in that pr, so I this change seperately. Does that matter ? May 9 '19 at 21:27
  • 1
    Honestly it doesn't sound like it should matter, but it could be some internal check that SF does where it would need the lightning component to be sent (like to recompile it, etc). May 9 '19 at 21:29
  • Hm I'll try it thanks May 9 '19 at 21:31

It has to be lightningcomponent not LightningComponent

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.