You need to sign in to do that
Don't have an account?
Shah Syed 3
Values are not parsing to a Standard Controller
1) I am able to successfully authenticate with the external system, however, I am unable to parse the data to Visualforce page.
2) I get no output on the VF page. What is wrong with the below code?
if(response.getStatusCode()==200)
{
Map<String,Object> results= (Map<String,Object>)JSON.deserializeUntyped(response.getBody());
user_id=String.valueOf(results.get('user_id'));
team_id=String.valueOf(results.get('team_id'));
else
{
ApexPages.Message myMsg=new ApexPages.Message(ApexPages.Severity.ERROR, 'There was an error in fetching the data');
ApexPages.addMessage(myMsg);
2) I get no output on the VF page. What is wrong with the below code?
if(response.getStatusCode()==200)
{
Map<String,Object> results= (Map<String,Object>)JSON.deserializeUntyped(response.getBody());
user_id=String.valueOf(results.get('user_id'));
team_id=String.valueOf(results.get('team_id'));
else
{
ApexPages.Message myMsg=new ApexPages.Message(ApexPages.Severity.ERROR, 'There was an error in fetching the data');
ApexPages.addMessage(myMsg);
What exact issue are you getting?
Can You try and see what you get in the logs How is your defintion looks for the following variable try defining them as perperty like this Once you provide info, would be help more.