Understanding the Custom Module life cycle

Hello,

I would like to make sure that I understand what happens to an imported module in SugarOnDemand.

Here is what I have observed:

  1. I import a custom module via Module Loader.
  2. The module is now visible in Module Builder.  I can make changes to fields/view at will.  I do not see the module in Studio, nor can I expose it with a tab via Display Modules and Subpanels.
  3. I now deploy the module.  The module is no longer visible under Module Builder.  It does appear in Studio and I can expose it now  via Display Modules and Subpanels.

All correct so far?

Several questions then.

  1. At the post-deployed stage, it appears that I can add new fields, change field sizes and change layouts.  But it appears that I cannot delete a field?  Is that correct?  Is there no way to delete a field once a module has been deployed?  What if I had several large fields that I no longer needed, but wanted to get rid of so they didn't count against my maximum record size?
  2. After deployment, can I now export the module in its most current state?

Thanks.

Bryan Hunt

Parents
  • Hi Bryan,

    I would agree with most of what you have here. 

    Here is what I have observed:

    1. I import a custom module via Module Loader.
    2. The module is now visible in Module Builder.  I can make changes to fields/view at will.  I do not see the module in Studio, nor can I expose it with a tab via Display Modules and Subpanels.
    3. I now deploy the module.  The module is no longer visible under Module Builder.  It does appear in Studio and I can expose it now  via Display Modules and Subpanels.

    All correct so far?

    Was this a module created in another instance's Module Builder and then exported? If you're building and creating in the same instance, I would say you can skip using Module Loader. Either way, after a module is deployed, best practices suggest you do not make further changes in Module Builder. There is a very useful Help Guide explaining this in a few different sections: Best Practices When Building Custom Modules. I strongly recommend following the steps there if you have not read through it yet. I'd also recommend reviewing Understanding Module Builder's Functions for additional insight into Module Builder. 

    At the post-deployed stage, it appears that I can add new fields, change field sizes and change layouts.  But it appears that I cannot delete a field?  Is that correct?  Is there no way to delete a field once a module has been deployed?  What if I had several large fields that I no longer needed, but wanted to get rid of so they didn't count against my maximum record size?

    After deployment, in Studio, these fields are treated basically the same as any other out-of-the-box field in another module (e.g. Contacts, Accounts, etc.). There's no way (through Studio) to delete the fields, but an easy workaround is to change the Max Size of the fields. There may be other options available as well if that need arises. 

    1. After deployment, can I now export the module in its most current state?

    You can export your field customizations as explained in this section of the Administration Guide. I believe that this plus the original Module Builder export file would fill this need. 

    I hope this helps!

Reply
  • Hi Bryan,

    I would agree with most of what you have here. 

    Here is what I have observed:

    1. I import a custom module via Module Loader.
    2. The module is now visible in Module Builder.  I can make changes to fields/view at will.  I do not see the module in Studio, nor can I expose it with a tab via Display Modules and Subpanels.
    3. I now deploy the module.  The module is no longer visible under Module Builder.  It does appear in Studio and I can expose it now  via Display Modules and Subpanels.

    All correct so far?

    Was this a module created in another instance's Module Builder and then exported? If you're building and creating in the same instance, I would say you can skip using Module Loader. Either way, after a module is deployed, best practices suggest you do not make further changes in Module Builder. There is a very useful Help Guide explaining this in a few different sections: Best Practices When Building Custom Modules. I strongly recommend following the steps there if you have not read through it yet. I'd also recommend reviewing Understanding Module Builder's Functions for additional insight into Module Builder. 

    At the post-deployed stage, it appears that I can add new fields, change field sizes and change layouts.  But it appears that I cannot delete a field?  Is that correct?  Is there no way to delete a field once a module has been deployed?  What if I had several large fields that I no longer needed, but wanted to get rid of so they didn't count against my maximum record size?

    After deployment, in Studio, these fields are treated basically the same as any other out-of-the-box field in another module (e.g. Contacts, Accounts, etc.). There's no way (through Studio) to delete the fields, but an easy workaround is to change the Max Size of the fields. There may be other options available as well if that need arises. 

    1. After deployment, can I now export the module in its most current state?

    You can export your field customizations as explained in this section of the Administration Guide. I believe that this plus the original Module Builder export file would fill this need. 

    I hope this helps!

Children
No Data