Expensify Update Employee

Expensify Update Employee

On this Page

Snap type:

Write



Description:

This Snap updates employee data on an Expensify account.

  • Expected upstream Snaps: File reader followed by any file parser followed by Structure.

  • Expected downstream Snaps: Any file Formatter followed by File Writer.

  • Expected input:  Input request data.

  • Expected output:  The information about the created report.



Prerequisites:

[None]



Support and limitations:

Works in Ultra Tasks.

Account: 

This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See Expensify Account for information on setting up this type of account.



Views:

Input

This Snap has exactly one document input view.

Output

This Snap has at most one document output view.

Error

This Snap has at most one document error view and produces zero or more documents in the view.

Settings

Label



Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.





Supported Attributes for Export Report operation


The details about attributes to be passed as input for update employees operation can be found at following link: update employee attributes.
 
The data attribute should also be passed to the array element 'data' of the input schema.



Examples


JSON for Updating Employees

{ "inputSettings": { "type": "employees", "policyID":"0123456789ABCDEF", "fileType": "csv" }, "data": [ { "EmployeeEmail":"emp1@ex.com", "ManagerEmail":"mg1@ex.com", "Admin":true, "EmployeeUserId":"uid1001", "EmployeePayrollId":"pid1001", "ForwardManagerEmail":"fwm1@ex.com" }, { "EmployeeEmail":"emp2@ex.com", "ManagerEmail":"mg2@ex.com", "Admin":true, "EmployeeUserId":"uid1002", "EmployeePayrollId":"pid1002", "ForwardManagerEmail":"fwm2@ex.com" } ] }



See Also