• Francisco Manso
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hey guys

I've created a custom button to create a case from an opportunity in lightning version (I already had onde on classic)
The problem is when I set up the default field values:

/lightning/o/Case/new?
RecordTypeId=012D00000006XjXIAU&defaultFieldValues=AccountId={!IF(ISBLANK(Opportunity.Billing_Account__c),Opportunity.Account, Opportunity.Billing_Account__c)},Type=Provisioning,Business_unit__c=SaphetyDoc,Priority=S3 - Alta,Status=Open,Origin=Internal,Subject={!Opportunity.Name}+MCH OnBoarding_+{!Account.Country_Code__c}+{!Account.NIF__c},SuppliedEmail={!Opportunity.Email__c},Opportunity__c={!Opportunity.Id},Related_Project_Account__c={!IF(ISBLANK(Opportunity.Billing_Account__c),Opportunity.Account,Opportunity.Billing_Account__c)}

and the field business unit is not filled at all. I already check the record types on cases, and the option is there. More weird is the fact that the button on classic version works perfectly. I've attached a picture to see what is the output

Thank you!User-added image

Hey guys

I've created a custom button to create a case from an opportunity in lightning version (I already had onde on classic)
The problem is when I set up the default field values:

/lightning/o/Case/new?
RecordTypeId=012D00000006XjXIAU&defaultFieldValues=AccountId={!IF(ISBLANK(Opportunity.Billing_Account__c),Opportunity.Account, Opportunity.Billing_Account__c)},Type=Provisioning,Business_unit__c=SaphetyDoc,Priority=S3 - Alta,Status=Open,Origin=Internal,Subject={!Opportunity.Name}+MCH OnBoarding_+{!Account.Country_Code__c}+{!Account.NIF__c},SuppliedEmail={!Opportunity.Email__c},Opportunity__c={!Opportunity.Id},Related_Project_Account__c={!IF(ISBLANK(Opportunity.Billing_Account__c),Opportunity.Account,Opportunity.Billing_Account__c)}

and the field business unit is not filled at all. I already check the record types on cases, and the option is there. More weird is the fact that the button on classic version works perfectly. I've attached a picture to see what is the output

Thank you!User-added image