422] Validation Failed (name must be unique) Capsule CRM

Hi guys- easier to explain in a video. Appreciate the help as always Thank you:

blueprint (8).json (18.0 KB)

Hello Chris,

Try adding any characters manually after the company name (e.g., “ABC”) to differentiate it.

The error suggests that you can create only one organization with this name.
According to Capsule CRM’s API documentation, it seems the name functions equal to an ID, so it’s likely that only one organization with this name is allowed.

If this doesn’t help, I suggest installing DevTools (Chrome plugin) to check the request made by Make.

Have a nice day,
Michal

1 Like

Perfect thank you I added a . at the end of it and worked perfectly appreciate the help

You’re welcome.
To prevent this situation in the future, remember to add error handling for a #422 error, which will append random digits or a UNIX timestamp to the end of the company name.

Have a nice day!

Ok thank you - is there any way of getting around it where you don’t have to put anything extra at the end of the company name?

According to the documentation, you might be able to work something out using the ID field, but this would need to be tested. It also requires a custom API call, as the Make module only uses the name field.

This is only an issue if you have two companies with the same name. For example, EFG and HIJ will be fine, but the problem arises when you have two companies named ABC.