Microsoft Dataverse - A Template to Fulfilled Sales Order as PARTIAL or COMPLETE
Learn how to effectively manage your sales order by utilizing this template designed for fulfilling sales orders as either partial or complete. By leveraging this template, you can accurately handle the fulfillment of your sales orders.
Fulfillment of sales orders as Complete
- <?xml version="1.0" encoding="utf-16"?>
- <Parameters>
- <RestConnection>Dataverse</RestConnection>
- <Method>POST</Method>
- <Url>/salesorders/Microsoft.Dynamics.CRM.FulfillSalesOrder</Url>
- <ContentType>application/json</ContentType>
- <IsBodyFile>False</IsBodyFile>
- <Body>
- <![CDATA[{
- "OrderClose": {
- "@odata.type": "#Microsoft.Dynamics.CRM.orderclose",
- "salesorderid@odata.bind": "/salesorders([salesorderId])",
- "description": null,
- "ownerid_orderclose@odata.bind": "/systemusers([ownerId]])",
- "statecode":"3"
- },
- "Status": 100001
- }]]>
- </Body>
- <Transform>function transform(content) { return content; }</Transform>
- <IsResultFile>False</IsResultFile>
- <IsErrorResultFile>False</IsErrorResultFile>
- <Retry>False</Retry>
- <Condition>function transform(result) { return false; }</Condition>
- <Pause>10</Pause>
- <MaxRetries>1000</MaxRetries>
- </Parameters>
Fulfillment of sales orders as Partial
- <?xml version="1.0" encoding="utf-16"?>
- <Parameters>
- <RestConnection>Dataverse</RestConnection>
- <Method>POST</Method>
- <Url>/salesorders/Microsoft.Dynamics.CRM.FulfillSalesOrder</Url>
- <ContentType>application/json</ContentType>
- <IsBodyFile>False</IsBodyFile>
- <Body>
- <![CDATA[{
- "OrderClose": {
- "@odata.type": "#Microsoft.Dynamics.CRM.orderclose",
- "salesorderid@odata.bind": "/salesorders([salesorderId])",
- "description": null,
- "ownerid_orderclose@odata.bind": "/systemusers([ownerId]])",
- "statecode":"3"
- },
- "Status": 100002
- }]]>
- </Body>
- <Transform>function transform(content) { return content; }</Transform>
- <IsResultFile>False</IsResultFile>
- <IsErrorResultFile>False</IsErrorResultFile>
- <Retry>False</Retry>
- <Condition>function transform(result) { return false; }</Condition>
- <Pause>10</Pause>
- <MaxRetries>1000</MaxRetries>
- </Parameters>