Giter Club home page Giter Club logo

sugarcrm-update-calculated-fields's Introduction

sugarcrm-update-calculated-fields

Simple script which can be called by the scheduler nightly to force calculated fields to be updated. I used this to update a days since field was changed type field.

  1. Copy calcFieldsUpdater.php to somewhere in your /custom folder (example assumes you put it /custom/calcFieldsUpdater.php)
  2. Modify the top of the script to specify the module you want to run this for and an optional filter.
  3. Open /custom/include/MVC/Controller/entry_point_registry.php (create if doesn't exist)
  4. Add the following to it:
$entry_point_registry['calcFieldsUpdater'] = array (
  'file' => 'custom/calcFieldsUpdater.php',
  'auth' => true,
);
  1. Create a scheduler of type url, specify https://<your_comain>/sugarcrm/index.php?entryPoint=calcFieldsUpdater
  2. Set the time for when you want it to run (such as once a night).

Blog Post

For more information on how this can be used along with workflow rules see this blog post: http://www.blakerobertson.com/devlog/2013/2/19/sugarcrm-update-calculated-fields-nightly.html

Compatibility

This will only work on on-site versions of Sugar until an installable module is created. The process of doing so tends to take way longer then this code took to write in the first place. If someone wants to fund getting this turned into an installable module, please contact me through me here: http://www.blakerobertson.com/contact and I'll make it available to the community afterwards.

http://www.blakerobertson.com | http://www.callinize.com

gitimg

sugarcrm-update-calculated-fields's People

Contributors

blak3r avatar bountin avatar karlingen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sugarcrm-update-calculated-fields's Issues

Scheduler not running.

Hi,
I have followed exactly how you described. Created a scheduler job to invoke the URL. But the job is not working automatically. I am not experienced with Sugar Schedulers. Can you help me to create a running Scheduler? The URL is working fine when I try it manually on a browser.
Thanks in advance

  • sudeep

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.