AnsweredAssumed Answered

How to show message from after save logichook in sugarcrm 7.9

Question asked by Lokesh Bhandari on Mar 16, 2019
Latest reply on Mar 19, 2019 by Lokesh Bhandari

I have logichook aftersave, and in this I have send data to my api and based on api response I want to show message in SugarCRM 7.9. How can I achive this.


I have think to replace logichook with endpoint but in create.js I did not get record_id.


I have tried to custom/modules/Accounts/clients/base/views/create/create.js


extendsFrom: 'CreateView',
initialize: function (options) {
this._super('initialize', [options]);
this.context.on('button:save_button:click', this._save_desc, this);
_save_desc: function (model) {
   var id = this.model.get('id');
   var name = this.model.get('name');

This give me name but id is undefined. If this work then I will send id to my endpoint and according to endpoint response I can able to show alert message. In logichook alert message is not working. Please give me in this problem.