MB-500 · Question #302
Case study 4 - ADatum Corporation Background ADatum Corporation is a market leader in the design and distribution of innovative aluminum systems. The company provides services to the architectural…
The correct answer is B. SysOperationSandBox. SysOperationSandBox If a user runs the job "interactively" there is a timeout on the client (browser scripts) where it calls the server process and waits for a completion/response. This will time out. Sandboxing is meant to keep that connection alive while the user waits for…
Question
Options
- ASysExtension
- BSysOperationSandBox
- CSysOperation
- DRunBaseBatch
How the community answered
(18 responses)- A6% (1)
- B72% (13)
- C6% (1)
- D17% (3)
Explanation
SysOperationSandBox If a user runs the job "interactively" there is a timeout on the client (browser scripts) where it calls the server process and waits for a completion/response. This will time out. Sandboxing is meant to keep that connection alive while the user waits for completion, without the browser/request SysOperationSandBox allows you to run long processing in a separate session in async mode and shows the waiting form for async process (UI us not locked). Also, it provides "Cancel" button for this kind of process. Note: You can use it: 1. Directly from code - let's assume you need to run some long-running process and you already have a static method for it or you are planning to write it, but you don't want to create runBaseBatch or SysOperation class for operation. In this case, you can utilize SysOperationSandBox if you don't want to leave the user with a "freezed" UI. 2. You can use it in RunBase and SysOperation by returning true in method canRunInNewSession (note that for RunBase you need to use runOperation method instead of run in main method, but there is already BP practice warning in place). You should also take into account that in this case, you need to implement pack\unpack design pattern, as the async session will be created based on packed variables. Scenario: A user named UserB reports that the system is unresponsive when they run the Populate check data process for a customer. A process named Populate check data must be designed based on the following: - The process must run from the All customers list page and populate a custom table named CustCheckData with 1000 rows. - The table must have two fields named CheckNumber and BankNumber. - The process must return to the current session after the data is processed. https://community.dynamics.com/forums/thread/details/?threadid=19a6758b-6c45-4ba1-a121-
Topics
Community Discussion
No community discussion yet for this question.