AnsweredAssumed Answered

Sugar8 get parent module on Outgoing email when create new email

Question asked by Autchara Chaiprom on Oct 10, 2018
Latest reply on Oct 10, 2018 by Francesca Shiekh

UPDATE

 

It's easier via js 

I modified code in

htdocs/custom/modules/Emails/clients/base/fields/outbound-email/outbound-email.js

loadEnumOptions: function(fetch, callback, error) {

  this.model.set('outbound_email_id','<email_id>');

and it seem to work for me to pre-select email that I want.  

 

 

////////////////////////////////////////////////////////////////////////////////////////////////

After upgrade to 8, I got problem from outbound email has been deprecated all hacked feature related is broken. 

 

I need to create a tool that auto pre selected Outgoing email depend on company.

 

function below generated a list of outgoing email

public function getOutboundEmailDropdown()
{

}

 

any idea to get a parent model or url that make a request to this function ?

 

Thanks,

M

Outcomes