Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Update invoice using Dynamics CRM workflow when its status reason is changed to Canceled

(0) ShareShare
ReportReport
Posted on by 3,614

I have activated workflow that kept an eye on the status reason, as soon as status reason is set to Canceled the workflow sets Process execution time to Canceled Date (Custom date field). But it seems not working and from System jobs it shows that The object cannot be updated because it is read-only.


Any suggestion?

*This post is locked for comments

  • RE: Update invoice using Dynamics CRM workflow when its status reason is changed to Canceled

    Hi Mohsin
    Tenfold, a third-party CTI application, can help you integrate MS Dynamics for a smooth sales workflow. It is registered as an Oracle partner and supports Asterisk. Main features include click to dial, caller ID and call logging. www.tenfold.com/.../dynamics

  • RE: Update invoice using Dynamics CRM workflow when its status reason is changed to Canceled

    Hi Mohsin

    Tenfold, a third-party CTI application, can help you integrate MS Dynamics for a smooth sales workflow. It is registered as an Oracle partner and supports Asterisk. Main features include click to dial, caller ID and call logging. www.tenfold.com/.../dynamics

  • Suggested answer
    Neil Parkhurst Profile Picture
    Neil Parkhurst 10,727 User Group Leader on at
    RE: Update invoice using Dynamics CRM workflow when its status reason is changed to Canceled

    I have tried this myself as a quick test .... and realised it isn't as simple as I first thought! When the workflow runs real-time before the status isn't yet "canceled". And of course by the time it is you go back to your original problem of not being able to update. (I even tried having the workflow change the status and set it back but that creates an end less loop error.)

    So an alternative approach is needed. Some suggestions;

    1. If you only need the date time of the cancelation. Can't you use the modified on date? As that won't change after canceled.

    2. Create a custom approach to cancelation. That will do the updates you need and only afterwards actually change the status. (As you cancel from a ribbon button you'd effectively replace that with a custom button.)

    3. Maybe alternatively consider having a custom entity that is written to when the status changes. (Via a workflow.) So you could keep an audit of the timing of all status changes. Or just cancelation if needed.

  • Mohsin Ali Profile Picture
    Mohsin Ali 3,614 on at
    RE: Update invoice using Dynamics CRM workflow when its status reason is changed to Canceled

    I tried with Real Time Workflow, Status changed, Run before but no luck. Following is the skeleton of my workflow. Also, the WF is activated but I cannot see anything in system jobs about the execution of the workflow.

    Workflwo.JPG

  • Suggested answer
    Neil Parkhurst Profile Picture
    Neil Parkhurst 10,727 User Group Leader on at
    RE: Update invoice using Dynamics CRM workflow when its status reason is changed to Canceled

    Sounds like you are running the workflow in background and this means that by the time the update is done to the invoice it has become readonly.

    Have you tried making your workflow run realtime and execute "Before" status change?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans