Microsoft Dataverse - A Template to convert Sales Order to Invoice
Discover how to streamline your invoicing process with this customizable parameterization template, designed to convert Dataverse sales orders into invoices seamlessly.
Use the following steps to copy and paste the below template into the COZYROC JavaScript Task/Component.
1 - Drag and Drop the COZYROC JavaScript Task into the Control Flow canvas or the COZYROC JavaScript Component into the Data Flow canvas. Select REST Web Service Request Task from the drop-down list for the option Choose a pre-built script and click on the OK button, as shown in the below screen capture:
2 - Copy the below parameterization template code:
Convert sale order to invoice
- <?xml version="1.0" encoding="utf-16"?>
- <Parameters>
- <RestConnection>Dataverse</RestConnection>
- <Method>POST</Method>
- <Url>/ConvertSalesOrderToInvoice</Url>
- <ContentType>application/json</ContentType>
- <IsBodyFile>False</IsBodyFile>
- <Body>
- <![CDATA[{
- {
- "SalesOrderId": "{[saleOrderGuid]}",
- "ColumnSet": {
- "AllColumns": false,
- "Columns": [
- "invoiceid"
- ]
- }
- }
- }]]>
- </Body>
- </Parameters>
And then click on the Paste button in the COZYROC JavaScript Task/Component, as shown in the below screen capture:
Note: Make sure that the parameter Method is set to POST