Jump to content
  • 0

API Get with multiple parts


Pingzinggolf
 Share

Question

I am new to API and I am in Swagger and looking at - GET- /v2/tables/{tableName}/records

I can select based on one COL - Example...

https://********.caspio.com/rest/v2/tables/Incoming_Leads/records?q.where=Lead_Source%3D'Medical%20Physicist%20Opportunity%20in%20Missouri%20Available'

How do I select with 2 fields like

Select * from table where Lead_Source='asdfasdf" and Email = 'asdfasdfasdf'

https://********.caspio.com/rest/v2/tables/Incoming_Leads/records?q.where=Lead_Source%3D'Medical%20Physicist%20Opportunity%20in%20Missouri%20Available'?????????????

I tried to add 2 fields to the WHERE clause but I am not sure how.

 

Thanks

https://c2afw033.caspio.com/rest/v2/tables/Incoming_Leads/records?q.where=Lead_Source%3D'Medical%20Physicist%20Opportunity%20in%20Missouri%20Available'
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello @Pingzinggolf,

In case you want to get all fields that meet the criteria Lead_Source='a" and Email = 'b' (just example), please use AND logic operator.

Please see a screenshot:

NearzrA.png

If the Lead_Source and Email fields have Text(255) data type, use single quotes to wrap the values as shown on the screenshot.

Hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...