this is using v10 with the on demand product.
To find a link name:
From the application:
Go to the module in question in Studio, in this case Opportunities
Look at the Relationships
Find the one you are interested in and use the name: opportunities_assigned_user
On the file system:
If you have access to the file system you can also go to the module's vardefs, or vardef Extensions if it's a custom relationship, and look for the relationship to find the link name.
In this case you will find:
'opportunities_assigned_user' => array(
'lhs_module' => 'Users',
'lhs_table' => 'users',
'lhs_key' => 'id',
'rhs_module' => 'Opportunities',
'rhs_table' => 'opportunities',
'rhs_key' => 'assigned_user_id',
'relationship_type' => 'one-to-many',
Great tips Francesca Shiekh!
My go-to way to quickly find link field names is to look at the "combined" vardefs for the module that you can find on the cache folder of the specific module.
If you are on-demand only, you can easily call the API endpoint /rest/v10/metadata?type_filter=modules&module_filter=Opportunities (where the Opportunities filter is to make sure you only get that module and not all of them).
Got it working! Thanks!
Retrieving data ...