How do i access input parameters of Client-Side Business Objects?

  • Chris Bouveret
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (320)
        Has successfully completed the Intermediate Certification
        Has successfully completed the Advanced Certification
      5 years ago #10177

      I tried using input.nameOfParameter but i get a “input is not defined” error. I didn’t find help within the docs Create Client-Side Business Objects

      Can someone help me please?

      Mathieu Roll
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
        5 years ago #10178
        Up
        0
        Down
        ::

        Hello Chris,

        you can access the input parameter with oPayload.nameOfParameter.

        For output parameters you have to return an Object.

        Example:
        return {nameOfOutputParameter: “someString”}

        If you have no ouput parameters you have to return an empty object like this return {}.

      Viewing 2 posts - 1 through 2 (of 2 total)

      You must be logged in to reply to this topic.