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
Bob 11Bob 11 

How to add assigned resource to a service appointment

I am trying to figure out a way to add the assigned resource to the detail page of a service appointment. 

I tried creating a visualforce page and using a fieldset but nothing is displayed. 
 
<apex:page standardController="ServiceAppointment">
    <apex:repeat value="{!$ObjectType.ServiceAppointment.FieldSets.SA_Assigned_Resource}" var="f"> 
        <apex:outputText value="{!ServiceAppointment[f]}" /><br/>
    </apex:repeat>
</apex:page>

Is they anyway to display the resource right on the appointment page itself? 
ShivankurShivankur (Salesforce Developers) 
Hi Bob,

You might need to go with custom controller to get the fields from the fieldset and iterate over the response receieved to see the actual data for assigned resource.

See similar implementation done around on below link for reference:
https://www.forcetalks.com/blog/how-to-use-fieldset-in-salesforce-visualforce-pages/

Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.
Bob 11Bob 11
Hi Shivankur,
Thank you for helping!
Is there a way to create a trigger to populate just the resource name  in a text field ?  I'm not sure how to go about that though