Some times doesn't find a company that have domain and was auto createdSOLVE
Jan 16, 2020 9:13 AM
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.
Solved! Go to Solution.
Jan 16, 2020 12:41 PM
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.