Highlighted
Absent Member.
Absent Member.
447 views

Emails sent to Assignment Group and Assignee Manager

Hi All,

I have a below requirement.

I need to send an EMail to Assignment Group and Assignee Manager once certian Event has occured

I created a Notification record as follow

  1. For sending and Email to the Assignee Manager I used a JS and called the same in notification record

              Arguments:number in $L.file

              Condition:True

              Notify Method:Email

              Recipient:jscall(<MyScript>,assignment in $L.file)

 

 

2              For sending the EMail to the Assignment Group I wrote the following line in the Notifications

 

                 Arguments:number in $L.file

                 Condition:True

                 Notify Method:Email

                 Recipient:assignment in $L.file

 

Both the lines are contained in the single notification record. Now when I am Testing I can't see any notification trigerred.

Can you please suggest

=DK

0 Likes
5 Replies
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Emails sent to Assignment Group and Assignee Manager

Did you assign a Mgs Class and a Msg No? and make sure that the number of arguments you are passing in to the msg are the same as the msg is expecting?

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: Emails sent to Assignment Group and Assignee Manager

In addition to the Msg Class, Msg No, and correct number of args: I would also check to make sure that your notification record is even getting called in the first place. What is the event which should trigger the notification? If it is an event which would trigger an out-of-box notification, then your new notification should have the same name (different ID).

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Emails sent to Assignment Group and Assignee Manager

Thankyou for the reply

I have followed the steps mentioned in below thread, where in there is Script written. from you

 

I just added that Script in the Script Library and added the reord in the notification table.

Kindly let me know if I need to make changes at other places as well.

 

-DK

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Emails sent to Assignment Group and Assignee Manager

just now noticed that I haven't gave reference.This is the script I wrote

function Notify(group)
{
var manager
var assignment=new SCFile("assignment")
var getAssignment = assignment.doSelect("name=\""+group+"\"")

if (getAssignment == RC_SUCCESS)
{
manager=assignment.coordinator_incident

if (manager != null)
{
return manager
}

else
{
return null
}

}
else
{
return null
}
}

 

I m just using this in notification.

 

Regards,

-DK

Highlighted
Knowledge Partner
Knowledge Partner

Re: Emails sent to Assignment Group and Assignee Manager

Do like our friend Jack: 

- Add a new line in the same notification with same values and with 

condition true

recipients: youremail@yourcompany.com

Let us know the results. Wish you all the best.

 

 

Regards,
Breno Abreu

If you feel this was helpful please click the KUDOS! thumb below!
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.