Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Marketplace
    • Advertise With Us
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › What to do in case I am getting Rest API error?

    Tagged: Access Token, Debug in Salesforce, Get and set Methods, HTTP GET, HTTP POST, HTTP Request, JSON Deserialization, Login URL, Old Version, Rest API, REST API Error, Salesforce Apps, Salesforce Code, Salesforce Error

    • Salesforce® Discussions

      What to do in case I am getting Rest API error?

      Posted by Rahul on January 30, 2018 at 8:33 AM

      HI,
      I updated my http request code but now I am getting an error "You are running an old version of the app. Please upgrade to the latest version".
      here is my code of calling access token:-

      public string getAccessTokenNew(){
      String strEndpointUrl='';
      HttpRequest tokenRequest = new HttpRequest();
      if(objZoomtechConfig !=null){
      strEndpointUrl = objZoomtechConfig.RV_Login_URL__c;
      tokenRequest.setBody('grant_type=password&client_id=zoom-dev1-client&session_reset=no&username='+objZoomtechConfig.RV_Username__c + '&password='+ objZoomtechConfig.RV_Password__c);
      }
      //Creating Http request object

      tokenRequest.setendpoint(strEndpointUrl);
      tokenRequest.setHeader('Content-Type', 'application/x-www-form-urlencoded');
      tokenRequest.setmethod('POST');
      Http objHttp = new Http();
      HttpResponse res = objHttp.send(tokenRequest);  // here response is [Status=OK, StatusCode=200]
      system.debug('@@'+res.getBody()); // but here i am getting this  DEBUG |@@ {"response":null,"status":"FAILURE","errorMessage":"You are running an old version of the app. Please upgrade to the latest version."}
      objResponse = (responseClass)JSON.deserialize( res.getBody(),responseClass.Class);

      if(objResponse.response != NULL){
      strAccessToken = objResponse.response.access_token;
      system.debug('@@@'+strAccessToken);
      objZoomtechConfig.Access_Token__c = objResponse.response.access_token;
      objZoomtechConfig.Expires_In__c= Decimal.valueOf(objResponse.response.expires_in);
      objZoomtechConfig.Token_Generation_Time__c = System.now();
      update objZoomtechConfig;
      }

      Please guide me, why i am getting this issue?

      thanks,
      Rahul Kumar

      Rahul replied 7 years, 12 months ago 2 Members · 2 Replies
      • Access Token
      • Debug in Salesforce
      • Get and set Methods
      • HTTP GET
      • HTTP POST
      • HTTP Request
      • JSON Deserialization
      • Login URL
      • Old Version
      • Rest API
      • REST API Error
      • Salesforce Apps
      • Salesforce Code
      • Salesforce Error
    • 2 Replies
    • Manpreet

      Member
      January 30, 2018 at 10:32 AM

      Hi Rahul,

      API version is defined in different different ways depending on what you are doing with it.

      SOAP API calls
      REST API calls
      Apex
      Visualforce
      All of these (and other features that use API) are fixed in the code you write against them, allowing you to upgrade/update when it fits your company/project lifecycle. Integration uses different end points. Apex and Visualforce use metadata to define the version.

      Essentially there is only ever one version of Salesforce in production. Previous versions of the API are emulated for the purpose of integration and code resilience.

      So when you write your REST request (as that's what you've been using), you will use a URL like this, for instance:

      HTTP:GET
      /services/data/v26.0/sobjects/account/001B0000003nJhxxxx

      The v26.0 segment of the URL path is what stipulates the version. You can substitute any other previous or later version up to the current version (v33.0 for Spring 15, the current release).

      n some instances you will get a response, but a different result. For instance these two GETendpoints:

      /services/data/v26.0/sobjects/account/001B0000003nJhJIAU
      /services/data/v33.0/sobjects/account/001B0000003nJhJIAU

      The second returns a few extra fields that were added in the ensuing versions.So manage your strEndpointUrl in the code.

       

      Thanks.

    • Rahul

      Member
      January 31, 2018 at 5:28 AM

      Thanks for reply manpreet, but i am not calling such endpoint so i am not getting your point.
      I am just calling two api's , in first i am generating the access_token and then uudating this new access token in custom setting. and next to using second api which will take data from sfdc to java applicaion.
      now in first case, as i am calling the httpRequest then status is 200Ok but getting this error message

      error "You are running an old version of the app. Please upgrade to the latest version" which is working fine in sandbox.
      how to fetch this fault, it's important to me to solve ASAP.
      Someone please guide me soon!

      Thanks,

      Rahul Kumar

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    application solution

    Popular Salesforce Blogs

    5 Significant Benefits of Salesforce CRM Testing

    Blog in Salesforce, Salesforce Stories

    Providing superior customer service is no longer a choice for businesses, it has rather become a necessity to sustain in this competitive world. However, providing…

    Business Operations, Business Process, CRM, CRM Platform, CRM systems
    Girikon Dec 15, 2022
    1,658  Views

    Always Implement 2FA when providing web services on top of Salesforce

    Blog in Data, Salesforce Security

    How many time have you herd the sentence “SECURITY is never enough” ? especially in IT and digital services we always add new fences, walls…

    Authentication, digital forms, Salesforce Security
    Ori Dec 11, 2017
    3,379  Views

    Salesforce Announced The End of Life of Permissions on Profiles | The Developer Guide

    Blog in Salesforce

    The time has finally arrived when Salesforce recently announced that the Spring '26 release would mark the end of life (EOL) for permissions on profiles.…

    Custom Actions, Customizing Fields, Field Level Security, Field Permissions, Field-level Security Pages
    Apphienz Mar 20, 2023
    2,371  Views

    Popular Salesforce Videos

    Introduction to Set & Map in Salesforce || What is Set || What is Map ||

    Introduction to Set & Map in Salesforce || What is Set || What is Map ||

    Video in Others

    From Salesforce instructor, Become a Salesforce Expert. A brief introduction about what is a Set, map, and what are their importance? Check out the video to…

    Salesforce Expert, Set, Salesforce Map, Map
    Neha Yadav Oct 21, 2019
    2,123  Views
    Introduction To Salesforce Apex | DataType | Collection | Conditional Statements

    Introduction To Salesforce Apex | DataType | Collection | Conditional Statements

    Video in Salesforce Apex

    In this video salesforce apex hours creators provides an introduction to Apex. Apex enables developers to access the Salesforce platform, back-end database and client-server interfaces…

    salesforce, salesforce platform, Apex, Salesforce Developers, Salesforce Video
    Mayra Aug 11, 2022
    2,054  Views
    How Salesforce Supports Veterans in the Workplace

    How Salesforce Supports Veterans in the Workplace

    Video in Salesforce Stories

    Have you found community at your workplace? Tune in as Brian Kim, Account Executive, shares how Salesforce supports veterans in the workplace through Vetforce, our…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Nauman Feb 2, 2022
    1,278  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.