Dynamics 365 Form Types and Their values:
getFormType (Client API reference)
Gets the form type for the record.
Syntax
formContext.ui.getFormType();
Return Value
Type: Number
Description: Form type. Returns one of the following values
Note
Quick Create forms return 1.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui/getformtype