In Field Maps I'm trying to use the OBJECTID field of a selected polygon for a unique ID.
The final code would look like this:
@Baisuzhen - Are you able to give us more detail on the setup of the layers?
Are you trying to calculate the attribute in the child record?
Also is the child record a table?
I would use something else as a key. I like to calculate it based on some attributes. If you ever export records, reload from backup, push to SDE, etc all your objectids will break and it will be impossible to fix.