Skip to main content
Answer

Create new DAC and put data Using Rest API

  • April 19, 2024
  • 4 replies
  • 235 views

Forum|alt.badge.img+3

Hi All, I need to create new DAC and dump data into new DAC using Rest API. I know how to code and put data but I am stuck in few questions like If I started new creating new DAC do i need to define new fields in that and save data accordingly and  Also how can i access that DAC using API? is there any blog that can give similar idea. 

Best answer by tahayabali

Yes, I have created a  new Dac in new screen and then put data in that Table using PUT APIs. But the PUT API did not work fine in my case. It was just updating the new record on row 1 not inserting 

4 replies

Forum|alt.badge.img+3

@tahayabali 
If those are custom fields then you can use $custom parameter to retrieve them. 
https://help.acumatica.com/(W(29))/Help?ScreenId=ShowWiki&pageid=a0444120-2e5d-41cd-8c65-0385210b0f8a
Or you can extend the endpoint and add your new fields in the extended endpoint. More information on extending endpoint is here:
https://help.acumatica.com/(W(30))/Help?ScreenId=ShowWiki&pageid=c450492e-06fe-4563-95c3-efa76975415b

 


Forum|alt.badge.img+3
  • Author
  • Captain I
  • April 19, 2024

Thanks Gotcha. But in my scenario I do not want to touch the main customer table instead I want to add that data into separate table of Acumatica with my custom name and fields. I am stuck in this point.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • June 4, 2024

Hi @tahayabali were you able to find a solution? Thank you!


Forum|alt.badge.img+3
  • Author
  • Captain I
  • Answer
  • June 4, 2024

Yes, I have created a  new Dac in new screen and then put data in that Table using PUT APIs. But the PUT API did not work fine in my case. It was just updating the new record on row 1 not inserting