Rules: Which rules is used to when a new record is created #298
Answered
by
mcclowes
teezyfortune
asked this question in
Q&A
-
Which rule type should I listen when creating the following entities(customer, company), etc is created |
Beta Was this translation helpful? Give feedback.
Answered by
mcclowes
Apr 6, 2023
Replies: 1 comment 3 replies
-
Hi @teezyfortune, We don't have a rule for just the creation of a Company. If you're creating the company via API, you'll get a response to show it's been created successfully, and if you're using Link, you usually want to wait until the connection is established or data has been synchronized. The rules dfor these are here: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can also listen for our 'data set changed' hook (https://docs.codat.io/introduction/webhooks/core-rules-types), and check for Data.dataType being the data type you're interested in.
Re: creating bills:
The fields required can change a bit based on the integration. You can see examples of the required fields in this dropdown on that page: