+ Start a Discussion
Varun Sharma 150Varun Sharma 150 

Getting List of Rule Violations on Gantt

Hi Friends
I am looking to know if there are violations on the Gantt for a specific horizon. I see that whe we make a change to Gantt, it calls the CheckRules Method after update and paints the Gantt for any violations. I tried to use it as rest based API but could not find any success with that.

This is the payload for request for checking if there is a violations on the Gantt for Service Apps which are in Data Field.
{"action":"FSL.ctrl001_Gantt","method":"checkRules","data":[["08p3h0000009GiIAAU","08p3h0000009GicAAE","08p3h0000009GidAAE","08p3h0000009GihAAE","08p3h0000009GimAAE","08p3h0000009GiIAAU","08p3h0000009GicAAE","08p3h0000009GidAAE","08p3h0000009GihAAE","08p3h0000009GimAAE","08p3h0000009L5aAAE","08p3h0000009L5aAAE","08p3h0000009L5aAAE"],"a0Y3h000000U2U3EAK"],"type":"rpc","tid":224,"ctx":{"csrf":"VmpFPSxNakF5TUMwd05DMHdOVlF3T0RveE56bzFNQzQwTnpOYSxsMnBNdU9vUzdMTkZmdUV4clZkS2RFLE9UYzBaalpo","vid":"0663h000001Dh0k","ns":"FSL","ver":48,"isdtp":"p1"}}

I tried to check the method called by the product using this URL

https://fsl.na111.visual.force.com/apexremote and it showed me missing details. 
[{"statusCode":500,"type":"exception","ref":false,"action":"Unknown","method":"Unknown","message":"Content type 'null' not supported for Visualforce remoting request. Expected 'application/json'.","where":"","data":"","vfTx":true,"vfDbg":true}]

I am not sure on how to invoke check rules and gain results from there.

Please suggest.
 
VinayVinay (Salesforce Developers) 
Hi Varun,

Try to check below working examples and appexchange tools 'Gantt Chart'.

http://www.jitendrazaa.com/blog/salesforce/gantt-chart-in-salesforce-using-jquery-and-json/
https://help.salesforce.com/articleView?id=pfs_gantt.htm&type=5
https://developer.salesforce.com/docs/atlas.en-us.field_service_dev.meta/field_service_dev/fsl_dev_code_samples_dispatcher.htm
https://success.salesforce.com/answers?id=90630000000gmO9AAI
https://aprika.com/salesforce-gantt-chart

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar