@kyoung14 What’s the Acumatica version? There was a bug some time ago that prevented the final message from appearing (only visual, the publishing still ends successfully)
@adilaleem is there a reason you use outdated screen based API?I’d recommend you to switch to the Contract Based REST API, see documentation here:https://help.acumatica.com/(W(8))/Help?ScreenId=ShowWiki&pageid=b25e527e-8187-485e-9c8e-93aa5c2e8931
I’d assume you have some issues with how the key fields are defined for the record and it just overwrites the old record. But it’s impossible to say without the actual code.
@tahayabali I mean the code for the custom screen/DAC for the new screen.
So in this DAC I do not see any fields marked as ‘IsKey’. Without that, there can only be one record at a time in this table. So, you should fix the DAC.
@tahayabali You need to define which fields are the Primary key of the record and set it to these fields. It should also be done for the DB table itself.
@cstefanache for OData you do not use manufacturing or default endpoints. Via OData you can directly access either Generic Inquiries or the DAC data in the system.
Take a look at this example:https://github.com/Acumatica/UnitTestExamples/blob/master/UnitTestsDemo/Setup/UnitTestWithARSetup.cs
@tahayabali please attach the customization package. It’s hard to say without looking at the actual screen/DAC structure
@tahayabali the package does not contain the SQL table definition. It would be nice to see that as well.But overall, I do not understand what you are trying to achieve here.Do you want a screen that displays a list of records and you send PUT requests to insert a record for different agdc_packing_id ?
There is no PK in this DB table definition. You must have a PK defined and it also must have CompanyID column as a part of the primary key. Please check the following documentation:https://help.acumatica.com/(W(11))/Help?ScreenId=ShowWiki&pageid=5659adfe-3e4a-45a6-a94a-a33c2f955194
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.