Some times doesn't find a company that have domain and was auto created
SOLVE
When a user submit form from my site, first i use /contact/createOrUpdate/email/ to create contact.
If the user email domain is gmail,hotmail,etc, will create a company. If no, it will search for the company with the email domain, because we have auto create company from domain set on.
With that, i create a deal and associate with vid and companyId. With the deal created, i send to create a note for the deal.
So, the problem is that sometimes api that search company with a domain, doesn't find sometimes. I'm already using async and await.
Some times doesn't find a company that have domain and was auto created
SOLVE
Ok, i put Task.Delay(1000) on that method, and it's working with some test's i did. Already published on server and going see, if it's going create deal with contact and company related when a client submit the form.
In order to assist here, would you be able to provide some details of the calls you're making, which endpoints you're using when you're encountering this issue with the incorrect values being returned or, in this case, a record is missing from your query?
Some times doesn't find a company that have domain and was auto created
SOLVE
Ok, i put Task.Delay(1000) on that method, and it's working with some test's i did. Already published on server and going see, if it's going create deal with contact and company related when a client submit the form.