Forum Discussion

Ameg1's avatar
3 years ago

How to access particular Companyfile when we have multiple CompanyFiles

 

Hi there,

 

We have been using Account right API to access company files on the cloud. We have two company files belonging to one business.

 

The two company files have the same serial number because one is a clone of the other. We know they have different file IDs though. We need to find the specific file. How can we use CompanyFileID in the code or How do we get the GUID of the individual files?

 

Thanks

BlueW

3 Replies

Replies have been turned off for this discussion
  • Mike_James's avatar
    Mike_James
    Ultimate Cover User

    Hi Ameg1 , welcome to the forum. How are you accessing your company files via the API at the moment? I only ask because that method must use the file IDs for each file, and store them somewhere.

     

    This question is better posted in the API forum, a moderator may move it.

    • Ameg1's avatar
      Ameg1
       

      Hi Mike, 

       

      Thanks for your reply.

      We are using a serial number at the moment. But now we realise that serial numbers are not unique. We must either use fileID or GUID but don't know how to use them in the code. FileID is not a part of the company file object and GUID should be known beforehand to use in the code. However, we can use FileName but not sure if that is acceptable.

       

      Thanks

      BlueW

      • Mike_James's avatar
        Mike_James
        Ultimate Cover User

        Hi Ameg1 , I'm still wondering what program you are using to access your files via the API.

         

        For general detailed info about using the API, see developer.myob.com. 

         

        A good way to learn and extract data via the API is to use Postman. MYOB have created a set of examples, and an excellent video on how to use it. Anyone can use this program.

         

        After authorizing,  the next step covers extracting a list of online files, and their files.

         

        See https://developer.myob.com/api/myob-business-api/accountright-postman-collection/ for more info.