Updating employee data through Deluge Can you please help on the Issue

rockingknight
rockingknight Expensify Customer Posts: 4 Expensify Newcomer
edited July 2021 in 3rd party integrations
{"responseMessage":"Multipart data is missing","responseCode":410}


{
	"requestJobDescription": {
		"type": "update",
		"credentials": {
			"partnerUserID": "Removed",
			"partnerUserSecret": "Removed"
		},
		"inputSettings": {
			"type": "employees",
			"policyID": "4CEE01061EF6A5B7",
			"fileType": "csv"
		}
	},
	"data": "@C:\\Users\\Prash(RGV)\\Downloads\\SampleCSV_venkat_s_Expenses.csv"
}


Best Answer

  • Ted Harris
    Ted Harris Expensify Success Coach - Admin, Expensify Team, Expensify Student Ambassador Posts: 359 Expensify Team
    edited July 2021 Answer ✓

    @rockingknight could you explain in detail exactly what you're trying to do, and what your entire API call is?

    If you could reference the specific API you're using from https://integrations.expensify.com/, that will also help us understand. It's still not clear to me what exactly you're trying to update and what the errors you're getting back are. Is it still "Multipart data is missing"?

    In my original answer, I actually hadn't realized the Employee Updater API was deprecated in favor of the Advanced Employee Updater API, so your call won't use the option -F 'data=@employeeData.csv it will instead just use plain JSON containing each employee:

    {
        "Employees": [
            {
                "employeeEmail": "employee@domain.com",
                "managerEmail": "manager@domain.com",
                "policyID": "0123456789ABCDEF"
            },
            {
                "employeeEmail": "manager@domain.com",
                "managerEmail": "ceo@domain.com",
                "policyID": "0123456789ABCDEF"
            }
        ]
    }
    


Answers