Relookup Field Contents
Purpose 
Copies new values from the lookup source field into the records that make up the current found set.
Format 
Relookup Field Contents [No dialog; <table::field>]
Options 
 •
Perform without dialog prevents a dialog box from displaying when the script step executes that lets the user confirm field information.
 •
Select Go to target field or click Specify to specify the field that is the target of the relookup operation. FileMaker Pro moves the cursor to the field you specify. This must be the match field for the relationship upon which the lookup is based, not the Lookup source or target field. If no field is selected, Relookup Field Contents returns an error code that can be captured with the Get(LastError) function.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
Partial 
FileMaker Go 
Yes 
Custom Web Publishing 
Partial 
FileMaker WebDirect 
Yes 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
 •
 •
 •
 •
Example 1 
Finds records that have matching values in the Customer ID field, then updates all lookups in the found set based on the relationship that uses Customer ID as a match field.
Go to Layout [“Invoice Details"]
Find Matching Records [Replace; Invoices::Customer ID]
Relookup Field Contents [No dialog; Invoices::Customer ID]
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)