Solved

How to run execscript through HTTPClient

  • 6 December 2023
  • 3 replies
  • 104 views

Badge +6

Hi Team,

 

I am trying to use HTTP CLient in workflow to execute script to enable disable media agent but its not working whereas it doesnt return anything and doesnt execute the script as expected .

 

URL : http://commservename/webconsole/QCommand

In Body

Contetn-type =text/plain

and body is mentioned below 

qoperation execscript -sn setmediaAgentProperty -si xpath:{/workflow/ForEach_3/N2MAs} -si 8 -si 0

icon

Best answer by Chris Sunderland 6 December 2023, 23:48

View original

3 replies

Userlevel 3
Badge +6

Can you try this by using the webserver url instead of the webconsole? 
 

So your url in the HTTPClient activity should just looks something like this

/SearchSvc/CVWebService.svc/QCommand

Badge +6

Thanks it is working with above mentioned URL if i try from same commserve. Problem here is, i am trying to create a workflow from a different commserve and i need to use HTTPClient for other commserve which has this Media agent present and in that httpclient how should i give url of that commserve? Also will the authtoken will also be different because the credentials i am using is same for all the commserves?

Badge +6

Thanks Chris,

It is working when i modified the URL to look like below:

 

http://commservename:81/SearchSvc/CVWebService.svc/QCommand

Reply