Script to update calculated fields

Hi everyone,

Can anyone share a script to update calculated fields for a particular module please?

Thank you in advance

Parents Reply Children
  • Hey Tony,

    Thanks but no thanks, our CEO is doing an amazing job, I just don't fit there Slight smile..

    But I did get a feedback from engineering about this.

    They've done some research and tried few approaches already, however, this is a complex and expensive operation for our Bean save.

    We as product team, have to think of all possibilities and ensure quality code for you all to deliver and do your own thing.

    Engineering is considering a GA solution but is not for near-term.

    For now, discussing internally, leveraging a custom solution by updating the database directly through scheduler and SugarQuery is your best bet at the moment.

    Hope this helps.

    SugarCRM | Principal Developer Advocate

  • hi 
    you mentioned engineering team found it could be 'expensive for the Bean save'
    wondering if the option mentioned by  was considered and if also 'expensive'?

      $bean->update_date_modified = false;
      $bean->update_modified_by = false;


    Similarly, should we also avoid the Faye add-on mentioned by Jeff for same reason?
    (no offense intended to Jeff or Faye - response could turn out your solution mitigates the issue)

    .

    CRM Business Consultant