• Demi Dev
  • NEWBIE
  • 30 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 2
    Replies
Inquiry_Management__c is connected to Contact by master-detail.
The plural of Inquiry_Management__c is Inquiry_Management__c.

 
SELECT Salesforce_18_Digit_ID__c, 
firstName,
lastName,
Text_OK__c,

(SELECT Activity_Date__c
FROM Inquiry_Management__c
WHERE Activity_Date__c>=2020-01-01T12:00:00Z
)

FROM Contact

Error:
FROM Inquiry_Management__c
     ^
ERROR at Row:7:Column:6
Didn't understand relationship 'Inquiry_Management__c' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
So I found out that I cannot disable the automatic outgoing emails that is sent after a user record is created in Salesforce.
(We enables SSO in out environment, so it isn't necessary for the automatically generated email confirmation to be sent to users after they've been created in SF). Enetually, we'd like to sent out a custom email instead.

I was thinking to create a SF Apex rigger on the User object that somehow "deleted" the outbound email that is send after a user record is created.
Is this possible? Could someone assist with the code? I have very little experiece writing Apex triggers (but very eager to learn!)