Method Community

 

Method API GetScreenUrl to QB vendor list?

Last post 06-12-2012 1:29 PM by Jacob. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-12-2012 12:11 PM

    • Jacob
    • Top 500 Contributor
    • Joined on 05-24-2012
    • Posts 14

    Method API GetScreenUrl to QB vendor list?

    Hello there,

    I have a default installation with (finally) some data synchronized from QB. I can generate links to Edit Customers, Add new customer, etc with no problems.

    I see on the top right of the screen a drop-down where I can select "QuickBooks" and from there I can browse Vendors.

    However, when I try to generate a link to the "Vendors and Contacts List" page, I get a success message, but the link takes me to the normal default page.

    Any ideas on what I may be doing wrong?

    Here is the code:

                MethodCRMService.ServiceSoapClient client = new MethodCRMService.ServiceSoapClient(binding, endpointAddress);
                try
                {
                    client.MethodAPIGetScreenURLV2Completed += (sender, args) =>
                    {
                        GetUrlResponse response = BaseResponse.Deserialize<GetUrlResponse>(args.Result);
     
                        onGetCreateContactUrlComplete(response);
                    };
     
                    client.MethodAPIGetScreenURLV2Async(credentials.Company, credentials.UserName, credentials.Password, string.Empty,
                        "Vendors and Contacts List""Vendors"string.Empty);
                }
                catch (Exception ex)
                {
                    client.CloseAsync();
                    LogException(ex);
                    onGetCreateContactUrlComplete(BaseResponse.GetExceptionResponse<GetUrlResponse>(ex));
                }
    

    Thanks for any help,

    Jacob 

  • 06-12-2012 12:51 PM In reply to

    Re: Method API GetScreenUrl to QB vendor list?

    Answer

     Hi Jacob,

    The dropdown at the top right is for the tabgroup (legacy name is rolename). So to do what you are asking you need to use either MethodAPIGetScreenURLV3 or MethodAPIGetScreenURLV4 and set the rolename parameter to be "QuickBooks"

    Dave

  • 06-12-2012 1:29 PM In reply to

    • Jacob
    • Top 500 Contributor
    • Joined on 05-24-2012
    • Posts 14

    Re: Method API GetScreenUrl to QB vendor list?

     Awesome, worked like a charm.

    Thanks much!

    -Jacob

Page 1 of 1 (3 items)