Sometimes, we may need to set a default value for the entity field in portal forms. In this post, we are going to discuss, how we can leverage entity form metadata to fulfill this requirement.
RequirementIdentify if the case is created from Dynamics 365 Portal.
SolutionIf you have worked with custom service module earlier then you might be aware of the Case Origin (caseorigincode) field which is an option set field. This field is used to configure case origin, for example, if the case is reported through phone, email, web etc. We can reuse this field to identify if the case is reported from the Customer Portal. Let’s see how we can implement this using the following steps,