How to use a response value in custom data conversion method in schema mapper of a rest service(auto lookup)

Comments

4 comments

  • Official comment
    Avatar
    AgilePoint NX Support

    Hi Tharun,

    It looks the syntax is not correct. Could you please try as per screen captured attached below. "value" is the selected node response value, you can use the value and format the value as per requirement.

    Thanks,

    AgilePoint Support

    Comment actions Permalink
  • Avatar
    Tharun

    thanks for the swift response, noted this point… how to use the values in the response for example: append address1+address2+address3 from the response as shown in image,,,,
    I am getting error as the variable doesnt exist in current context.

    1
    Comment actions Permalink
  • Avatar
    Tharun

    Below json is the rest service response value. I am trying to append and return some of the  values to show in a dropdown as name/value pair using the custom data conversion method, ex: return CustID+address1+address2+address3 .I am getting error name CustID doesn't exist in current context.How to achieve the desired result?

    {
                "Company": "1589",
                "CustID": "test",
                "CustNum": 1,
                "Name": "test customer",
                "Address1": "",
                "Address2": "",
                "Address3": "",
                "City": "",
                "State": "",
                "Zip": ""
            }

    0
    Comment actions Permalink
  • Avatar
    AgilePoint NX Support

    Hi Tharun,

    Custom Data Conversion is supported only to format the node value selected in the schema mapper.

    This will not have context of all the node values. You can format only the selected node value.

    Hope this clarifies your question. 

     

    Thank you,

    AgilePoint Support

    0
    Comment actions Permalink

Please sign in to leave a comment.