Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Pramod Vasudeva Murthy
    getNamedValues not working in v_1.4Answered
    Topic posted January 19, 2019 by Pramod Vasudeva MurthyBlack Diamond: 60,000+ Points, tagged Connect PHP 
    35 Views, 4 Comments
    Title:
    getNamedValues not working in v_1.4
    Summary:
    ApplicationContext is not set for the request : getNamedValues
    Content:

    Hi All,

    I am trying to fetch get all the menu values of a drop down. But I get this error:

    ApplicationContext is not set for the request : getNamedValues

    Do I need to include anything in my PHP code?

    ~VIP

    Version:
    18C
    Code Snippet:

    Best Comment

    Suresh Thirukoti

    Yes Pramod...you need to include as below ...http://documentation.custhelp.com/euf/assets/devdocs/cloud18d/Connect_PHP/Default.htm

    --------------------------------------------------------------------------

    From August 2017 release, specifying the ApplicationContext field is mandatory for any operation or object in Connect PHP v1.4. The ApplicationContext field is a string having a maximum length of 40 characters.

    Sample Code:

    $context = RNCPHP\ConnectAPI::getCurrentContext();
    $context->ApplicationContext = "Contacts with ID >100";
    

    Comment

     

    • Suresh Thirukoti

      Yes Pramod...you need to include as below ...http://documentation.custhelp.com/euf/assets/devdocs/cloud18d/Connect_PHP/Default.htm

      --------------------------------------------------------------------------

      From August 2017 release, specifying the ApplicationContext field is mandatory for any operation or object in Connect PHP v1.4. The ApplicationContext field is a string having a maximum length of 40 characters.

      Sample Code:

      $context = RNCPHP\ConnectAPI::getCurrentContext();
      $context->ApplicationContext = "Contacts with ID >100";
      
    • Pramod Vasudeva Murthy

      Thank you, Suresh.

      I imagine the same goes with APIs too.

      ~VIP

    • Suresh Thirukoti

      Yes Pramod -- But I didnt get chance to work on v1_4 in PHP,, only v1.2 and v1.3.  Only in SOAP .Net code i used it and its part of the method or operation signature after clientinfoheader .....but in PHP its to be called seperately 

      ~Suresh

    • Pramod Vasudeva Murthy

      Noted, Thank you.

      ~VIP