Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Date/Time Java Method?

Is there a way that I can input the date/time into the Subject of the Send Email Option for ICD? I have looked at how to maybe execute the new Date() java method and store it in a variable so that I can just use that in my expression for the Subject. But there is no new Date() method in the predefined list. I am open to other suggestions on how to do this.

Basically here is what I am trying to do:

When the user presses let's say Menu Option 1

An Email is Generated with the Date and Time along with a short message.

This email is then sent to a mobile phone message system.

5 REPLIES

Re: Date/Time Java Method?

Since there has been no response to your post, it appears to be either too complex or too rare an issue for other forum members to assist you. If you don't get a suitable response to your post, you may wish to review our resources at the online Technical Assistance Center (http://www.cisco.com/tac) or speak with a TAC engineer. You can open a TAC case online at http://www.cisco.com/tac/caseopen

If anyone else in the forum has some advice, please reply to this thread.

Thank you for posting.

New Member

Re: Date/Time Java Method?

This is fairly easy if you know java. Create a java class that contains a method that returns the time. In your ICD script create a new java variable. Create a new java object, and excute that method using the object you created store the returned value to a variable in the script.

WWW.IPTNETWORKERS.COM - > new but growing!

New Member

Re: Date/Time Java Method?

i hate to rehash this OLD message, but I was wondering if there was an easier way to do this with the new version 3.5.2.

Blue

Re: Date/Time Java Method?

See attached script which will do what you want.

Regards,

Andy - Berbee

Silver

Re: Date/Time Java Method?

Hi,

Refer the tech-note below to obtain the current date when writing a CRS script...

http://www.cisco.com/en/US/partner/products/sw/custcosw/ps1846/products_qanda_item09186a0080204513.shtml

Regards

Yogi

414
Views
4
Helpful
5
Replies
CreatePlease login to create content