PL-500 · Question #166
You create a custom connector outside of a solution in your development environment. The custom connector includes custom code. You plan to deploy the custom connector to another environment by first
The correct answer is A. Deploy the solution as unmanaged.. Custom connectors with custom code created outside a solution must be deployed as unmanaged to ensure the code is transported correctly to the target environment.
Question
You create a custom connector outside of a solution in your development environment. The custom connector includes custom code. You plan to deploy the custom connector to another environment by first adding it to a solution. When you deploy the solution, the custom code is not deployed successfully. You need to resolve the issue with the custom code. What should you do?
Options
- ADeploy the solution as unmanaged.
- BDeploy the solution as managed.
- CPublish the connector in the development environment.
- DImport a new solution with the custom connector.
How the community answered
(32 responses)- A81% (26)
- B3% (1)
- C9% (3)
- D6% (2)
Why each option
Custom connectors with custom code created outside a solution must be deployed as unmanaged to ensure the code is transported correctly to the target environment.
Deploying the solution as unmanaged preserves all component data including the custom code files associated with the connector, because unmanaged solutions transport the full connector definition without restrictions. When a custom connector is created outside a solution context and then added to one, the unmanaged deployment method is required to carry the code payload intact to the destination environment.
Managed solutions restrict component modification and do not reliably carry custom code files that were authored outside the original solution context, which is the root cause of the failure.
Publishing the connector in the development environment makes it available for use locally but has no effect on how its custom code is packaged or exported within a solution.
Importing a new solution still does not resolve the issue because the problem is the deployment type, not which specific solution file is used.
Concept tested: Custom connector with code solution deployment type
Source: https://learn.microsoft.com/en-us/connectors/custom-connectors/customconnectorssolutions
Topics
Community Discussion
No community discussion yet for this question.