Announcement

Collapse
No announcement yet.

How to disable default fields in Lead?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to disable default fields in Lead?

    Hi tanya ,

    Is there a way to disable default fields like createdOpportunity in Lead. Basically, I no longer need an association from lead to opportunity.

  • #2
    Hello,
    you can override convert Lead Service method or reset these links in formula

    Comment


    • #3
      Hi tanya ,

      That's not what I am looking for. Basically I don't want the rebuild / Espo installer to create a created_opportunity_id field in database or createdOpportunity to show up in my Entity Manager. Is there anyway I can achieve that?

      For example, an entity can be disabled by adding disabled = true in Resources/metadata/scopes/Entity.json

      Code:
      {
          "disabled": true
      }
      In the same way, can I add something in "entityDefs.Entity.fields.fieldName" to disable field?

      Thanks for the help!

      Comment


      • #4
        if you don't need it in database, set "notStorable": true
        if it is not created yet in the database, it won't be created

        Comment


        • #5
          This is one more solution where you can use to do the same with little more benefits:
          https://forum.espocrm.com//forum/gen...3690#post43690


          Code:
           {
              "fields": {
                  "createdOpportunity": {
                      "skipOrmDefs": true,
                      "disabled": true,
                      "customizationDisabled": true,
                      "notStorable": true
                  }
              }
          }
          The idea of the solution proposed in the above link is that it will wipe out the field from showing up in Entity Manager and Layout Manager so that the CRM Admin will not get confused with fields which are not being used or populated.

          Thanks for the help tanya . Your solution also worked for me!
          Last edited by theBuzzyCoder; 11-24-2018, 11:36 AM.

          Comment

          Working...
          X