Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

ROQL query for contact ID based on email address (1 Comment)

$
0
0

Topic by Mike Kramer

Can someone help me with the syntax to find the contact ID based on an input of an email address?  We have a situation where we want users to enter only their email address on our web site on a form.  When they submit that form, we want an incident created.  Requirements for creating an incident are a primary contact ID and subject.  So my objective is to find the contact ID based on the email address.  I'm using the REST API and I have found this link: https://docs.oracle.com/cloud/latest/servicecs_gs/CXSVC/op-services-rest-connect-v1.4-queryResults-get.html

Just unclear how to search for the email address.  I think email addresses are in a separate table??

Using the example, I would expect something like:

?query=select id from contacts where contacts.email like 'mike@norwood.com'  but this definitely doesn't work. 

Is there a database diagram that shows the table structures?

https://mysite.example.com/services/rest/connect/v1.3/queryResults/
?query=select id,subject from incidents where id<=10;

Viewing all articles
Browse latest Browse all 2504

Latest Images

Trending Articles



Latest Images