Service Manager / Service Center Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Urgent HTML Notifications

Valued Contributor

Urgent HTML Notifications

Dear All,

I am using HTML notifications , in change management my issue is my approval and review groups are dynamic values selected on the phase prior the approval group, how can i send a notifcation to the values : they are saved in an array called d.approval.

 

I would really appreciate any help possible

 

thanx

14 REPLIES
Honored Contributor Honored Contributor

Re: Urgent HTML Notifications

Hi Lana,

Modify your ChM HTML template

and you can call your fields just like JS

as

record.d_approval

this will print whole array and for array elements use record.d_approval[ ].

Re,
Abhijit K

Valued Contributor

Re: Urgent HTML Notifications

Thanx,

but how will i define the recepient in the email d.approval in $L.file is not working, current.pending.groups in $L.file isn't working either. my issue is not with the template but with the recepient

 

thanx again

Honored Contributor Honored Contributor

Re: Urgent HTML Notifications

Hi

Go to notification and recepients remain same as it was for earlier notification.
For html templates you need to call JS for body and subject kindly refer html template guide for the same.

re,
Valued Contributor

Re: Urgent HTML Notifications

Hello,

This is my call

jscall( "htmlemailtemplates.getMailBody", "ChM Change Approval Pending", $L.file, $L.file.save, d.approval in $L.file,"fr")

 

i also tried d.approval[] but still nothing is working

Valued Contributor

Re: Urgent HTML Notifications

what ever i use i get this error !!!!!!

 

Parameter 3 must be ARRAY type in evscmsg function (us.notify, process.msg)

Honored Contributor Honored Contributor

Re: Urgent HTML Notifications

Hi lana,

 

If you refer html guide , there it is menioned

 

recipient  --- No


This argument is reserved.
The email message will always be sent to the recipient
defined in the notification record.

 

So do not pass last 2 arguments , d.approval in $L.file and fr in your jscall statement..

 

Re,

Abhijit K

Honored Contributor Honored Contributor

Re: Urgent HTML Notifications

try 

 

jscall( "htmlemailtemplates.getMailBody", "ChM Change Approval Pending", $L.file, $L.file.save)

 

 

and group you need to call in "ChM Change Approval Pending" notification.

 

Re,

Abhijit K

 

 

 

 

Valued Contributor

Re: Urgent HTML Notifications

Thanx . But I already tried this with no luck :( I get the same error
Honored Contributor Honored Contributor

Re: Urgent HTML Notifications

Could you please tell me, how you are calling the script and where?

 

 

re,

Abhijit K

Valued Contributor

Re: Urgent HTML Notifications

i am calling it in the html change approval notification , and this is one way i tried

 

 

 

jscall( "htmlemailtemplates.getMailBody", "ChM Change Approval Pending", $L.file, $L.file.save, d.approval in $L.file,"fr")

Honored Contributor Honored Contributor

Re: Urgent HTML Notifications

[ Edited ]

Your dynamic approval array is called: d.approval

 

In the approval defintion, in the groups/operators column, list d.approval in $L.file as the group name. 

 

When the record is saved, the approvals listed in your custom array are added to the current.pending.groups managed by the application, and all standard approval notifications and approval delegation should work normally. There should be no need to add additional notifications. 

----------------------------------------------------
Kudos - what, where, how, and why
Want Good Answers? Ask Good Questions...
Valued Contributor

Re: Urgent HTML Notifications

Hello,

Thanks but this is what i did, and i have the ccurrent pending groups with data, but yet once the norification is triggered i get the ARRAY error !!!!!!!

 

 

 

Honored Contributor Honored Contributor

Re: Urgent HTML Notifications

Please attach a screen capture of the related notification definition. Thanks.

----------------------------------------------------
Kudos - what, where, how, and why
Want Good Answers? Ask Good Questions...
Frequent Advisor

Re: Urgent HTML Notifications

Hi,

I've got the same error but in the IM_Update. My environment are in Spanish.

 

Translate image "SM Message":

____________________________

 

Start 3

Interaction updated

start 3

Not found releated information on device to do the query: false

The record to update has been updated since are read

------

The record to update has been updated since are read

----------

start 3

The record has been updated after selected

Parameter 3 must be ARRAY type in evscmsg function (us.notify, process.msg)

Parameter 3 must be ARRAY type in evscmsg function (us.notify, process.msg)