Customizing the API Interface for Transaction

The XML file %LAWDIR%\system\IOSTokenConfigForIONAPI.xml determines which tokens appear on the LSF Swagger API page. This file contains the most commonly used tokens for integration.

You might need to access tokens that are not on the LSF Swagger API page by default. You can do this by editing IOSTokenConfigForIONAPI.xml to add tokens.

Note: Persons performing this procedure must be knowledgeable in the Infor Lawson system and XML.
  1. Make a backup copy of the file, %LAWDIR%\system\IOSTokenConfigForIONAPI.xml. For example, change the name to IOSTokenConfigForIONAPI_BACKUP.xml
  2. Open %LAWDIR%\system\IOSTokenConfigForIONAPI.xml for editing.
  3. To add a token:
    1. Locate its name, title, and system code. This information is available, for example, in the screen format XML file.
    2. Add a <TOKEN> node to the XML file in this format:
      <TOKEN>
           <name>name of the token for example, IC524</name>
           <title>Token title.</title>
           <syscode>system code that contains the token<\syscode>
      </TOKEN>
  4. Save the XML file when you are finished.
  5. View the token list in LSF Swagger API to verify that the changes are what you expected to see.