You need to sign in to do that
Don't have an account?
Mahesh Mahawar
Problem to get login form .Net Application
Hi Team,
I am .Net Developer and try to integrate with salesforce with my .net Application .
I have Created a Connected App and got the Consumer key and secreat key .
When i try to login from application ,received the code in first call with redirect url and in second call pass the code which i got in callback .
getting bad request from the salesforce server.
Please help me to complete the developement?
The information is given below :
Connected App :Yepme_SaleForce_Int
I am .Net Developer and try to integrate with salesforce with my .net Application .
I have Created a Connected App and got the Consumer key and secreat key .
When i try to login from application ,received the code in first call with redirect url and in second call pass the code which i got in callback .
getting bad request from the salesforce server.
Please help me to complete the developement?
The information is given below :
Connected App :Yepme_SaleForce_Int
A 400 means that the request was malformed. In other words, the data stream sent by the client to the server didn't follow the rules.
In the case of a REST API with a JSON payload, 400's are typically, and correctly I would say, used to indicate that the JSON is invalid in some way according to the API specification for the service.
I resolved this by changing in API end by sending the error message as JSON response. By default Salesforce shows only default message for respective Status Code.
In my case, I'm getting a response with status code as 400 and Salesforce set the status message as"Bad Request". So I changed in my API end to send a JSON response with error message, from that I can show a proper error message in Salesforce.
Please refer to the below link and follow the process as its given to integrate between salesforce and .net.
https://developer.salesforce.com/page/Integrating_Force.com_with_Microsoft_.NET
For more information download the sample codes from:
http://wiki.developerforce.com/index.php/Web_Services_API#.Net_and_Visual_Basic
Also, go through the documentation given below :
http://wiki.developerforce.com/index.php/Login.vb
http://wiki.developerforce.com/index.php/Query_query_more.vb
http://wiki.developerforce.com/index.php/Batch_records.vb
Please mark this as solved if it helps you.
Best Regards,
Nagendra,P