How to Transform Custom Connector Responses Using C# Code in Power Platform?
Table of Contents
Question
You are writing custom code for a custom connector.
You need to transform the response for a new operation.
Which three actions should you perform? Each correct answer presents part of the solution. Choose three.
Select all answers that apply.
A. Create a class named CustomCode.
B. Create a class named Script.
C. Inherit the class from the interface IScriptContext.
D. Inherit the class from the abstract base class ScriptBase.
E. Implement custom transformation code in the ExecuteAsync method of the class.
F. Implement custom transformation code in the SendAsync method on the context object in the ExecuteAsync method of the class.
Answer
B. Create a class named Script.
D. Inherit the class from the abstract base class ScriptBase.
E. Implement custom transformation code in the ExecuteAsync method of the class.
Explanation
This item tests the candidate’s knowledge of developing code for a custom connector to transform data.
To implement custom code for a custom connector, you need to create a class named Script. This Script class must inherit from the abstract base class ScriptBase. The ScriptBase class provides an abstract method named ExecuteAsync that must be implemented for any transformation or for calling downstream services. The IScriptContext interface is used to define a context object and does not provide implementation methods. The SendAsync method is used on the context object to invoke the underlying service. It cannot be used to write any response transformation code. SendAsync will provide the response as is from an underlying service.
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.