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.

Adding a child record

Featured Replies

I have two tables:

- email addresses

- notes.

I have set up a layout with notes as a portal, and using a status on the email address I'd like to be able to add a note to the portal that is address is invalid and it's being removed from the record.

Every way I try to script this I can't get a note record written in the portal if the portal does not already have a note in it.

I have checked to see if you allow creation of record is checked off (though on the relationship table these two tables are not directly related)

Any thoughts about what step I am most likely missing?

I've tried both go to portal row first and next, and then replace the field "Note" with a calculation. I get an error message:

"This operation cannot be performed because one or more required related records are not available and cannot be created."

I know conceptually the problem is that there is no Note record to write to, but can't figure out how to add a new record in the portal. When I use the script step of new record it adds a parent record.

Thanks in advance for your help.

on the relationship table these two tables are not directly related

You need to explain how these tables are related, then.

In general, it's much more convenient to have a script operate in the related table itself, instead of fiddling with portal rows.

  • Author

The relationship is through two other tables. The relationship table it is so packed because I use about 15 tables for various kinds of info.

There is a central table called People. (The hub)

People is related directly to Notes (spoke)

People is related directly to Emails (spoke)

Bad Emails (spoke once removed) is related directly to Emails

Bad Emails<->Emails<->People<->Notes

I am working in bad emails and writing something to Notes.

I can swap the whole layout do something directly in Notes add a new record based on an id from Bad Emails and write what I need, but I thought there might be a simple way to do this with the portal.

Thanks.

You cannot create a new record in a portal to Notes on a layout of Bad Emails, unless the current record in Bad Emails already has a related record in People (through Emails).

can swap the whole layout do something directly in Notes add a new record based on an id from Bad Emails and write what I need

That's what I would do. Portals are for users, not for developers. Note, however, that your real issue will still be there. If you don't have a related Person for the current record in Bad Emails, then how will the script know to whom should the new record in Notes be related to?

  • Author

You are right.

Bad emails could relate directly to People, but it doesn't relate to Notes (not yet). This is the one thing I do with enough regularity that I need to get a good technique that I consistently re-use.

Thanks again.

No, no, no... The message you are getting indicates that Bad Emails does NOT relate to People. There is either no Email record in between, or the Email record doesn't have a related Person. That's exactly what it says.

  • Author

You are right. The relationship between BadEmails and Email was not working, because the email record had been deleted and moved to BadEmails. Once I moved the relationship directly to people it worked just fine.

Thank you for pointing that out.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.