Skip to Content

XSJS Response FollowUp without functionName

Hi,

I have implemented a create XSJS service and a read XSJS service.

Now I want to use the read XSJS service as response of the create XSJS service.

Therefore I tried to use the following API method:

$.response.followUp({

uri : 'package:read.xsjs',

parameter : {

ID : id

}

});

Now I get the error message, that the parameter functionName of the $.response.followUp method is not of type String, as I did not provide it.

Is it possible to call the XSJS service without a functionName?

Regards,

Michael

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2014 at 07:23 AM

    Seems this is mandatory parameter. So you need to create doSomething() inside package:read.xsjs and fix code to something like:

    $.response.followUp({

    uri : 'package:read.xsjs',

    functionName : "doSomething",

    parameter : {

    ID : id

    }

    });

    Denis.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.