Hello. I have a form which I update via the API. In the form I have a check for duplicate records which works perfectly via the form and the API. But when I update the same record I just get the return of "duplicate record" message I have in the form and the returned API provides a successful status. I'm wondering if there is any way to change this so an actual error code is returned if a duplicate record is inserted.
The other way I can do is get all the records from the form 1st and then validate if I have to insert. I'm using Ansible to do this work and it's not progmatically easy to do this in one task if I want to use all native ansible modules.
I think I just might have steered my way to doing it a better way but I'll leave this here in case what I asked 1st is possible.
How do you validate your record for the duplicate? Are you using a validation rule in ConfiForms?
As for the API, are you using REST API and something like - https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Server+REST+API+version+1#ConfiFormsServerRESTAPIversion1-UpdateConfiFormsEntry to do your update?
If there is a validation error then you usually get a BAD REQUEST with message explaining what exactly is happening (and the response body with JSON describing the errors)
Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events