newaddlink
Description
newaddlink creates a new addlink record. The addlink table is needed because there is a many-to-many relationship between guests and addresses (a single guest can have many addresses or a single address can be associated with many guests). Passing a guest_no and an address_id is required by the database.
Input fields
XML tag | Description |
<guest_no> | Guest number. |
<address_id> | Address ID. |
<other field> | Optional. Any other field that exists in the addlink table – e.g., <city>. The contents of this tag are written into the corresponding field. |
Return fields
XML tag | Description |
<addlink_id> | Address link ID. |
Examples
Example invocation:
<func>newaddlink</func><address_id>3024001</address_id><guest_no>26000001</guest_no>
Example return string:
OK :<addlink_id>29000001</addlink_id><address_id>3024001</address_id>
<guest_no>26000001</guest_no>
See also