Hi all,
I've setup custom page for Job Planning Lines, and I'm able to GET all Job Planning Lines using the Business Central API.
I'm also able to create new Job Planning Lines for a specific job, however the moment I try to add a locationCode I get the following error.
I've done the following.
If I POST the following body everything works:
{ /jobNo/: /JOB001/, /jobTaskNo/: /1/, /lineType/: /Budget/, /quantityBase/: 10, /lineNo/: 1000, /no/: /PRODNO001/, /type/: /Item/}
However, I would like to add the locationCode as well, so I tried the following
{ /jobNo/: /JOB001/, /jobTaskNo/: /1/, /lineType/: /Budget/, /quantityBase/: 10, /lineNo/: 1000, /no/: /PRODNO001/, /type/: /Item/, /locationCode/: /SL001/}
I get the following error: You must specify Item No. in planning line
If I change quantityBase to quantity is get the following error: You must specify Resource No. in planning line
Does anyone know how to resolve this error?