Help with linking Account to SFDC

  • 1
  • Question
  • Updated 8 months ago
  • Answered
Hello! If I have a contact based model and within that model I have the Account Name but want to have a link to that Account page in SFDC, how would I do that? Thanks so much!
Photo of Kristyn Melanson

Kristyn Melanson

  • 172 Points 100 badge 2x thumb

Posted 8 months ago

  • 1
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
The following XML shows how this is accomplished. We're using the AccountID for a reference instead of drilling down to have the name. This will make the title a link that will open the account page.



<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" useviewportmeta="true" showheader="false">
    <models>
        <model id="Contact" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="Contact">
            <fields>
                <field id="AccountId"/>
                <field id="Account.Name"/>
                <field id="Name"/>
            </fields>
            <conditions/>
            <actions/>
        </model>
    </models>
    <components>
        <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" alwaysresetpagination="false" createrecords="true" model="Contact" buttonposition="" mode="read" allowcolumnreordering="true" responsive="true" uniqueid="sk-3e7Xel-233">
            <fields>
                <field id="Name" hideable="true" uniqueid="fi-3e7ZBI-250"/>
                <field id="AccountId" hideable="true" uniqueid="fi-3e7ZBI-251" valuehalign="" type=""/>
            </fields>
            <rowactions>
                <action type="edit"/>
                <action type="delete"/>
            </rowactions>
            <massactions usefirstitemasdefault="true">
                <action type="massupdate"/>
                <action type="massdelete"/>
            </massactions>
            <views>
                <view type="standard"/>
            </views>
        </skootable>
    </components>
    <resources>
        <labels/>
        <javascript/>
        <css/>
        <actionsequences uniqueid="sk-3e7Ses-218"/>
    </resources>
    <styles>
        <styleitem type="background" bgtype="none"/>
    </styles>
</skuidpage>