You can use read.xsd and coupa.ini files in Coupa Connector package directory to add a custom object and field details. The sample directories are:
•<Secure Agent installation directory>\downloads\<latest connector zip package>\package\plugins\<plugin ID>
•<Secure Agent installation directory>\downloads\<latest connector zip package>\package\rdtm\javalib\<plugin ID>
Following image displays an example of read.xsd file. In the following figure, account is an object and the data enclosed in the following brackets represent defined custom fields.
After you add a custom object to .xsd file, you must add the object to .ini file. Restart the Secure Agent after you add the custom object details in the .ini file. When you add the custom object details in the .ini file you must mention the following details:
•endpointname. Fetch the API end point name from https://coupadocs.atlassian.net/wiki/display/integrate/Summary+Objects. When you visit the link, navigate to the respective object summary. You can see a message at the end of the page. For example, The URL to access receipt is: https://<instance>/api/receipts. In this example, receipt is the API end point name.
•Field in the Data Integration page and corresponding field in API. Visit https://coupadocs.atlassian.net/wiki/display/integrate/Summary+Objects to find the corresponding field in Coupa API. For example, if you want to find the corresponding query field for receipt, you must visit the Receipt Summary Object in Coupa API page. When you click GET you can see a table which lists the element and the type of the element.
•Custom Field. In the .xsd file, see the corresponding object field definition. When you spot the defined field, add the details of the new field in this section.
You can add additional fields.
You must always restart the Secure Agent when you make changes to the .ini file.