function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Robert RobinsonRobert Robinson 

Syntax on custom button/link

I have two custom Objects Properties and Units. I am attempting to create a URL link from a Unit page which reference a field (BU Code) on the Property object. Using the Custom Button or Link Page, my formula looks like this:
https://vantage.welltower.com/v2/mob#property/{!Property__c.BU_Code__c}
The formula saves but does not insert the desired value into the URL (note that this URL worked with a different value which has changed)
The formula shown above runs contrary to the standard SOQL query, because the query would be written
"Select Property__r.BU_Code__c from Unit__c"
However, when using the Custom Button tools, one selects the Field Type (Object) and Field, and the formula returned does not include the related reference (r) that is used in the SOQL statement.
I am wondering if the rules are indeed different for custom button formulas and related references cannot be used?
SwarnaSankhaSinghSwarnaSankhaSingh
Hi Robert,

Did you find a fix for your issue?

Kind Regards,
Swarna.