Discover Details of a Business Function v2

post

/jderest/v2/bsfnservice/discover

Discover the data structure for a business function.

Request

Supported Media Types
Header Parameters
Body ()
The input to a Business Function discover request.
Root Schema : DiscoverBSFNRequest
Type: object
The input to a Business Function discover request.
Show Source
  • An identifier for the device making the service call. If not provided, the requesting IP address is used.
  • Specify the environment to use for login. If not specified, the default environment configured for the AIS Server will be used.
  • The HTML (JAS) Server to use for login. If not specified, the default HTML Server configured for the AIS Server will be used.
  • The unique name of the Business Function to discover, for example RetrieveCompanyFromBusUnit.
  • The object name of the Business Functions to discover, for example B0000130. This will discover all business functions in the object.
  • The JD Edwards EnterpriseOne password, which is required if other authentication methods are not being used.
  • Used for logging in with psToken. Primarily used by the HTML Server to establish a session with the AIS Server.
  • Specify to return all the inputs and output definitions for each of the discovered Business Functions
  • The role to use for login. If not specified, the default role configured for the AIS Server will be used.
  • The system code of the Business Functions to discover, for example 09. This will discover all business functions in the system code.
  • The data structure for the Business Functions to discover, for example D0000130. This will discover all busoiness functions that use this data structure
  • The AIS token, which is required if other authentication methods are not being used.
  • JD Edwards EnterpriseOne username, which is required if other authentication methods are not being used.
Back to Top

Response

Supported Media Types

200 Response

Successful Execution

400 Response

Bad Request - Invalid JSON Input

403 Response

Authorization Failure

415 Response

Invalid Content-Type Header - Must use application/json

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back to Top

Examples

Example Request

Use the business function discovery service to get the details of an EnterpriseOne business function. Business functions are uniquely identified by their name. There may be multiple functions for an individual OMW object (Bxxxxxx), so they are returned as an array. The token value is from a prior call to the token request service to establish a session.

curl -i -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/bsfnservice/discover -d
{
    "token" : "044JHa5ZJWbI8PeLalEJFL8pU3VEWKJ17kotDHvwf5mFqc=MDE5MDA4OTE4MDAyNzQ2ODg2NDM2NTUxMk15RGV2aWNlMTQ3ODY0MjUyNjYzMw==",
    "objectName" : "B0000130",
    "returnDetail": true 
}

Example Response

The following example shows the contents of the response body.

{
    "functions": [
        {
            "objectName": "B0000130",
            "name": "RetrieveCompanyFromBusUnit",
            "description": "F0006 Get Company from Business Unit",
            "systemCode": "09",
            "source": "C",
            "parentDll": "CFIN",
            "location": "2",
            "template": "D0000130",
            "dataStructureDetail": [
                {
                    "controlId": 1,
                    "description": "Business Unit (MCU0)",
                    "datatype": 2,
                    "name": "szCostCenter",
                    "ddItem": "MCU0",
                    "ioType": 0,
                    "required": false
                },
                {
                    "controlId": 2,
                    "description": "Company (CO)",
                    "datatype": 2,
                    "name": "szCompany",
                    "ddItem": "CO",
                    "ioType": 0,
                    "required": false
                },
                {
                    "controlId": 3,
                    "description": "Description (DL01)",
                    "datatype": 2,
                    "name": "szCostCenterDescription",
                    "ddItem": "DL01",
                    "ioType": 0,
                    "required": false
                }
            ]
        }
    ]
}
Back to Top