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?

  • Hi Levi, I don't know the answer to your question but did want to just mention that Sugar Serve 10.2 introduced an AutoIncrement field type that can be used directly in Studio. See the Studio documentation for details on the field type.

    I just wanted to bring it up because your description says Sugar Serve, and was wondering if this could be a possible alternative solution for you.

    Otherwise, please feel free to disregard. Slight smile

    -Brenda

  • Hi Brenda- thanks for your response. We've looked at the autoincrement field type but there seems to be no way that we can migrate data from the previous CRM system into such a field.

  • Ah I see, in that case, hopefully someone else knows the answer to your question.

    Good luck!

    -Brenda

  • 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