✏️ Explanatory Question

OData/REST Integration – Auto-numbering Records

👁 0 Views
📘 Detailed Answer
🟢 Easy
0
Total Views
10
Related Qs
0%
Progress
💡

Answer with Explanation

OData/REST Integration - Auto-numbering Records: "You need to integrate an external system with D365 F&O via an OData/REST data entity call to create new sales orders. The external payload does not provide a Sales Order ID. How can you ensure that D365 F&O auto-generates a Sales Order number for each new record created via OData? What if the data entity currently requires the Sales Order number in the request - how would you address that?"
Interviewer guidance: The candidate should mention that the OData data entities can be designed to auto-assign numbers using F&O's number sequence if the identifier field is left blank. They might explain that if the entity doesn't auto-generate by default, a developer can extend the data entity (overriding initValue or using NumberSeqRecordFieldHandler::enableNumberSequenceControlForField) so that leaving the field empty triggers F&O's number sequence to supply the next number. If the entity absolutely needs an ID, the candidate could mention alternatives like calling a custom service to retrieve a number sequence value first or adjusting the entity's metadata to not require the field.