Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Addressbook.searchElementForConjunction
Joins several search elements.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Addressbook | 5.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Deprecated
This function was deprecated. Use Contacts functions instead.
Parameters
Parameter | Description | Example |
---|---|---|
conjunction | The logical operator with which to combine the search elements. Can be "AND" or "OR". | "AND" |
SearchElements | List of search element IDs. |
Result
Returns ID or error.
Description
Joins several search elements.Returns a compound search element, created by combining the search elements in an array with the given conjunction.
Examples
Find people with last name and email matching:
Set Variable [$e1; Value:MBS( "Addressbook.searchElementForProperty"; "person"; "LastNameProperty"; ""; ""; "Schmitz"; "ContainsSubStringCaseInsensitive" )]
Set Variable [$e2; Value:MBS( "Addressbook.searchElementForProperty"; "person"; "EmailProperty"; ""; ""; "monkeybread"; "ContainsSubStringCaseInsensitive" )]
Set Variable [$e; Value:MBS( "Addressbook.searchElementForConjunction"; "and"; $e1 & ¶ & $e2 )]
Set Variable [$records; Value:MBS( "Addressbook.recordsMatchingSearchElement"; $e)]
Set Variable [$record; Value:GetValue($records; 1)]
Set Variable [$name; Value:MBS( "Addressbook.record.displayname"; $record )]
Show Custom Dialog [$name]
See also
- Addressbook.record.displayname
- Addressbook.recordsMatchingSearchElement
- Addressbook.searchElementForProperty
Blog Entries
This function is free to use.
Created 26th October 2015, last changed 26th October 2015
