Epicor Kinetic (Apps step)
Epicor Kinetic
Lists, reads, creates and updates records in Epicor Kinetic (parts, customers, jobs, orders…) through any business object's REST API v2 OData service, such as Erp.BO.PartSvc.
Use it to connect Kinetic with the plant: read a part's revision and description for a label, list jobs released today, create a record when something happens on the floor, or update a field when a job finishes.
Beta. This step has not yet been checked against a live Epicor Kinetic account, so treat its first runs as a test, and tell us if an operation does not answer as described.
Find it in the workflow editor's palette under Apps. See Apps steps for what every Apps step has in common.
Set it up
- In Kinetic, have your admin make an integration user with access to the companies and business objects the workflow uses (User Account Security Maintenance), and note its user name and password.
- Open API Key Maintenance, create an API key with an access scope that allows those services, and copy the key.
- In DataMagik, open Script Engine › Credentials and add a "Basic Auth (Username/Password)" credential with the integration user's name and password.
- Add your Kinetic server's host (such as centralusdtapp01.epicorsaas.com, or your own server's name) to Allowed Domains in the workflow's Script settings.
- This step calls Kinetic from DataMagik over the internet. An on-premise server that is not reachable from the internet needs a connector agent on the plant network and an API Bridge resource (Connectors › API Bridge) instead.
Credential: A Basic credential with a Kinetic user's name and password; the API key goes in the API key field.
Hosts it calls: *.epicorsaas.com
Connection
| Field | Required | What to put |
|---|---|---|
| Server | Yes | The host name in your Kinetic web address, such as centralusdtapp01.epicorsaas.com or kinetic.acme.com. For example centralusdtapp01.epicorsaas.com. |
| Instance | Yes | The application name after the host in your Kinetic web address, such as KineticLive or ERP11Pilot. For example KineticLive. |
| Company | Yes | The Kinetic company ID to work in, such as EPIC06. For example EPIC06. |
| API key | Yes | An API key from Kinetic's API Key Maintenance, sent as the X-API-Key header on every call; REST v2 refuses calls without one. |
Operations
| Operation | What it does |
|---|---|
| Record › List | Lists the records in an entity set of a business object service, optionally filtered, following every page up to the step's page limit. |
| Record › Get | Reads one record by its keys. |
| Record › Create | Creates a record in an entity set through the business object, with its business logic. |
| Record › Update | Changes fields on one record through the business object; fields you leave out keep their values. |
Record › List
Lists the records in an entity set of a business object service, optionally filtered, following every page up to the step's page limit.
Calls GET /{service}/{entitySet}. Follows the pages, up to Most pages (10 unless you change it).
| Field | Required | What to put |
|---|---|---|
| Service | Yes | The business object service, such as Erp.BO.PartSvc, Erp.BO.CustomerSvc or Erp.BO.JobEntrySvc. For example Erp.BO.PartSvc. |
| Entity set | Yes | The entity set in that service, such as Parts, Customers or JobEntries. For example Parts. |
| Filter | No | An OData filter on Kinetic's field names, such as PartNum eq '1000' or InActive eq false; leave empty for all. For example InActive eq false. |
| Fields to return | No | Comma-separated field names; leave empty for every field. For example PartNum,PartDescription,IUM. |
| Most results | No | Return at most this many; leave empty for all of them. |
What comes out: One item per record, with its fields by Kinetic's names, such as {{ $json.PartNum }}, {{ $json.PartDescription }} and {{ $json.SysRowID }} (the record's unique id, which tells records apart).
Example: List Erp.BO.JobEntrySvc JobEntries with filter JobReleased eq true and JobComplete eq false for the morning job report.
Record › Get
Reads one record by its keys.
Calls GET /{service}/{entitySet}({keys}).
| Field | Required | What to put |
|---|---|---|
| Service | Yes | The business object service, such as Erp.BO.PartSvc, Erp.BO.CustomerSvc or Erp.BO.JobEntrySvc. For example Erp.BO.PartSvc. |
| Entity set | Yes | The entity set in that service, such as Parts, Customers or JobEntries. For example Parts. |
| Keys | Yes | The record's key values in order, separated by commas, text in single quotes: 'EPIC06','1000' for part 1000 in company EPIC06. The brackets are added for you. For example 'EPIC06','1000'. |
| Fields to return | No | Comma-separated field names; leave empty for every field. For example PartNum,PartDescription,IUM. |
What comes out: One item: the record, with its fields by Kinetic's names, such as {{ $json.PartNum }}, {{ $json.PartDescription }} and {{ $json.SysRowID }}.
Example: Get Erp.BO.PartSvc Parts with keys 'EPIC06','{{ $json.part }}' and print {{ $json.PartDescription }} on the label.
Record › Create
Creates a record in an entity set through the business object, with its business logic.
Calls POST /{service}/{entitySet}.
| Field | Required | What to put |
|---|---|---|
| Service | Yes | The business object service, such as Erp.BO.PartSvc, Erp.BO.CustomerSvc or Erp.BO.JobEntrySvc. For example Erp.BO.PartSvc. |
| Entity set | Yes | The entity set in that service, such as Parts, Customers or JobEntries. For example Parts. |
| Record fields | Yes | A JSON object of the new record's fields by Kinetic's names, including Company and the other key fields. For example {"Company": "EPIC06", "PartNum": "{{ $json.part }}", "PartDescription": "{{ $json.description }}", "IUM": "EA"}. |
What comes out: One item: the new record as Kinetic saved it, with its fields by Kinetic's names and {{ $json.SysRowID }}.
Example: Create a part {"Company": "EPIC06", "PartNum": "{{ $json.part }}", "PartDescription": "{{ $json.description }}"} when engineering releases a new drawing.
Record › Update
Changes fields on one record through the business object; fields you leave out keep their values.
Calls PATCH /{service}/{entitySet}({keys}).
| Field | Required | What to put |
|---|---|---|
| Service | Yes | The business object service, such as Erp.BO.PartSvc, Erp.BO.CustomerSvc or Erp.BO.JobEntrySvc. For example Erp.BO.PartSvc. |
| Entity set | Yes | The entity set in that service, such as Parts, Customers or JobEntries. For example Parts. |
| Keys | Yes | The record's key values in order, separated by commas, text in single quotes: 'EPIC06','1000' for part 1000 in company EPIC06. The brackets are added for you. For example 'EPIC06','1000'. |
| Record fields | Yes | A JSON object of the fields to change and their new values, by Kinetic's names; only these fields change. For example {"PartDescription": "{{ $json.description }}"}. |
What comes out: Kinetic answers 204 No Content when the record was updated, so the step puts out one item with {{ $json.status }} (204) and an empty {{ $json.body }}. Use Get record to see it as it now is.
Example: When engineering changes a drawing, update Erp.BO.PartSvc Parts 'EPIC06','{{ $json.part }}' with {"PartDescription": "{{ $json.description }}"}.
Trigger: Epicor Kinetic: New Items
Under Triggers in the palette. It looks at Epicor Kinetic on a schedule (every 15 minutes unless you change Look every) with one of these operations: Record › List, and starts the workflow with the items it has not seen on an earlier look, one item each. Saving the workflow sets up the schedule.
- New means: not seen before, by the item's id (or the field you name in Item field), or newer than the newest one last time, by a date or increasing number.
- On the first run it only remembers what is there, unless you choose Start with everything.
- Test runs show what would be new without remembering it. It remembers the last 5000 ids, so filter the list to keep it shorter than that.
Example
When a label prints, Epicor Kinetic › Get record reads Erp.BO.PartSvc Parts('EPIC06','{{ $json.part }}') and puts {{ $json.PartDescription }} and {{ $json.IUM }} on the label.
Tips
- Kinetic's own API help page, at https://<server>/<instance>/api/help/v2/, lists every service (Erp.BO.PartSvc, Erp.BO.JobEntrySvc, Erp.BO.SalesOrderSvc…), its entity sets and their fields, and lets you try a call.
- Filters use OData syntax with Kinetic's field names: PartNum eq '1000', InActive eq false. Text values go in single quotes.
- A record's keys usually start with the company: Parts('EPIC06','1000'), Customers('EPIC06',42). Text keys go in single quotes, numbers do not.
- Creating or updating through a business object runs Kinetic's business logic, as the screen does, so required fields and validations apply; errors come back in the answer's ErrorMessage.
- It reads and writes the real company on test runs too, so use a pilot or test instance while building.
Settings every Apps step has
- More query parameters: any query parameter the fields do not offer, sent as is.
- More body fields: a JSON object merged into the request body; nested objects merge, other values replace.
- Most requests per second: spaces the calls out for rate limits. A "too many requests" (429) answer is retried after the wait the API asks for.
- Most pages: for operations that follow pages, the most pages to fetch (10 unless you change it, up to 100). The run warns when it stops with more to get.
- Fail on a non-2xx response: on by default. Turn it off to handle errors yourself.
Epicor Kinetic's own API documentation: https://www.epicor.com/en-us/support/