QuestionQ371

Extend the platform

A company has a Common Data Service (CDS) environment. All accounts whose relationship type is set to Customer must have an account number. A plug-in has been developed.

When a Customer with a relationship type is updated, the plug-in assigns an account number if the user did not provide one.

You need to register the plug-in.

Which three actions should you complete, in order?

Drag & Drop
In the Plug-in Registration tool, select Register New Image, change the Image type be a PostImage, and ensure the accountnumber is included as a parameter.
In the Plug-in Registration tool, select Register New Image, change the Image type be a PreImage, and ensure the accountnumber is included as a parameter.
In the Plug-in Registration tool, select Register New Step and set the Message to Update, Primary Entity to Account, and Event Pipeline Stage of PreValidation.
In the Plug-in Registration tool, select Register New Assembly.
In the Plug-in Registration tool, select Register New Step. Set the Message to Update, Primary Entity to Account, and Event Pipeline Stage of PreOperation.
Explanation

Register the assembly first. A synchronous PreOperation Update step can modify the Target entity before Dataverse persists the Account update. A pre-entity image containing accountnumber lets the plug-in access the original value when that attribute is absent from the update payload; a post-image is unavailable until after the operation.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!