I'm trying to retrieve the company name from companymetadata
. I have this which doesn't work.
Dim oauthValidator As New OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey, consumerSecret)
Dim context As New ServiceContext(oauthValidator, apptoken, realmid, IntuitServicesType.QBO)
Dim commonService As New DataServices(context)
Dim actualCompanyMetaData As Intuit.Ipp.Data.Qbo.CompanyMetaData = TryCast(commonService.FindById(New Qbo.CompanyMetaData()), Qbo.CompanyMetaData)
Dim cpnyname As String = actualCompanyMetaData.CompanyFileName.ToString
How do I get the company name?