web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Event for form is saved first time in dynamics crm

(0) ShareShare
ReportReport
Posted on by

I want to fire some actions after form is saved only first time using javascript. Not in every time when form will save.

Please suggest if there is some event or other solution .

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Felippe Profile Picture
    796 on at

    When you say, first time, means the moment at record creation ?

    If it is, you can create a plugin step at PostCreate moment to perform your desired actions on the record.

    If your desired actions are intended exclusively for the form, like show or hide some fields if are the first time, you can use some field value to validate this rule.

    Create a js code on onLoad for this form to check the value of this field.

    On the onSave event you can set some another value to this field. After the first time, your conditions for this field will be not match.

    If this solves, please "Like" and mark as "Verified Answer"

  • Suggested answer
    Community Member Profile Picture
    on at

    If you mean "first time" like on create, then simply check current form type onSave event.

    msdn.microsoft.com/.../gg327828.aspx

    if(Xrm.Page.ui.getFormType()==1) //1 - create

    {

      //run your code

    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans