cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2389
Views
5
Helpful
8
Replies
Collaborator

UCCX 8.0 Create URL Document step timeout

Hi,

I have written a script that uses the Create URL Document step to retrieve an XML file from an external web server.

If the web server hosting the XML file is unavailable I want the script to detect this and then run some steps.

My issue is how do I do this. The Create URL Document has a timeout box with a default value of 0 milliseconds. However the step does not have successful and timeout branches from it so I am unsure how/if I can get the script to detect the problem.

The Create URL Document step is followed by a Create XML Document step then a Get XML Document Data step.

Thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Beginner

Re: UCCX 8.0 Create URL Document step timeout

You can use the IF step to check the results of Create URL Document step. If the data is not available, the results should be null or some something unexpected that you can test for. If this condition is met, branch off and run the error handling step.

View solution in original post

Highlighted
Rising star

Re: UCCX 8.0 Create URL Document step timeout

Assuming your url document name is URLDoc, try putting this in your IF statement test:

URLDoc == null

If that's true, then the value is null.  If it's anything else, it will return false.

Cliff

View solution in original post

8 REPLIES 8
Highlighted
Beginner

Re: UCCX 8.0 Create URL Document step timeout

You can use the IF step to check the results of Create URL Document step. If the data is not available, the results should be null or some something unexpected that you can test for. If this condition is met, branch off and run the error handling step.

View solution in original post

Highlighted
Collaborator

Re: UCCX 8.0 Create URL Document step timeout

Thanks for the response.

I cannot work out what the IF condition should be.

The document variable used by the Create URL Document  is set to null within the script.

If, after the Create URL Document step runs, the value of the document variable is still null then I guess that means that the document was not retrieved from the web server correctly.

I have tried various conditions in the IF statement but keep getting an unable to parse expression message.

Any ideas?

Highlighted
Rising star

Re: UCCX 8.0 Create URL Document step timeout

Assuming your url document name is URLDoc, try putting this in your IF statement test:

URLDoc == null

If that's true, then the value is null.  If it's anything else, it will return false.

Cliff

View solution in original post

Highlighted
Collaborator

Re: UCCX 8.0 Create URL Document step timeout

Clifford,

Thanks - I was only using one = in my IF condition. Changing this to == solved the problem.

Thanks

Highlighted
Beginner

UCCX 8.0 Create URL Document step timeout

James,

 

I am modifying the holiday.aef to access an xml located on a remote web server. Would you mind sharing your script so that I could see how you accomplished your goal? I would truly appreciate it.

Thanks

Highlighted
Beginner

Re: UCCX 8.0 Create URL Document step timeout

I am also trying to modify scripts to use this process.   This is a very helpful post.   Could someone please post an example script.  Thanks!

Highlighted
Beginner

Re: UCCX 8.0 Create URL Document step timeout

I can't see the option to attach a file but here's a screenshot of the modification to the default holidaycheck.aef script to retrieve from a web server.  I have declared a variable named DATES_FILE_LOCATION pointing to of the file on the web server. The script uses the URL construct to retrieve the document as shown.

Highlighted
Beginner

Re: UCCX 8.0 Create URL Document step timeout

thanks.   if you are ok with e-mailing script, my e-mail is eguidry@presidio.com.

CreatePlease to create content