Re: Run java script from connect IT Scn (266 Views)
Reply
Occasional Collector
ahmed_hussein
Posts: 2
Registered: ‎11-25-2013
Message 1 of 6 (325 Views)

Run java script from connect IT Scn

Hello ,

 

Is it possible to run a java script from connect it.

 

What am trying to do is to make the connect IT get an e-mail and then take the info inside it and pass it to the Service manager to a specific Java script which is going to take that info as parameters to work on it.

 

So is it possible just to pass that info to the Service manager by connect it and not updating any tables or anything.

 

Thank you.

HP Expert
NgocNgo
Posts: 223
Registered: ‎06-30-2013
Message 2 of 6 (313 Views)

Re: Run java script from connect IT Scn

Hi,

 

This question is directly related to HP Connect- It, please try to post your question in the Connect-It forum: http://h30499.www3.hp.com/t5/IT-Asset-Manager-Connect-IT/bd-p/itrc-682#.U6fnNLEXKSq

 

Thank you and Best regards,

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Also, please assign a Kudo to the post if you find it is helpful
Advisor
BAG_Ass
Posts: 16
Registered: ‎04-07-2014
Message 3 of 6 (309 Views)

Re: Run java script from connect IT Scn

No - try to learn Visual basic ))))))

Occasional Collector
ahmed_hussein
Posts: 2
Registered: ‎11-25-2013
Message 4 of 6 (303 Views)

Re: Run java script from connect IT Scn

Ok let me rephrase my question.

 

I need to do a check by javascript before updating a table from the webservice and pass a few parameters to the javascript from the connect it SCN.

 

Thanks to advise.

Advisor
fmelard
Posts: 11
Registered: ‎07-18-2013
Message 5 of 6 (280 Views)

Re: Run java script from connect IT Scn

You can try a command line connector with your script name and pass arguments on the consumed document type. In the output you can have the stdout that you'll have to define in your JS.

input:

input.png

 

 

ouput:

output.png

 

 

 

 

in your JS:

 

process.stdout#

A Writable Stream to stdout.

Example: the definition of console.log

console.log = function(d) {
  process.stdout.write(d + '\n');
};
Advisor
fmelard
Posts: 11
Registered: ‎07-18-2013
Message 6 of 6 (266 Views)

Re: Run java script from connect IT Scn

Of course it's better with node.js deployed ;-)
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.