wixCRM not working with wixData

Hi everyone,
I am trying to start a database for customers of my company using the new wix database collections, I successfully created and added hooks for beforeInsert to make some changes to the users info before being added to the database, but I also want to send the new customer an automated email after being inserted to the database to let them know that they were added successfully. I read that I could do that with wixCRM but once I import it a few of the functions that I have before the insert stop working and also the email is not sending

Hi,
Which error did you receive?
Roi.

Hi Roi

There isn’t any explicit error, the hooks just stop working. For example I have a before insert hook that adds date and time to the item that is being added to database, and works perfectly fine before I import WixCRM but after I imported it the date and time field stays empty after the insert

Can you please share a link to to your site and specify the name of the page so we can inspect?
Roi.

Hi guys, I also have strange bug. wixData doesn’t return data collection. When I add collection to project it works fine 3-5 times

wixData.get(‘promoDetails’, promoId.toLowerCase()).then((item) => {
$w(‘#image14’).link = item[‘urliOS’];
});

Then get() starts to return null. DB -‘promoDetails’, Site - ‘syncfordji’

forgot to mention that this is Promo page of site