web
You’re offline. This is a read only version of the page.
close
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,634

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

I have the same question (0)
  • Suggested answer
    Neil Parkhurst Profile Picture
    10,727 User Group Leader on at

    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?

  • Mohsin Ali Profile Picture
    3,634 on at

    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
    10,727 User Group Leader on at

    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.

  • Community Member Profile Picture
    on at

    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

  • Community Member Profile Picture
    on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans