How to Use IServiceProvider to Access IPluginExecutionContext in Power Platform Plug-Ins?
Table of Contents
Question
You plan to develop a plug-in.
You need to access the plug-in execution context.
Which parameter should you use?
Select only one answer.
A. IserviceProvider
B. CodeActivityContext
C. IpluginExecutionContext
D. SharedVariables
Answer
A. IserviceProvider
Explanation
This item tests the candidate’s knowledge of working with plug-ins.
In plug-ins, the IpluginExecutionContext is accessible through the IserviceProvider parameter of the Execute method by calling the GetService method. In custom workflow extensions, the IpluginExecutionContext is passed as a parameter of the Execute method of type CodeActivityContext. IpluginExecutionContext contains information that describes the run-time environment that the plug-in is executing in, information related to the execution pipeline, and entity business information. Shared variables allow you to configure data that can be passed from a plug-in to a step that occurs later in the implementation pipeline.
Microsoft Power Platform Developer PL-400 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Power Platform Developer PL-400 exam and earn Microsoft Power Platform Developer PL-400 certification.