Skip to main content

After creating Service Report from Field Service Mobile App. Is it possible to change Service Appointment Status "Completed" and everything such as Service Appointment and Work Order Read Only?

For Service Report creation I m using the standard Create Service Report in the Overview screen of the mobile app.

@* Salesforce Field Service *@Tokopedia Salesforce Developer

3 respuestas
  1. 29 jun 2022, 2:57 p.m.

    There isn't any way that I'm aware of to manipulate the standard steps that the out of the box Create Service Report action goes through.

     

    Along with what Benazir mentioned you could have a record triggered flow kick off based on Service Report generation, which then you could use to query the RelatedRecord (should be the SA), then update the status to Complete and then even query and update the Share Records on both the Work Order and Service Appointment to read only.  There would considerations with that approach such as the flow would only kick off once the Service Report is committed to the database, so in order for that update to happen instantly the user would need to be online.  You would also have to be mindful of caching if updating the share records.  The User might still be able to attempt an update to say the Work Order and/Service Appointment but would hit an error when trying to sync that change to the database due to the read only nature of the records.

     

    You would also have to evaluate the above strategy compared to what sharing you are using today for the Work Orders and Service Appointments (OOTB Field Service Sharing, Sharing Rules, Share Record creation, etc...)