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

{"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
-
@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 '[email protected]
it will instead just use plain JSON containing each employee:{ "Employees": [ { "employeeEmail": "[email protected]", "managerEmail": "[email protected]", "policyID": "0123456789ABCDEF" }, { "employeeEmail": "[email protected]", "managerEmail": "[email protected]", "policyID": "0123456789ABCDEF" } ] }
Answers
-
Hi @rockingknight, could you give us a bit more detail on what you're trying to do?
"Multipart data is missing"
This often means you're not submitting the call correctly, you should be using the option
-F '[email protected]
-
In this scenario, I am trying to update by using Deluge. Can you explain What is the Purpose of this
"data": "@C:\\Users\\Prash(RGV)\\Downloads\\SampleCSV_venkat_s_Expenses.csv"
and how to pass the .csv file in the code. -
Christina Dobryzynski Expensify Success Coach - Admin, Expensify Team, Expensify Student Ambassador Posts: 270 Expensify Team
Hey there @rockingknight! I'm not 100% sure on a solution for you so I reached out to my teammates to help. I'll follow up with you here as soon as I have more information. Thanks!
-
Thanks on the Response to the Queries @Ted Harris ! If I am updating Employee using API call ,Will it be Effected on other members of the policy, and I have doubt that , Do i have to update All the Existing Employee data in the call to add New Employee. Or it will remove the Existing Employees, if I add only new employees data in the call. Please Suggest...