# hdrnote

### hdrnote(userId)

When writing to the notes field in Contact1, Inaport normally creates a header using the logged in user id and the current date/time. This function forces Inaport to use the user id supplied, and defaults to the current date/time.

### hdrnote(userId, date)

When writing to the notes field in Contact1, Inaport normally creates a header using the logged in user id and the current date/time. This function forces Inaport to use the user id and date/time supplied instead..

## Arguments

Argument | Data Type | Description
userId | string | User id to use to create the note header. Should be a valid GoldMine user id
date | date | date/time to mark the header with

## Returns

Nothing. This is a processing instruction, which controls how Inaport formats a note header for GoldMine.

## Description

This function is used to control how Inaport builds a note header, when a note is being added to a contact. Normally when a note field is added, the user id being used by Inaport abd the currnt date time are used to create a header, which looks like:

*** DAVID *** September 24, 2002 at 12:46pm

The hdrnote() function can be used to ensure that the header ha a different user id and date/time. This is useful when importing notes from other packages, and it is important to record who originally created the note and when it was originally created.

Note that if using this function in step 4 of the Import Wizard, you do NOT need to map the result to some field; the processing instruction is silently handled by Inaport

## Examples

Assume that:

1. field UID has "Fred"
2. field Date has the date value 10 July 1997 12:31pm

Example | Returns
hdrnote("BILL") | *** BILL *** September 24, 2002 at 12:46pm
finame(#UID) | *** FRED *** September 24, 2002 at 12:46pm
hdrnote(#UID, #Date) | *** FRED *** July 10, 1997 at 12:31pm

## See Also

lname(), findWord()