Plugin Development Flashcards
7 cards from real PL 400 practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Plugin Development flashcards as text
What happens to an asynchronous plugin if the Dataverse async service is restarted while the plugin is queued?
Answer: The async service replays the message from the queue after restart
The asynchronous queue is durable; the async service replays pending system jobs after a restart so no messages are lost.
Which execution context property provides the unique identifier of the pipeline event that triggered the plugin?
Answer: context.CorrelationId
CorrelationId is a unique GUID assigned to the entire pipeline execution chain and can be used to correlate logs across multiple plugins.
A plugin throws an unhandled exception that is NOT an InvalidPluginExecutionException. What behavior should a developer expect?
Answer: Dataverse rolls back the transaction and shows a generic error to the user
Any unhandled exception causes Dataverse to roll back the transaction and surface a generic error, unlike InvalidPluginExecutionException which shows the developer's message.
In the context of custom API development in Power Platform, how does a Custom API differ from a traditional plugin on the Execute message?
Answer: Custom APIs expose a named endpoint with defined input/output parameters and can be triggered from flows or client code
Custom APIs let developers define typed input/output parameters and expose a discoverable action endpoint, unlike generic plugin steps on Execute.
What must a developer do to make a plugin step fire for ALL fields during an Update, rather than only when specific fields change?
Answer: Leave the Filtering Attributes field blank
Leaving Filtering Attributes empty means the plugin fires on every Update regardless of which fields are included in the payload.
Which Dataverse service should a plugin use to impersonate another user when performing data operations?
Answer: IOrganizationServiceFactory.CreateOrganizationService(targetUserId)
Calling CreateOrganizationService with a specific userId creates a service instance that impersonates that user for all subsequent operations.
A developer needs to read the original field values before an Update in a plugin. Which entity image type should be registered on the step?
Answer: PreImage
A PreImage captures the record's field values as they existed in the database before the Update operation executed.