The Workday Anypoint Connector facilitates connections between Mule integration applications and Workday by making API calls to the Workday Web Services. This example shows you how to use this connector in an integration application that adds a customer to the Workday Revenue Management Console.
This document assumes that you are familiar with Mule and the Anypoint™ Studio interface. To increase your familiarity with Studio, consider completing one or more Anypoint Studio Tutorials. Further, this example assumes that you have a basic understanding of Mule flows, Mule Global Elements, and Anypoint DataWeave.
This document describes the details of the example within the context of Anypoint Studio.
The application accepts an XML message that containins the required customer information: customer name, status, and category. It parses this XML using the DataWeave transformer and creates a new customer record in a Workday instance.
Complete the following procedure to create, then run this example in your own instance of Anypoint Studio.
adding-a-new-customer-to-workday-revenue-managementproject name, and then select Run As > Mule Application. Studio runs the application on the embedded server.
<?xml version="1.0" encoding="UTF-8"?> <root> <Account> <CustomerName>John Doe</CustomerName> <BusinessEntityName>John Doe</BusinessEntityName> <Customer_Category_Reference_Type>Customer_Category_ID</Customer_Category_Reference_Type> <Customer_Category_Reference_Value>CUSTOMER_CATEGORY-5</Customer_Category_Reference_Value> <Customer_Status_Reference_Type>Business_Entity_Status_Value_ID</Customer_Status_Reference_Type> <Customer_Status_Reference_Value>ACTIVE</Customer_Status_Reference_Value> </Account> </root>
To send this request, use a browser extension such as Advanced Rest Client (Google Chrome), or the curl command line utility.
6. Log in to your Workday account. Navigate to View Customer Report and enter
John Doe in the search field. Verify that the customer was added.
Using a single flow with four elements, this application accepts XML that contains customer information, and then uploads a customer to Workday.
The HTTP connector listens to POST requests at the predefined URL. When such a request arrives, the HTTP connector passes the content to the Anypoint DataWeave transformer. This transformer converts the message into a different XML message that is in a format required for the Workday request. After this conversion, the application uses the Workday Connector to push data into your Workday system. The connector's configuration specifies the operation – Put customer.
Studio includes a feature that enables you to easily export all the documentation you have recorded for your project. Whenever you want to share your project with others outside the Studio environment, you can export the project's documentation to print, email or share online. Studio's auto-generated documentation includes:
Follow the procedure to export auto-generated Studio documentation.