function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shah Syed 3Shah 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);
Abdul KhatriAbdul Khatri
Hi Shah,

What exact issue are you getting? 
Can You try and see what you get in the logs
Map<String,Object> results= (Map<String,Object>)JSON.deserializeUntyped(response.getBody());
system.debug('result : ' + results);
How is your defintion looks for the following variable
user_id
team_id
try defining them as perperty like this
public string user_id { get; set; }
Once you provide info, would be help more.