Skip to content

Commit 816371e

Browse files
author
Johanna Hemminger
authored
Merge pull request mendix#5713 from mendix/jh-pubrest-error
Add info about error
2 parents f7995bd + 44752b5 commit 816371e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

content/en/docs/howto/integration/publish-rest-service.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ To be able to use the data from your model in the REST service, you need to crea
8181
{{< figure src="/attachments/howto/integration/publish-rest-service/AddOperationMicroflow.png" >}}
8282

8383
7. Click **Show** to start editing the newly created microflow.
84-
8. Add two parameters: **httpRequest** and **OrderID**.
84+
8. Add two parameters: **httpRequest** and **OrderID**.
85+
86+
{{% alert color="info" %}}These parameters might be added automatically, along with an **httpResponse** paramter. If you create an **Export Mapping** in steps 11-19 below, you will need to remove the **httpResponse** parameter to avoid getting any errors.{{% /alert %}}
87+
8588
9. Add an action to the microflow to convert the **OrderID** variable (string) to an integer variable. This is needed to be able to search for the OrderID (autonumber).
8689

8790
{{< figure src="/attachments/howto/integration/publish-rest-service/ConvertOrderID.png" >}}
@@ -124,6 +127,8 @@ To be able to use the data from your model in the REST service, you need to crea
124127
19. Open the end activity in your microflow and select **$NewHttpResponse** as the return value. You should have no errors, and your microflow should look like this:
125128

126129
{{< figure src="/attachments/howto/integration/publish-rest-service/CompleteMFNoErrorHandling.png" >}}
130+
131+
If you have error CE0346, remove the **httpResponse** parameter that may have been automatically created in step 4.2.7.
127132

128133
### 4.3 Viewing the App{#viewing}
129134

0 commit comments

Comments
 (0)