-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from dmick92/main
Updated searchByCriteria.md structure and meta
- Loading branch information
Showing
5 changed files
with
1,906 additions
and
1,495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"index": { | ||
"display": "hidden" | ||
}, | ||
"searchByCriteria": "Search By Criteria" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Search By Criteria | ||
description: Search for records with a specific criteria using a client script. | ||
--- | ||
|
||
# Search By Criteria | ||
|
||
Search for records with a specific criteria using a client script and loop through the results. | ||
|
||
## Client Script: | ||
|
||
```javascript | ||
var leadsResult = ZDK.Apps.CRM.Leads.searchByCriteria( | ||
"((First_Name:starts_with:M)or(First_Name:starts_with:T))" //Replace with your criteria | ||
); | ||
|
||
if (leadsResult && leadsResult.length > 0) { | ||
for (var index in leadsResult) { | ||
var leadRecord = leadsResult[index]; | ||
log(index + ") " + leadRecord.Full_Name); | ||
} | ||
} else { | ||
log("No matching records"); | ||
} | ||
``` |
Oops, something went wrong.