Visual Builder

Get Involved. Join the Conversation.

Topic

    M Sridhar
    POST REST Call in VBCS
    Topic posted February 6, 2019 by M SridharSilver Medal: 2,000+ Points, tagged Action Flows, Custom Code, JET, Process, REST, Validation, Web 
    203 Views, 3 Comments
    Title:
    POST REST Call in VBCS
    Summary:
    POST REST Call in VBCS
    Content:

    Please comment on this issue, what is the solution for it..

    1. I registered as Service Connection for creating webApp - When we do Test, it is working and returned the response

    2. I am creating a form, caputring all form feilds

    3. With JS function call, I am capturing all fields and assigning it a var like

    ItemVal = document.getelementbyID;  var result = { "Item": ItemVal }; console prints variables 

    4. Passing the variable " result"  to body of webservice.

    5. REST call fails with 502 error - I tried with JSON.stringfy - still having issue

    6.  I get an error like(in developer tools) - Unexpected token < in JSON at position 0

     

    Comment