Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

Creating a BC requisition is failing with "Control 'Ref. Order Type' is read-only" message

Posted on by 8
I'm integrating to BC and I've published the Requisition Worksheets page as a service. I am attempting to add records via OData V4. When the context is saved, /Control 'Ref. Order Type' is read-only.  CorrelationId:  e5e86a57-12e7-444f-a845-7dbbd10043e8./ error message is returned in the payload.
 
What's the proper way to push requisitions?
 
Thank you.
 
            var newRequisition = new NAV.BCRequisitionWorksheet();
            newRequisition.Line_No = 10100;
            newRequisition.Worksheet_Template_Name = /REQ./;
            newRequisition.Journal_Batch_Name = /JOURNALNAME/;
            newRequisition.Action_Message = /New/;
            newRequisition.Accept_Action_Message = true;
            newRequisition.Type = /Item/;
            newRequisition.Ref_Order_Type = /Purchase/;
            newRequisition.No = /CK-RM02/;
            newRequisition.Location_Code = /WAREHOUSE/;
            newRequisition.Quantity = 1000;
            newRequisition.Due_Date = DateTime.Now.AddDays(100);
            context.AddToBCRequisitionWorksheet(newRequisition);
 

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans