Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Replace Field Contents fails with Related Records

Featured Replies

I'm finding that "Replace Field Contents", when chosen based on a field on a layout that is actually a related record, does not seem able to create related records.

I'm trying to populate a Join table and it would seem that the easiest way to do this would be to (A) find all records without children, (: Replace Field Contents with the key field in the related table (which should create all the child records and populate them with the right key field).

When I do this, I get the "Replacing field contents" dialog box, but nothing happens.

I can do a work-around with a looping script using "Set Field Contents" and this works fine, but seems less elegant to me.

Anyone else found a way to bulk-create child records without a looping script?

  • Author

Followup: It appears that the behavior of "Replace Field Contents" is such that if the related records don't exist, they will not be created. I suppose one could argue this is a feature, but it seems more like a bug to me...

Replace Field Contents does just what it says. The name implies that the field already exists. What you want to do is "Import". That is the step that creates records.

[color:"blue"] Hi Fenton,

I was going to respond with a similar answer to what you gave in your first two sentences. However, I'm always relectent to give an answers as it would apply to earlier versions than v7.

[color:"blue"]

Hi xochi,

To add a little to what Fenton said.

In the Import Dialog Box, there is an option to update existing records, and add new records. Maybe that is the "Replace" you were looking for?

Lee

"... populate a Join table and it would seem that the easiest way to do this would be to (A) find all records without children, (: Replace Field Contents with the key field in the related table (which should create all the child records and populate them with the right key field)."

Make sure your relationship has "Allow Creation of Related" then simply set a related field (using Set Field [Related::whatever field ] with whatever you wish. If a matching (on ID) record doesn't exist, it will automatically be created and the related ID populated when you set a non-ID related field.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.