cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
375
Views
5
Helpful
12
Replies
Highlighted
Enthusiast

Max number of variables in action exceeded error in Finesse while invoking webservice

I am getting Max number of variables in action exceeded error in Finesse while invoking web service in workflow.If Input parameters are less than 5 its working fine.In Cisco links i do see there is a limitation of 5 parameters.currently we are 11.6.1 version, would like to know if there is any patch with new ES to pass more parameters or a change in registry to pass more parameters is available option with existing version?Any help/info is really appreciated.

12 REPLIES 12
Highlighted
Collaborator

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

I've ran into this before and the answer was see if you can combine the parameters and break them up on the receiving end or your out of luck.

 

david

Highlighted
Enthusiast

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Thanks a lot David for your quick response.Have you tried invoking webservice from gadget with more than 5 parameters? My plan was to verify whether we can invoke using gadget with more than 5 paramters? If you have any code can you please share?

Highlighted
Collaborator

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Yeah, I've tried and it's not possible. My recommendation of combining them is your best bet.

 

david

Highlighted
Enthusiast

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Hi David, Thanks for your responses on this issue.You are saying even if we write custom gadget with more than 5 parameters we still get 'Max number of variables in action exceeded' error due to limitation from cisco?So only option is to combine? Did cisco TAC say anything, if not i plan to open case?

Highlighted
Collaborator

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

I didn't open a case so it might make sense to get official word, but this has been a limitation for a while so I don't see them changing it. Please update the thread based on what Cisco says.

 

david

Highlighted
Enthusiast

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Sure David.I have opened case will update once i get final outcome.

Highlighted
Cisco Employee

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Hi,

 

What exactly are you trying to accomplish? Are you trying to update more than 5 call variables via a workflow?

 

Thanx,

Denise

Highlighted
Enthusiast

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Hi,

I am trying to pass more than 5 input parameters in a webservice request which is throwing error.If input paramteres are less than 5 then webservice is invoked but when i try to add additional parameters getting attached error.Please let me know if you have any questions,

 

Highlighted
Cisco Employee

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Hi,

 

Is this an external (non-Finesse) webservices request? If so, you can make a custom gadget to send a raw http request. You can put as many parameters you want in there. Here is a sample gadget making an exteral rest api request: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/ExternalRestApiSampleGadget

 

When making a custom gadget, you will need to write code to trigger on the workflow condition.

 

Thanx,

Denise

Highlighted
Enthusiast

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Thanks Denise.I am trying to invoke external webservice using with below changes in gadget and still have issues to invoke.Do you have any idea what is causing this?Any help is appreciated.

 

handleNewDialog = function(dialog) {

        clientLogs.log("handleNewDialog()");

 

        // Call the REST API and display the results

        //SM -- var url = "http://finesseFQDN:8082/finesse/api/SystemInfo";

       //SM -- var url = "https://nlx401sv2197.ent.corp.bcbsm.com:8445/finesse/api/SystemInfo";

      var url = "WEBSERIVCE URL";

        //var contentBody = "<User><state>READY</state></User>";

        makeRequest(url, {

            //SM --- method: 'GET',

                                                method: 'POST',

            //authorization: _util.getAuthHeaderString(finesse.gadget.Config),

            contentType: 'application/xml',

            content: <?xml version="1.0"?><soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

                                                <soapenv:Header>

                                                <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">

                                                <wsse:UsernameToken><wsse:Username>username</wsse:Username>

                                                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password </wsse:Password>

                                                </wsse:UsernameToken>

                                                </wsse:Security>

                                                </soapenv:Header>

                                                <soapenv:Body>

                                                <p735:FacetsRequest xmlns:p735="http://ExtID.facets.ucs.bcbsm.com">

                                                <par1>${callVariable4}</par1>

                                                <par2>${loginId}</par2>

                                                <par3>${callVariable5}</par3>

                                                <par4>${user.COB}</par4>

                                                <par5>${user.LOC}</par5>

                                                </p735:FacetsRequest></soapenv:Body>

                                                </soapenv:Envelope>,

        }, {

            success: handleResponseSuccess,

            error: handleResponseError,

        });

Highlighted
Cisco Employee

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Your content needs to be escaped. You cannot have xml formatted that way in a JS file.

Highlighted
Enthusiast

Re: Max number of variables in action exceeded error in Finesse while invoking webservice

Thanks Denise.We have resolved this issue and working fine with workflow itself.

CreatePlease to create content