You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

C# ROQL Query Email Address

Received Response
49
Views
10
Comments
edited Jun 8, 2022 12:02PM in General Technical Discussions 10 comments

Content

I have a list of customers email addresses that I want to query against the Contacts table in the Oracle Service Cloud.  I basically want to see if the email address exists in the system, so I could just select the count and if it is greater than 0 that would give me what I need. I have attached my code.  I am using a while loop to go through my email list.

Thanks,

Andrew

 

 

Version

February '15

Code Snippet

             SELECT count() FROM Contact WHERE (Contact.Emails[0].Address = '" + customers[i].email + "'OR Contact.Emails[1].Address = '" + customers[i].email + "'OR Contact.Emails[2].Address = '" + customers[i].email + "'); 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!