Hi all,
I'm currently trying to add a resource in a Job Planning Line record using the OData API. I obtain a Resource Code No and attempt to push this into the Job Planning Line object and update/save. This brings down the entire NAV service and requires a restart.
I have tried multiple ways to populate the Resource field in a Job Planning Line, including:
Creating a Line without a resource then updating one with one later.
Populating the fields that are autocompleted on the form programatically.
Creating a Line with a resource manually, then programatically updating it with another.
Each time, it crashes the system. When a Line is created, the Type is set to Resource, so i'm not sure as to why any time I programatically add anything in the No property of a Job Planning Line, the system crashes.
Is there any way I can programatically set a resource to a Job Planning Line using OData?
Thanks