CMDBuild Forum

Synchronous events and email notification

Hello, 

 

I just create a Synchronous even on cmdbuild. Every time someone create a cards on the class "network" the cmdb send me an email (Notication : News cards added). It's working well but i have some question.

I want to put in my email the Code or Description of the cards. For example : 

 

" A new card has been added on the cmedbuild : 

 

Code : {Code_New_Card}

and i want to do this too : 

You can find this cards directly here : localhost:8080/cmdbuild/classes/network/cards/{Code_new_card}  (option, but if it's possible ...)

 

 

Thanks ! :-)

The correct syntax to retrieve the data of a card using e-mail templates with synchronous tasks is the following:

{current:attributeName}
where "attributeName" is the name of the attribute of the card.
 
For example if I define a task to notify every update in the class "Employee" and I link it to the following e-mail template:
The follow e-mail is to inform that the data of the employee with code {current:Code} has been updated. 
Name of the employee: {current:Name} 
Regards

 

About the URL, CMDBuild supports the following format:

          localhost:8080/cmdbuild/index.jsp/#classes/Network/cards/Code~xxxx

To ensure that CMDBuild evaluates a string of this type you need to use a javascript expression.

CMDBuild Team

 

 

Thanks you it’s working  !

 
My description = Code , so i did localhost:8080/cmdbuild/index.jsp/#classes/Network/cards/Code~{current:Code} 

Thanks you ! :-)

Hello, an other question.

 
Like i said, it's working well when i add a network manually. (synchronous event)
 
But the thing is, when i my task manager (connector with OCSINVENTORY) add one network in my cmdb, the synchronous event doesn't send me any email. It is possible to get en email when my connector add someting ?

Wich connector are you using ? The Wizard Connector or the Basic Connector ?

CMDBuild Team

I'm using the Wizard Connector !
 
Previously Tecnoteca wrote:

Wich connector are you using ? The Wizard Connector or the Basic Connector ?

CMDBuild Team

 

Thanks you for your report.
We will fix it in the next release 2.3 (end of January).
CMDBuild Team

Unfortunately for the delays in the other activities we were unable to include this fix in version 2.3 which will be released next Tuesday.
The fix will be available in version 2.3.1 expected in late February / early March.
CMDBuild Team

Thx, i was gonna ask you right now if you fixed it on 3.0 because it don’t work. 

 
Can't wait march !
Hello,
 
I just saw this post and this is exactly what i want.
 
I tried to use the synchronous event (version 2.3.1).
 
I'm using the connector (task manager) : OCSiventory Data to CMDBuild. When the connector add a card, the synchronous event does not send email. 
 
If i add a card by myself, i get the email.
 
Previously bolduc wrote:
Thx, i was gonna ask you right now if you fixed it on 3.0 because it don't work. 
 
Can't wait march !

 

Ola all together,

 

just to share my findings (so you might don't have to spend so much time looking for a solution if you come across this):

 

This does not work in cmdBuil 2.3.1 with Internet Explorer

10.0.9200.17357

Maybe other browser or versions work, did not tested it.

 

The link has to be in this format or you just get a Tomcat error:

 

http://localhost:8080/cmdbuild/management.jsp#classes/Notebook/cards/Code~DATA-FROM-CODE-FIELD

 

A working link would look like this:

<a href="http://localhost:8080/cmdbuild/index.jsp#classes/Notebook/cards/Code~DE-HF-IT-NB-004" target="blank">Link</a>

 

Take care

Ulrich

 

 

Previously Bolduc wrote:
Thanks you it's working  !
 
My description = Code , so i did localhost:8080/cmdbuild/index.jsp/#classes/Network/cards/Code~{current:Code} 

Thanks you ! :-)

 

Tested on Demo instance and works correctly with Internet Explorer.
 
CMDBuild Team
 
 
Previously Ulrich wrote:

Ola all together,

 

just to share my findings (so you might don't have to spend so much time looking for a solution if you come across this):

 

This does not work in cmdBuil 2.3.1 with Internet Explorer

10.0.9200.17357

Maybe other browser or versions work, did not tested it.

 

The link has to be in this format or you just get a Tomcat error:

 

http://localhost:8080/cmdbuild/management.jsp#classes/Notebook/cards/Code~DATA-FROM-CODE-FIELD

 

A working link would look like this:

<a href="http://localhost:8080/cmdbuild/index.jsp#classes/Notebook/cards/Code~DE-HF-IT-NB-004" target="blank">Link</a>

 

Take care

Ulrich

 

 

Previously Bolduc wrote:
Thanks you it's working  !
 
My description = Code , so i did localhost:8080/cmdbuild/index.jsp/#classes/Network/cards/Code~{current:Code} 

Thanks you ! :-)