To configure the business event, follow these steps:
- Open SCM in the browser on our Development Virtual Machine (VM), and navigate to System administration | Setup |Business events | Business events catalog.
- Select the Endpoints tab, and click New.
- On the Configure new endpoint dialog, select Azure Service Bus queue, and press Next.
- For convenience, paste in the Service Bus queue Name value into the Endpoint name and Queue name.
- Paste in the remaining values from the Notepad document.
- Press OK. This will validate the information by connecting to Azure with the supplied information.
If you get an error, it will likely be a copy and paste error or a missed step. Go back to the Creating a Service Bus queue recipe, and check the steps.
- Click the Business events Catalog tab page.
- Try to locate the Bill of materials approved business event, and if this is not in the list choose MANAGE | Rebuild business events catalog.
If it still does not appear, build the package in Visual Studio and synchronize the database.
- Select the Bill of materials approved business event, and click Activate.
- Select the current company in the Legal entity field, which will be USMF in the demonstration dataset.
- Select the endpoint created in steps 1 to 6, and press OK.
- If you receive the Unable to configure business event ConPIBOMApprovedBusinessEvent for company usmf because it has reached the limit of 0 configured endpoints error, it is because the demonstration data was created prior to Platform 25. In order to fix this, run the following Transact-SQL in SQL Server management studio:
USE AXDB -- this is the default database name
GO
UPDATE BUSINESSEVENTSPARAMETERS
SET ENDPOINTSPEREVENT = 10,
BUNDLESIZE = 50,
ENABLED = 0
This will update the parameters table (for which there is no form) so that each event can have up to 10 endpoints. You may need to restart Internet Information Service (IIS) in order to flush the cache for this to take effect. The ENABLED flag relates to batch processing, which is not used in later platforms to send business events. A parameters form may become available in future platform updates; if available, this should be used instead of running a manual Transact-SQL script.