Doubt after workflow

My question is this:

I have a workflow that when an opportunity is generated, it automatically generates a call and task.

Once I generate an opportunity, the workflow generates correctly and I receive a default email of this generation.

imagen

My question is, where can I find the code for this email? My intention is to want to show the client in the email but I can’t locate where it performs this action.

@Ivan24
Look at files:

  • modules/AOW_Actions/actions/actionSendEmail.php
  • modules/AOW_WorkFlow/aow_utils.php

The above email are seems notification email.
You can find templates are defined in html file at include/language/en_us.notify_template.html for english language.
You can put it on custom directory for upgradesafe.

1 Like

I have added in the template the customer field and in the /modules/Opportunities/Opportunity.php file I have added the customer field.

With this it worked but my question is if it is correct to configure it in modules/Opportunities or you have to use the custom directory.

The changes you did it in core file is un-upgradesafe. You should find a way to write this function in upgradesafe way.