Highlighted
Outstanding Contributor.
Outstanding Contributor.
551 views

Connect IT to send HTML message with fields from Service Manager

Jump to solution

Hello experts,
I am interested if there is a way to write HTML code in a connector of Connect IT v9.40?
What I did:
1. Exposed table in which I will store data that needs to be sent
2. Connected CIT to this table
3. I am already sending notification from CIT like this:

dim tekst as string
dim address, vrijeme as string
dim position,positionT as long
dim count as integer
dim to_mail,to_vrijeme as string
dim x as string

dim address1 as string
dim position1 as long
dim count1 as integer
dim to_mail1 as string
to_mail1=replace(['affected.services'],chr(13) & chr(10),";")
count1 = 0
address1 = to_mail1
position1 = instr(0, address1, chr(59), 0)
do while len(address1) <> 0
 
address1 = RightPartFromLeft(address1,chr(59),0)
count1 = count1 + 1
position1 = instr(0, address1, chr(59), 0)
loop
count1=count1 + 1
x=chr(13)
tekst="<html>"
tekst=tekst + "<div class="+x+"WordSection1"+x+"><p class="+x+"MsoNormal"+x+">&nbsp;</p> "
 
I wanted to know if there is a way to send notification in HTML form with fields mapped from an exposed table of service manager?
Labels (2)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Hello @Nick_Karpushkin ,

I have done that because it's simpler than CIT configuration.
I have created htmltemplate then used functions getMailBody and getMailSubject and stored them in custom table which I use for this process.

Best regards,
Dino

View solution in original post

0 Likes
3 Replies
Highlighted
Super Contributor.
Super Contributor.

Hello, 

I was searching and this document  provides steps to create a scenario to send out emails from SM to an email account in the form of HTML.

https://softwaresupport.softwaregrp.com/doc/KM00618597

Hope this help.

 

Highlighted
Respected Contributor.
Respected Contributor.

What version of SM do you have?

I think it would be easier to use htmltemplates inside SM if they are available in you version.

Highlighted
Outstanding Contributor.
Outstanding Contributor.

Hello @Nick_Karpushkin ,

I have done that because it's simpler than CIT configuration.
I have created htmltemplate then used functions getMailBody and getMailSubject and stored them in custom table which I use for this process.

Best regards,
Dino

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.