Urgent HTML Notifications (603 Views)
Reply
Super Advisor
lana qasem
Posts: 391
Registered: ‎06-04-2008
Message 1 of 14 (603 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

Please use plain text.
Honored Contributor
Abhijit K
Posts: 892
Registered: ‎10-14-2010
Message 2 of 14 (592 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

Please use plain text.
Super Advisor
lana qasem
Posts: 391
Registered: ‎06-04-2008
Message 3 of 14 (579 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

Please use plain text.
Honored Contributor
Abhijit K
Posts: 892
Registered: ‎10-14-2010
Message 4 of 14 (576 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,
Please use plain text.
Super Advisor
lana qasem
Posts: 391
Registered: ‎06-04-2008
Message 5 of 14 (566 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

Please use plain text.
Super Advisor
lana qasem
Posts: 391
Registered: ‎06-04-2008
Message 6 of 14 (520 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)

Please use plain text.
Honored Contributor
Abhijit K
Posts: 892
Registered: ‎10-14-2010
Message 7 of 14 (517 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

Please use plain text.
Honored Contributor
Abhijit K
Posts: 892
Registered: ‎10-14-2010
Message 8 of 14 (514 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

 

 

 

 

Please use plain text.
Super Advisor
lana qasem
Posts: 391
Registered: ‎06-04-2008
Message 9 of 14 (511 Views)

Re: Urgent HTML Notifications

Thanx . But I already tried this with no luck :( I get the same error
Please use plain text.
Honored Contributor
Abhijit K
Posts: 892
Registered: ‎10-14-2010
Message 10 of 14 (509 Views)

Re: Urgent HTML Notifications

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

 

 

re,

Abhijit K

Please use plain text.
Super Advisor
lana qasem
Posts: 391
Registered: ‎06-04-2008
Message 11 of 14 (504 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")

Please use plain text.
Honored Contributor
John Stagaman
Posts: 3,268
Registered: ‎07-13-2007
Message 12 of 14 (491 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...
Please use plain text.
Super Advisor
lana qasem
Posts: 391
Registered: ‎06-04-2008
Message 13 of 14 (468 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 !!!!!!!

 

 

 

Please use plain text.
Honored Contributor
John Stagaman
Posts: 3,268
Registered: ‎07-13-2007
Message 14 of 14 (461 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...
Please use plain text.
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