Posts

Showing posts with the label salesforce

Lightning input field wont re render

Image
Clash Royale CLAN TAG #URR8PPP Lightning input field wont re render When a Validation error occurs based on a dependent field the field remains highlighted as having an error even though it ends up being submitted successfully. The error highlighting only disappears, when an update is made in the field. Is there a way to perform and update or refresh to ensure all field states are updated. I have tried $A.get('e.force:refreshView').fire(); with no success. $A.get('e.force:refreshView').fire(); By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Sales Force live agent status

Image
Clash Royale CLAN TAG #URR8PPP Sales Force live agent status I have implemented agent live availability according to documentation. Problem is according to documentation it would land in OnResult method but every time response is landed in OnCompleted method, where I am unable to retrieve agent status from async variable. Please Guide me if I am missing something or how to get live agent availability from OnCompleted . My code (called within HomeFragment) private void setupChatButton() { try { // Build a configuration object ChatConfiguration chatConfiguration = new ChatConfiguration.Builder(ORG_ID, BUTTON_ID, DEPLOYMENT_ID, LIVE_AGENT_POD) .build(); // Create an agent availability client AgentAvailabilityClient client = ChatCore.configureAgentAvailability(chatConfiguration); // Check agent availability client.check().onResult((a...