A company uses Business Central.
The company has sales orders that have a different location in the header than in the customer's card. You plan to add a check on sales order posting.
The check must meet the following requirements.
* Sales Order must have the same Location Code as the Location Code set up on the customer's card.
* Must not be run in preview mode.
* Must be run even if the user is only shipping items and not invoicing.
You create an event subscription for codeunit 80 "Sales-Post" You need to identify which event to subscribe to Which event should you identify?
A.
B.
C.
D.
Answer : A
This event occurs before posting a sales document.
PreviewMode is available in the parameters, which allows checking whether the process is being run in preview mode.
This event is typically used for sales order posting and can be used for both shipping and invoicing.
This event matches the requirements because:
You can check if PreviewMode is false.
It can run for both shipping and invoicing.
You plan to call a web service by using the data type HttpClient from a Business Central AL extension
You must provide the following implementation for the web service call:
* The web service must authenticate the client with a certificate.
* The certificate must include a password.
* The password must be hidden when you debug the code
You need to include the certificate in the web service call. Which instruction should you use?
Answer : B
ou plan to call a web service using HttpClient from a Business Central AL extension. The web service must authenticate using a certificate that includes a password, and the password must be hidden during debugging.
Options
The question asks for the correct implementation where the certificate and password are provided and where the password is hidden when debugging.
SecretText is a special data type in Business Central that hides sensitive data (like passwords) during debugging.
A company uses Business Central.
You plan to help users through the installation process by using Assisted Setup.
You need to create a wizard page.
Which two actions should you perform? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Answer : A, B
A: In Business Central, wizard pages are created using the NavigatePage type because it allows step-by-step navigation, which is perfect for wizard-like user experiences.
B: The group control organizes the content for each step in the guide, and it's essential to add these controls to the layout's Content area for each step of the wizard.
C: Worksheet is used for pages designed to handle larger datasets, not for wizard or step-by-step flows.
D: Repeater controls are used for displaying multiple records, not for guiding users through steps, so it's incorrect for this scenario.
For more information, you can refer to Assisted Setup in Business Central.
You ate creating a view for a Business Central app.
The view requires a custom layout that displays only customer records with a balance greater than 500 in local currency.
You need to configure the view to specify that it has a custom layout.
Which property combination should you use?
Answer : B
SharedLayout = true allows for the layout to be shared across views, and it is often used when defining a custom layout that should follow specific filtering conditions.
The Filters property specifies the exact filter criteria for the view, in this case, filtering on Balance > 500 and the Currency Code = LCY (local currency).
A uses incorrect filter syntax and shareLayout = false, which doesn't allow the layout to be shared, so it's not ideal for this use case.
C and D both have issues with the filter syntax and do not use proper Currency Code filtering or share layout settings.
For more details, check Creating Views in Business Central.
You must simulate the user interaction of selecting a posting option. The options must include:
* Ship
* Invoice
* Ship & Invoice
You need to create a test codeunit to run the test.
What should you use?
Answer : B
Handler methods are used in tests to simulate user interactions, such as responding to dialogs, confirmation messages, or option selections. Since you need to simulate the user interaction of selecting a posting option (Ship, Invoice, Ship & Invoice), a Handler method would be the appropriate choice for capturing this kind of user input.
Normal attribute and Test attribute are used for marking methods for test execution, but they do not simulate user interaction, making Handler method the correct answer.
For more details, see the Microsoft Docs on Test Codeunits and Handler Methods.
You are creating an entitlement object in Business Central to enable transactability for AppSource apps.
You must map the entitlement object to a plan in Partner Center.
You need to select the value of the Type property to use in the entitlement object.
Which value should you use?
Answer : A
In Business Central, when creating an entitlement object to enable transactability for AppSource apps and mapping it to a plan in Partner Center, the Type property of the entitlement object should be set to PerUserServicePlan (A). The PerUserServicePlan type is used to define an entitlement that is based on a service plan, which is typically how transactability features are managed for apps distributed through AppSource. This type of entitlement allows for the mapping of specific features or capabilities of the app to a service plan in Partner Center, enabling granular control over what users are entitled to use based on their subscription. The other values, such as Implicit (B), Unlicensed (C), and Role (D), are used in different contexts and do not apply to the scenario of mapping an entitlement object to a plan for AppSource apps.
You are exporting data from Business Central.
You must export the data in a non-fixed length and width in CSV format.
You need to generate an XMLport to export the data in the required format
Which Format property value should you use?
Answer : B
When exporting data from Business Central and the requirement is for the data to be in a non-fixed length and width CSV format, the Format property of the XMLport should be set to VariableText (B). The VariableText format is designed for handling data exports where the fields are separated by a delimiter, such as a comma or tab, which is typical of CSV (Comma-Separated Values) files. This format allows for the flexibility needed when dealing with varying field lengths, as it does not enforce a fixed width for each field, making it ideal for CSV data exports. Setting the Format property to FixedText (C) would enforce a fixed width for each field, which is not suitable for CSV files, while the XML format (A) is used for exporting data in an XML structure, which is different from the CSV format requirements.