Hap,
&Profile(s)
Two related macros:
&Profile: returns the first matching profile record for the selected contact.
&Profiles: returns all detail records for the selected contact.
Both of these macros take optional parameters. Each parameter must be separated by a period (.). Although GoldMine does not typically pass parameters with a DDE macro, the structure of &Profiles must be different for DDE fields in Microsoft Word document templates, which do not take DDE commands.
The following examples show the syntax for the &Profile(s) macros:
&Profile Example 1
&Profile.ProfileName.Reference.Flags
Retrieves the first profile that matches the ProfilleName and Reference.
&Profiles Example 1
&Profiles.ProfileName.Reference.Flags
Retrieves all profiles that match the ProfileName and Reference.
In both of the above examples, the Reference parameter is optional. If passed, the Reference parameter acts as a "begin with" condition on the profile reference. If the Reference parameter is not passed, all ProfileName profiles are evaluated.
The optional Flags parameter is also optional. The Flags parameter has the following values:
2 returns the extended profile fields
4 returns the ProfileName and Reference
The &Profile(s) macro can easily fill in a Word table with the selected contact’s profile information because tabs separate each field value, and a CR/LF separates each profile record.
&Profile Example 2
The following example returns the first e-mail address of the contact:
&Profile.E-mail Address
&Profiles Example 2
The following example returns all the computer profiles that begin with the word notebook:
&Profiles.Computer.Notebook
&Profile Example 3
The following examples use the Flag parameter to specify the profile fields to return:
&Profiles.Computer.Notebook
Notebook ThinkPad 770|
Notebook Compaq Elite|
Notebook Dell 1200|
&Profiles.Computer.Notebook.2
Computer|Notebook ThinkPad 770|
Computer|Notebook Compaq Elite|
Computer|Notebook Dell 1200||
&Profiles.Computer.Notebook.4
Computer|Notebook ThinkPad 770|IBM|233Mz|
Computer|Notebook Compaq Elite|Compaq|200mz|
Computer|Notebook Dell 1200|Dell|166mz|
Regards,
Richard.
PRIOR Analytics UK