Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Addressbook.multivalue.addAddress
Adds an address and its label to a multivalue list.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Addressbook | 5.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Deprecated
This function was deprecated. Use Contacts functions instead.
MBS( "Addressbook.multivalue.addAddress"; label { ; street; zip; city; country; countrycode; state } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
label | The label to associate with the value. | "Work" | |
street | The street for the address. Can be empty if unknown. | "Main Street 123" | Optional |
zip | The zip code for the address. Can be empty if unknown. | "12345" | Optional |
city | The city for the address. Can be empty if unknown. | "Springfield" | Optional |
country | The country for the address. Can be empty if unknown. | "Germany" | Optional |
countrycode | The country code for the address. Can be empty if unknown. | "US" | Optional |
state | The state for the address. Can be empty if unknown. | "CA" | Optional |
Result
Returns identifier or error.
Description
Adds an address and its label to a multivalue list.Only useful for addresses.
Returns the new identifier if value is added successfully; otherwise, nil.
Values which are empty text are not added to the address.
Examples
Creates a new address:
MBS( "Addressbook.multivalue.addAddress"; "AddressHomeLabel"; "Main Street 123"; "12345"; "Springfield"; "USA" )
Adds address without zip code:
MBS( "Addressbook.multivalue.addAddress"; "Work"; "Hlíðarbyggð"; ""; "Garðabær"; "Island"; ""; "IS" )
See also
- Addressbook.addRecord
- Addressbook.multivalue.addValue
- Addressbook.multivalue.identifiers
- Addressbook.multivalue.labels
- Addressbook.multivalue.New
- Addressbook.multivalue.values
- Addressbook.NewPerson
- Addressbook.save
This function checks for a license.
Created 7th March 2015, last changed 14th July 2022
Addressbook.multivalue.New - Addressbook.multivalue.addValue
