Custom


Execute

The Custom – Execute API call executes a custom transaction in Eyelit MES-M. Based on the parameters passed in the body/payload of the JSON packet, any custom transaction can be called.

Figure 1 - Logic within Custom/Execute API Call 

ActiveX control 

Data Pre-Requisites 

The transaction must exist in Eyelit MES-M in order for it to be called.  

Request 

Table 1 shows the method and endpoint required to make the API call to list Scheduled Jobs 

Table 1 - Outbound Message Detail for BoM Type - List 

Method 

URL Structure 

Endpoint 

POST 

https://[environment].mestec.net 

/api/Custom/Execute 

The body of the payload should follow the format below 

JSON Structure for Custom Execute 

A white background with red and blue text AI-generated content may be incorrect., Picture 

Sample Request 

See below for sample use cases with examples of the JSON payload format required 

To execute a custom transaction with no parameters: 

JSON Sample for Custom Execute with no parameters 

A close up of a text AI-generated content may be incorrect., Picture 

To execute a custom transaction with parameters: 

JSON Sample for Custom Execute with parameters 

A screenshot of a computer program AI-generated content may be incorrect., Picture 

Response 

When using the Custom – Execute API calla JSON payload will be returned containing data in the following structure: 

JSON Structure for Custom Execute 

Picture 1, Picture 

Sample Response 

See below for sample use cases with examples of the JSON payload format returned. 

JSON Sample for Custom Execute 

Picture 1, Picture