You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

POST REST Call in VBCS

edited Feb 6, 2019 8:23PM in Visual Builder 3 comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!