Hi Krista!
The stuff I posted here really was a jumping-off point (after I lost interest… sorry…) so it won’t be very robust!
Importantly, this is for the ReportsToId field that is a standard field on the Contact record - be sure to add it to your Skuid contacts model
Further notes to get this to work:
- Create a model which has the related contacts in making sure it includes Id, name and ReportsToId fields
- Amend the javascript I added in my post in two places. Firstly, where it says "Grab your Skuid model" swap 'Employees' (in parentheses) with the name of the model you created in (1). Secondly, change YOURSALESFORCEURL.COM for your Salesforce url (e.g. acme.my.salesforce.com)
- Add the external resource url as per screenshot below
- Add this to a page by adding a Template component (allow HTML) with the following template:
<div id="chart_div"></div>
As for linking to Salesforce’s own org chart - if you use this link in a redirect button on the contact:
https://YOURSALESFORCEURL.com/cntc/contact_hierarchy.jsp?id={{{Id}}}
Be sure to change {{{Id}}} to whichever the Id field is of the contact in the model, it might, for example, be {{{ContactId}}}. See second screenshot below: