REST API and respecting Sugar data business rules

We have used a combination of Studio Required checkboxes, before_save logic hooks and dependency files (Required, SetOptions etc) to enforce some data business rules (including conditional logic) within Sugar instances.

I am not a developer, but have a question relating to integration via the Sugar API...

If data is presented to the API (for example to write data in), if that data does not meet the business rules around data within the Sugar instance, does the API call reject the data with appropriate error messages that can be interpreted ?

If not, does it simply let the data through or would you have to do additional programming around the API to maintain data integrity.

Thanks

Neil 

Parents
  • Hello Neil,

    nice to see you in the Club!

    I'm not a developer too, so let me answer with video - editing the record with required field via interface vs creating new record via API with Postman (double-click for the full screen when viewing)

    As we may conclude from this simple example, the answer is No - in general, with no additional efforts, we can't be sure that all the business logic implemented is respected when using API

    Best Regards,
    Dmytro Chupylka

    integroscrm.com
    We make work in Sugar CRM system faster, more convenient and efficient

  • - thanks for that - good visual confirmation and helps my understanding

Reply Children
No Data