Dear Support Team
It is request to please guide me how to find the following through JavaScript:
- Determine whether the current record is a new record on Form Load.
Look forward to kind reply.
Thanks
*This post is locked for comments
Dear Support Team
It is request to please guide me how to find the following through JavaScript:
Look forward to kind reply.
Thanks
*This post is locked for comments
Dear All Friends
I am very thankful to (Uma Maheswaraiah Dasari, LMP and Oliver) for kind help and cooperation.
Kind Regards
Anil
hi.. this is the community, not the support team
is this within CRM or the Portals?
if it is CRM you can get by the getFormType: docs.microsoft.com/.../getformtype
if it is Portal you actually have in your Entity Form if it is an insert or update.. so you already know the information.. not sure what's the issue
var formContext = ExecutionContextObj.getFormContext(); // ExecutionContextObj is the event executioncontext
if(formContext.ui.getFormType()==1) // 1 is for create
{
}
Hi Anil,
What do you mean by new record? A record that was recently created? You can get the record 'createdon' and get the current date and time then compare.
You can also use getFormType. If the form is "Create" = New or "Update" = existing.
You can refer to this microsoft page for more info.
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,409
Most Valuable Professional
nmaenpaa
101,156