Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Is it possible to trigger a workflow before saving a record?

(0) ShareShare
ReportReport
Posted on by 2,665

I want to trigger a workflow to send an email before saving a record.

For example, I am entering all the details into the record and also there is a field called 'Owner' which initially will be current user who is entering the details. But before saving the record, while I am entering all the details I change the Owner field also and I want to trigger the workflow here which can send email to the changed new Owner. So after changing the Owner I want to save the record. And in the assignment section I want to see the email activity. I've written the workflow to trigger when record is created and when record is assigned. 

It is triggering after saving the record I mean whenever Owner field is updated but not before saving the record. Can someone please answer this?

Thanks

*This post is locked for comments

  • crmprogrammer2013 Profile Picture
    2,665 on at
    RE: Is it possible to trigger a workflow before saving a record?

    Hi Magor,

    I am working in a test environment, so I am not bothered about sending emails. But I want to see if I can trigger the workflow before creating a record like 'Start When' will be 'Record Assigned'. Even if an email is not sent atleast it should create an activity in 'Assignment' section right? Please correct me if I am wrong.

    Thanks

     

  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at
    RE: Is it possible to trigger a workflow before saving a record?

    Hello Roxana,

    To chip in on the error you posted, Cannot open Sql Encryption Symmetric Key because Symmetric Key password does not exist in Config DB.", this hints to database encryption issues. Are you able to send emails, etc. and able to access the encrypted password fields in CRM?

  • crmprogrammer2013 Profile Picture
    2,665 on at
    RE: Is it possible to trigger a workflow before saving a record?

    I don't think it is working. I followed your article but as soon as I activate the workflow the 'Start When' - 'Record Fields Change' checkbox getting unchecked. And also the Before is changing to 'After'. I don't know why! Anybody experienced this before?

    Thanks

  • Deepesh161 Profile Picture
    6,317 on at
    RE: Is it possible to trigger a workflow before saving a record?

    For the error you are getting refer here: dynamicsofdynamicscrm.wordpress.com/.../crm-2013-create-email-error-cannot-open-sql-encryption-symmetric-key-because-symmetric-key-password-does-not-exist-in-config-db

    It lets me save and activate. I verified it in CRM Online environment.

  • crmprogrammer2013 Profile Picture
    2,665 on at
    RE: Is it possible to trigger a workflow before saving a record?

    No it is not working Deepesh.

    Its not letting me to change the Start When to Before 'Record fields change'. After activating the workflow it is reverting back to 'After'. Also I am seeing this error when I try to trigger the workflow: "

    Cannot open Sql Encryption Symmetric Key because Symmetric Key password does not exist in Config DB."

    Thanks

  • Suggested answer
    Deepesh161 Profile Picture
    6,317 on at
    RE: Is it possible to trigger a workflow before saving a record?

    Hi,

    Did you try this(see highlighted in green):

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,255 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,984 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans