Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox: /contacts/searchSOSL and region filtering fix for /contacts/search #324

Open
wants to merge 4 commits into
base: sandbox
Choose a base branch
from

Conversation

Aleksandr-v25
Copy link
Contributor

This PR contains a new Search endpoint and the fix for the old one:

  1. New endpoint {{base_url}}/contacts/searchSOSL:
  • Utilizes Salesforce search
  • Has pagination (page and pageSize parameters are available)
  • Returns responses in the following format:
contacts: Contact[]
totalPages: integer
currentPage: integer
pageSize: integer
totalRecords: integer

Examples:
image
image

  1. Fix for the issue with the old search endpoint, where the region parameter was not processed correctly.

The region is accessible from the Account object but not directly from the Contact.

- Added new /contacts/searchSOSL endpoint for name matching
- Searches across NAME FIELDS
- Filters results to SCORES Student contact type
- Supports optional region filtering
- Returns alphabetically sorted results (by LastName, FirstName)
- Includes comprehensive contact fields in response
- Limited to 24 results per query
@Aleksandr-v25 Aleksandr-v25 changed the title Sandbox: /contacts/searchSOSL and region filtering fix for /contacts/search` Sandbox: /contacts/searchSOSL and region filtering fix for /contacts/search Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant