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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to Fulfill salesorder using XRM Tooling

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm migrating data into Dynamics 365 (in O365)

I'm trying to Fulfill my imported Orders using XRM Tooling library. I'm using UpdateStateAndStatusForEntity method.

Unfortunately it generates the error:

This message can not be used to set the state of SalesOrder to Fulfilled.  In order to set state of SalesOrder to Fulfilled, use the FulfillSalesOrderRequest Request message instead.

But I cannot see how to create FulfillSalesOrderRequest as it seems it's part of CRM SDK library and not XRM library.

How to solve this?

Thanks in advance.

Mariusz

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    JohnAnonymous Profile Picture
    5,241 on at
    RE: How to Fulfill salesorder using XRM Tooling

    Hi,

    Have you seen the documentation? msdn.microsoft.com/.../microsoft.crm.sdk.messages.fulfillsalesorderrequest.aspx

    There's a sample on how to use this request.

  • Suggested answer
    Emre GULCAN Profile Picture
    2,379 on at
    RE: How to Fulfill salesorder using XRM Tooling

    Hi,

    An addition to Martijn's answer, you can use XrmLibrary (3rd party library) to fulfill your orders just 2 lines code below.

    SalesOrderHelper salesOrderHelper = new SalesOrderHelper(_organizationService);
    salesOrderHelper.Fulfill(Guid.Parse("your salesorder ID"), SalesOrderHelper.SalesOrderFulfilledStatusCode.Completed);

    or for detailed close

    salesOrderHelper.Fulfill(Guid.Parse("your salesorder ID"), SalesOrderHelper.SalesOrderFulfilledStatusCode.Completed, 0, "OrderClose subject", "Order close description", DateTime.Now);
    


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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans