BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam MB-820 Topic 4 Question 23 Discussion

Actual exam question for Microsoft's MB-820 exam
Question #: 23
Topic #: 4
[All MB-820 Questions]

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.

Show Suggested Answer Hide Answer
Suggested 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.


Contribute your Thoughts:

Cristy
3 days ago
Option A is the way to go. Can't go wrong with the classic 'OnBeforePostSalesDoc' event.
upvoted 0 times
...
Alisha
8 days ago
I agree with you, Leota. Event B seems to meet all the requirements.
upvoted 0 times
...
Leota
9 days ago
I think we should subscribe to event B.
upvoted 0 times
...
Gary
13 days ago
Option D is my pick. It looks like it would cover the requirement of running the check even if the user is only shipping and not invoicing.
upvoted 0 times
...
Gladys
16 days ago
I'm leaning towards Option C. The event subscription looks like it would handle the different location codes between the sales order and customer card.
upvoted 0 times
...
Brock
18 days ago
Option B seems the most appropriate. It's a good fit for the requirements given in the question.
upvoted 0 times
...

Save Cancel