Auto Increment field - SugarServe OnDemand

I've been trying to implement an auto-incrementing field as per https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.2/Cookbook/Creating_an_Auto-Incrementing_Field/index.html

Following the guidance I've tried to deploy the class and method that the logic hook will call, but I cannot deploy to the folder custom/modules/Accounts/Accounts_Save.php - the module loader returns an error when i try to install the package.

Does anyone know the correct path to install this to when using OnDemand?

Parents
  • Hi Levi, 

    Following the steps described in the link, I've created a package and upload it successfully in a test cloud envorment. 

    If you faced issues when uploading the package I can guess one of three root causes:

    1 - The package was not properly built, guidance here

    2 - You had hidden files like '.DS_Store' in your package, make sure you remove them. 

    3 - The 'manifest.php' was not in the .zip root. When compressing make sure that your manifest is in the root folder. If it is inside a subfolder Sugar is not able to progress with the installation. 

    I have attached my package as a reference. 

    After adding the 'incrementing number' to the record view and running a QRR it works as expected.


    I hope this helps. 

    auto_increment.zip

Reply
  • Hi Levi, 

    Following the steps described in the link, I've created a package and upload it successfully in a test cloud envorment. 

    If you faced issues when uploading the package I can guess one of three root causes:

    1 - The package was not properly built, guidance here

    2 - You had hidden files like '.DS_Store' in your package, make sure you remove them. 

    3 - The 'manifest.php' was not in the .zip root. When compressing make sure that your manifest is in the root folder. If it is inside a subfolder Sugar is not able to progress with the installation. 

    I have attached my package as a reference. 

    After adding the 'incrementing number' to the record view and running a QRR it works as expected.


    I hope this helps. 

    auto_increment.zip

Children
No Data