Discussions
Importing Corporate Card Data using Financial Institution Parser not working
I'm trying to develop a solution to import expenses using the Financial Institution Parser. When I import I have a success message, but nothing is imported.
Follow steps:
Transactions > Bank > Imported Employee Expenses > Upload File
Upload a csv file. Sample can be anything, because I'm hard coding for test.
Success on uploading.
Transactions > Bank > Imported Employee Expenses
Nothing is imported:
Customization > Plug-ins > Plug-ins implementations
Here's my parse code with a sample to try to create an expense record.
References:
/**
*
* @NScriptType FIParserPlugin
* @NApiVersion 2.1
* @NModuleScope TargetAccount
*/
define(['N/xml'], function (nXml) {
var module = {};
module.getExpenseCodes = function (scriptContext) {
scriptContext.createNewExpenseCode({
code: 'DEBIT',
description: 'DEBIT'
});
scriptContext.createNewExpenseCode({
code: 'CREDIT',
description: 'CREDIT'
});