Cityworks WF5 Activity Pack Question
I'm trying to use the Cityworks WF5 Activity pack to query some employee information from the system. The problem I'm having is that the activity pack only has the 'Get Employees' activity that requires you to provide it an employee's sid value with no activity that allows you to search for an employee using a login name, email address, first name, last name etc. There is a method in the Cityworks API that allows you to search for employees not using the system generated ID for the employee, it can be found at .../Services/AMS/Employee/Search. It then returns the employee SID(s) which you can then provided to .../Services/AMS/Employee/ByIds
-
Hi Bryan,
You should be able to use the Send Cityworks Request activity with the Path set to Services/AMS/Employee/Search. This generic activity lets you call any Cityworks endpoint. You are responsible for supplying the Data in the correct structure. To search by name/email you'll need a data object that looks something like this:
{
FullName: ["John Doe"],
Email: ["j.doe@email.com"],
LoginName: ["jdoe"],
}Each of the properties of this object is optional, so you can search on just the specific fields you need.Also, full disclosure, I didn't test this, so it might need a bit of fiddling to get right.--Ryan0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar