Urgent HTML Notifications (960 Views)
Reply
Super Advisor
Posts: 392
Registered: ‎06-04-2008
Message 1 of 15 (960 Views)

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

Honored Contributor
Posts: 900
Registered: ‎10-14-2010
Message 2 of 15 (949 Views)

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

Super Advisor
Posts: 392
Registered: ‎06-04-2008
Message 3 of 15 (936 Views)

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
Posts: 900
Registered: ‎10-14-2010
Message 4 of 15 (933 Views)

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,
Super Advisor
Posts: 392
Registered: ‎06-04-2008
Message 5 of 15 (923 Views)

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

Super Advisor
Posts: 392
Registered: ‎06-04-2008
Message 6 of 15 (877 Views)

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
Posts: 900
Registered: ‎10-14-2010
Message 7 of 15 (874 Views)

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
Posts: 900
Registered: ‎10-14-2010
Message 8 of 15 (871 Views)

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

 

 

 

 

Super Advisor
Posts: 392
Registered: ‎06-04-2008
Message 9 of 15 (868 Views)

Re: Urgent HTML Notifications

Thanx . But I already tried this with no luck :( I get the same error
Honored Contributor
Posts: 900
Registered: ‎10-14-2010
Message 10 of 15 (866 Views)

Re: Urgent HTML Notifications

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

 

 

re,

Abhijit K

Super Advisor
Posts: 392
Registered: ‎06-04-2008
Message 11 of 15 (861 Views)

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
Posts: 3,720
Registered: ‎07-13-2007
Message 12 of 15 (848 Views)

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...
Super Advisor
Posts: 392
Registered: ‎06-04-2008
Message 13 of 15 (825 Views)

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
Posts: 3,720
Registered: ‎07-13-2007
Message 14 of 15 (818 Views)

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
Posts: 44
Registered: ‎08-19-2014
Message 15 of 15 (61 Views)

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)

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.