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)

Sales Order - State Code and Status Reason Invoiced ?

(2) ShareShare
ReportReport
Posted on by 387

Hi Guys, 

Can anyone shed any light on the purpose of the state code and status reason of invoiced against a sales order, it appears  that in the system I can never set this, even when fulfilling a sales order I can only set to complete or partial.

 it also appears it does not automatically get set once an invoice associated with an order is marked as paid. 

I have also tried setting this from code using SSIS but it seems to ignore this also. 

What I was wanting to do is when I bring a invoice back from our ERP system for display into CRM to go back and mark the Sales Order as invoiced rather than complete/fulfilled, I guess it doesn't overly matter but it does bring  me to ask the question of why do these options sets values exist? what am I missing?

Can anyone shed any light on it?

 

*This post is locked for comments

I have the same question (1)
  • Suggested answer
    JayRogers Profile Picture
    on at

    Hi

    Setting the status to Invoiced isn't something that happens automatically in CRM from what I can see.

    I am able to set the status to Invoiced using a workflow. I've just created a workflow to set the status to Invoiced and it has worked. I'd say to run a workflow when you bring the Invoice into CRM to update the relevant Order Status to Invoiced.

  • Antbutcher Profile Picture
    387 on at

    Thanks Jay, I guess that is a viable workaround, however, I still don't understand why manually setting the state code and status reason to invoiced in SSIS using SDK doesn't update the value.

  • Antbutcher Profile Picture
    387 on at

    To add to this further what's interesting is I can manually set the below state code and status codes without any issues using SSIS:

    State Code

    0:Active

    1:Submitted

    2:Canceled

    3:Fulfilled

    Status Code

    1:New

    2:Pending

    3:In Progress

    4:No Money

    100001:Complete

    100002:Partial

    However, setting State Code  '4:Invoiced' or status reason as '100003:Invoiced' doesn't make any change to the order record.

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