Posts

Showing posts with the label close

Salesforce Fact #926 | Close custom action popup in dispatcher console

In order to close the custom action modal from vf page in field service dispatcher console, we need to use parent.postMessage('closeLightbox','*'). Reference:  https://developer.salesforce.com/docs/atlas.en-us.field_service_dev.meta/field_service_dev/fsl_dev_code_samples_dispatcher.htm

Salesforce Fact #822 | Validation on case closure

Image
Suppose we want to add a validation that a case can only be closed if the current user is the owner or he is part of the owner queue. We can check the current user id against the owner id or if there is a row present in GroupMember object for this user. The validation be implemented in record-triggered flow using the custom error component. Attached are the screenshots.

Salesforce Fact #661 | Close related opportunities from screen flow

Image
We can create a screen flow to mark the related opportunities as closed won/lost from the account detail page. Attached are the screenshots.