Skip to main content
Solved

How to send email via workflow?


Forum|alt.badge.img+17

Hello,

 

I am trying to use Camunda mail-send connector via a service task in my workflow for IFS Cloud. I’m not 100% sure if I’m using the extensions tab of the workflow properly:

but I followed the Camunda instructions for calling mail-send and this is what my task looks like

I’m getting this error when I try to run the workflow though:

If anyone has experience sending emails via a workflow, please let me know. I’ve tried using the event action email but emails never get sent or generated.

 

I’d appreciate any and all advice.

 

Thanks,
Bryan

Best answer by TheoB

Hi @bdoucette ,

Here's an example of how to call up the custom projection: 
 

 

View original

Forum|alt.badge.img+13
  • Hero (Partner)
  • May 15, 2023

Hi @bdoucette ,

I have never used this connector to send a mail with BPA.
On the other hand, I had found a solution which consists in creating a projection or configuring a projection and to make this procedure available via the webservices:

The procedure "COMMAND_SYS.MAIL" allows you to send a mail.
By making it available through a projection, it allows you to call it with the POST operation type from the BPA.
Have a nice day.
Théo


Forum|alt.badge.img+17
  • Superhero (Customer)
  • May 15, 2023

Hi @TheoB 
That’s great, thanks! I’ll try that soon, hopefully I configure all of the settings properly so it can be called. I’ll post my results to either help others figure out how to set this up, or let them know what not to do. I appreciate the help
Thanks again,
Bryan


wahelk
Hero (Former Employee)
Forum|alt.badge.img+11
  • Hero (Former Employee)
  • May 17, 2023

Yes please share the steps. i am also looking for this.

Have you tried report generation and send it via email in workflow?


Forum|alt.badge.img+17
  • Superhero (Customer)
  • June 26, 2023

Hi @TheoB 

Could you please provide an example of this mail-send working? I set that up in a custom projection but whenever I trigger it, nothing happens. I checked the application messages page and I cant see anything even attempting to happen either

Thanks,
Bryan


Forum|alt.badge.img+13
  • Hero (Partner)
  • June 30, 2023

Hi @bdoucette ,

Here's an example of how to call up the custom projection: 
 

 


Forum|alt.badge.img+17
  • Superhero (Customer)
  • June 30, 2023

hi @TheoB 

 

Thanks, I really appreciate it. Did you have to configure your custom projection any certain way? It requires some entity connection but I wasn’t sure which one to use so I just used BusinessOpportunity.

 

Thanks,
Bryan


Forum|alt.badge.img+17
  • Superhero (Customer)
  • June 30, 2023

@TheoB 

 

Hello again. Sadly I tried the configuration you had and I still got no outputs. Below is the debug instance of when I try to run it.

 


Forum|alt.badge.img+17
  • Superhero (Customer)
  • June 30, 2023

Hello again @TheoB 

I was thinking there also might be some additional setup required by IFSCONNECT that I have to do? I am using our MAIL_SENDER1 but are there any outbound rules or anything else that you have to set up for this to send an email? I’d assume it would still appear in the application messages list but no new line appears

Thanks,
Bryan


Forum|alt.badge.img+13
  • Hero (Partner)
  • July 7, 2023

Hi @bdoucette ,

Normally there's nothing more to configure in IFS Connect apart from the SMTP server connection info.
For your information, here's the configuration for my projection:

Théo


dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • July 10, 2023

Hi @bdoucette @TheoB 

 

This seems to be an interesting use case so I did a simple setup to send an email using a workflow.

You can read the steps I took in my blog :)

https://dsj23.me/2023/07/10/send-an-email-using-ifs-workflow/

 

Hope it helps!

Damith


Isuru Thilina
Hero (Employee)
Forum|alt.badge.img+12
dsj wrote:

Hi @bdoucette @TheoB 

 

This seems to be an interesting use case so I did a simple setup to send an email using a workflow.

You can read the steps I took in my blog :)

https://dsj23.me/2023/07/10/send-an-email-using-ifs-workflow/

 

Hope it helps!

Damith

@dsj Thanks Damith, This is very useful.


Forum|alt.badge.img
  • Do Gooder (Partner)
  • September 22, 2023

Hello,

I have tried the above method and an email was created but there was no text to be found inside the 'Body.txt' file in IFS Cloud 22.1.5.
Note: I also tried Command_SYS.mail in a test script and there was no text to be found inside the 'Body.txt' file.

Any help related to this is very much appreciated. 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings