Skip to content

Commit

Permalink
Create searchByCriteria.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmackenzie authored Mar 13, 2024
1 parent 6b21c78 commit 8aac413
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pages/crm/client scripts/searchByCriteria.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

var leadsResult = ZDK.Apps.CRM.Leads.searchByCriteria("((First_Name:starts_with:M)or(First_Name:starts_with:T))");
if (leadsResult && leadsResult.length > 0) {
for (var index in leadsResult) {
var leadRecord = leadsResult[index];
log(index + ') ' + leadRecord.Full_Name);
}
} else {
log('No matching records');
}

0 comments on commit 8aac413

Please sign in to comment.