The basic examples of Lookup in salesforce with Mulesoft on how to use dataweave for lookup into another flow and also includes how to insert data in lookup data type.
We have created a custom field of type “lookup” in salesforce and data is inserted in that field. we have used mule as IDE. Mule project is created first, then create flow in Mule Configuration file.
We have 2 flows: sales force lookup flow and sales force lookup Flow1
- Here Transform message is used to map input file and salesforce data.
- Transformer Message will call another flow(salesforcelookupFlow1) and will retrieve the records from Salesforce and will return to its own flow(salesforcelookupFlow) and will insert record in the lookup field.