Valid AD0-E716 Dumps shared by ExamDiscuss.com for Helping Passing AD0-E716 Exam! ExamDiscuss.com now offer the newest AD0-E716 exam dumps, the ExamDiscuss.com AD0-E716 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AD0-E716 dumps with Test Engine here:
An Adobe Commerce developer adds a new extension attribute to add an array of values to the invoices that are fetched through the APIs. After a while, their technical manager reviews their work and notices something wrong with the extension_attributes. xml file that the developer created in their module: What is the problem with this xml snippet?
Correct Answer: B
The extension attribute is referencing the repository instead of the interface it implements. The correct XML snippet should be: XML <extension_attributes> <attribute code="custom_values" type="string[]" group="General" translate="true"> <description>This attribute stores an array of custom values for the invoice.</description> <source_model>Magento\Sales\Api\Data\InvoiceInterface</source_model> </attribute> </extension_attributes> The source_model attribute specifies the interface that the extension attribute is associated with. In this case, the extension attribute is associated with the Magento\Sales\Api\Data\InvoiceInterface interface.