Skip to main content

I’ve been working on Acumatica’s API and I’ve been able to create contact and customer records without issues. Right now, I’m also looking to create opportunity and relation records that will be attached to the contact.

 

I’ve been testing out adding attributes and I was able to add attributes through the API earlier last month, but the same request does not seem to work now. 

 

I’m looking into adding opportunities, and I’ve tried adding it with the contact record and adding it through the opportunity endpoint, both of these do not work, on the contact record, it simply does not map. On the opportunity endpoint, I’m presented with this error “Inserting  'Opportunity' record raised at least one error. Please review the errors.; AttributeTYPELOSS: 'Loss Type' cannot be empty.” but I was unable to find this exact field on the endpoints and on the JSON response.

 

 

I’m also adding the relations record with the contact creation but I was also unable to make this work.

 

Hi @convertable,

Has any customization been previously published on this instance? If so, try unpublishing the customization and then test again. I believe the customization may contain code that sets the Loss attribute as required when creating records.

Hope, it helps!


Thank you @Dipak Nilkanth, is it through customization projects? as for the other fields, I don’t think this is the reason why I can’t seem to map fields onto Attributes and Relations, both of which does not seem to have required fields. 


Reply