Can I use fmAccounting Link (MYOB AccountRight Edition) v2 with FileMaker Server scripts/Perform Script on Server

AccountRight Desktop API

Yes - if you are authenticating via the Desktop API (i.e. your MYOB AccountRight file is stored locally on a server on your network) then you are able to use FileMaker Server scheduled scripts or Perform Script on Server to interact with your AccountRight Company File. As you are required to authenticate with your selected AccountRight Company File you will need to store the Company File credentials (username/password) somewhere where the FileMaker script can access them (i.e. these will need to be hardcoded somewhere).

AccountRight Cloud API

If you are authenticating via the Cloud API (i.e. your MYOB AccountRight file is stored in the MYOB Cloud) then you will first need to perform the initial authentication to generate the access and refresh tokens. The scripts will handle refreshing these if they have expired. You will also need to store the Company File credentials (username/password) somewhere where the FileMaker script can access them (i.e. these will need to be hardcoded somewhere).

MYOB Access Tokens expire after 20 minutes (we keep track of this in the Expires At field) and can be refreshed automatically using the Refresh Token. Refresh Tokens expire after 1 week: if you don’t refresh your access token within 1 week you will need to click the Authenticate button and login to your my.MYOB account to generate a new set of tokens.

As long as you are making a request to the AccountRight Cloud API at least once every 7 days your Refresh Token will not expire, which would cause you to have to go through the Authentication process again. If you are worried about the Refresh Token expiring you can schedule the  MYOB Authentication - OAuth 2.0 Refresh Access Token FileMaker script to be performed on a schedule (e.g. every 6 days) to ensure the Refresh Token does not expire).

You can get more information on the MYOB access tokens and refresh tokens expiration periods here.


Don’t forget to also ensure that all script steps are server compatible.

Still need help? Contact Us Contact Us