cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1005
Views
25
Helpful
4
Replies

Find application that uses a script

CGPS
Level 1
Level 1

Hi, 

 

Currently we use uccx 11.6.2 to create applications, (we have more than 400) and at the same time we use UCCX Editor to edit scripts that are sometimes reused in various applications.

The question is, is there a way to quickly see which applications are using a particular script to see which ones are affected when there are changes?

On the other hand, is there a limit to the number of scripts and some way to see what applications are being used or if they have never been used?

 

Thank you very much, greetings

1 Accepted Solution

Accepted Solutions

Anthony Holloway
Cisco Employee
Cisco Employee

These days, I would leverage the UCCX API for this.

You can get a list of all Applications on the system with this endpoint:
https://developer.cisco.com/docs/contact-center-express/#!get-list-of-applications/success-response

However, you may notice that the output lacks the script name, so that means you will need to now make ~400 calls to UCCX's API to figure out which script each one is using, via this endpoint:
https://developer.cisco.com/docs/contact-center-express/#!get-application

 

EDIT: Actually, I overlooked the schema, and the script name is inside the response.  So you could do it in 1 single API request, instead of 400! That's really nice! Also, the response looks like this, from my testing on devnetsandbox.cisco.com:

{
  '@type': 'applicationXMLList',
  application: [
    {
      self: 'https://hq-uccx.abc.inc/adminapi/application/UCCX_Sandbox',
      ScriptApplication: {
        script: 'SCRIPT[UCCX_Sandbox.aef]'
      },
      id: '10',
      applicationName: 'UCCX_Sandbox',
      type: 'Cisco Script Application',
      description: 'UCCX_Sandbox',
      maxsession: 10,
      enabled: 'true'
    }
  ]
}

 

And actually, a little while ago, I wrote a UCCX Script which uses the APIs to do something very similar.  See here:

https://community.cisco.com/t5/contact-center/uccx-cli-command-query-to-show-trigger-application-script/m-p/3881136/highlight/true#M111917

 

I hope that helps.

View solution in original post

4 Replies 4

Anthony Holloway
Cisco Employee
Cisco Employee

These days, I would leverage the UCCX API for this.

You can get a list of all Applications on the system with this endpoint:
https://developer.cisco.com/docs/contact-center-express/#!get-list-of-applications/success-response

However, you may notice that the output lacks the script name, so that means you will need to now make ~400 calls to UCCX's API to figure out which script each one is using, via this endpoint:
https://developer.cisco.com/docs/contact-center-express/#!get-application

 

EDIT: Actually, I overlooked the schema, and the script name is inside the response.  So you could do it in 1 single API request, instead of 400! That's really nice! Also, the response looks like this, from my testing on devnetsandbox.cisco.com:

{
  '@type': 'applicationXMLList',
  application: [
    {
      self: 'https://hq-uccx.abc.inc/adminapi/application/UCCX_Sandbox',
      ScriptApplication: {
        script: 'SCRIPT[UCCX_Sandbox.aef]'
      },
      id: '10',
      applicationName: 'UCCX_Sandbox',
      type: 'Cisco Script Application',
      description: 'UCCX_Sandbox',
      maxsession: 10,
      enabled: 'true'
    }
  ]
}

 

And actually, a little while ago, I wrote a UCCX Script which uses the APIs to do something very similar.  See here:

https://community.cisco.com/t5/contact-center/uccx-cli-command-query-to-show-trigger-application-script/m-p/3881136/highlight/true#M111917

 

I hope that helps.

Thank you very much for the link of that api. It works fine on my server showing all the applications and scripts on the system. It is a summary of everything basically.

Is there a simple way to be able to display or group the data to more easily see everything? I have more than 400 applications and it is difficult to see how many are using a specific script because they are separated along a long xml.
Is there something similar to see which applications have had calls or are no longer used?


I have checked the other link that you indicate where I see the file "report-trigger-app-script-http.aef" but I don't know how to use it on our platform. It is UCCX 11.5 with Premium licenses, and I don't know if this is only valid for 11.6.

Is there a simple way to be able to display or group the data to more easily see everything?
I'm not sure I understand.  If you use the APIs, you should then be able to format the data however you want though.  Are you using a particular programming language to do it?

Is there something similar to see which applications have had calls or are no longer used?
I'm afraid I have not approached that problem before.  I suspect you'll need to run an Application Summary report in CUIC for that.

and I don't know if this is only valid for 11.6
Oh, yeah, I think the Make REST Call step only came out in 11.6.  Shoot, sorry that couldn't work for you, it's a neat trick.

I don't use any programming language with the api, which would be a great help to create really useful and easy applications. Anyway, discovering this API trick is of great help to me because thanks to the web browser I can see at a glance all the applications, triggers, and details of the applications internally in a very fast way although it is not as beautiful or readable as if it had been implemented in a menu of the uccx web interface itself.

 

Soon we will update the version of cucm and uccx to 12.5 and we will see if it brings any advantage in this regard.

 

Regarding the CUIC and Application Summary, it is something that we have already been using to discover this, but I thought there could be a faster or different way.

 

 

PD: Sorry I was wrong, the version we have is as I said at the beginning of the thread, 11.6.2.10000-38 (ES05-9), so maybe I can make use of those scripts that you placed. How would they be used?

Thanks a lot

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: