Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
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'
});
0