SlideShare a Scribd company logo
1 of 10
DataWeave with flowref lookupDataWeave with flowref lookup
2
Connect with Salesforce
At times, you may find that you need to connect one or more of your
organization's on-premise systems with a SaaS application such as
Salesforce. Ideally, these independent systems would talk to each other
and share data to enable automation of end-to-end business processes.
Use Mule applications to facilitate communication between your on-prem
system(s) and Salesforce. (Though this use case does not extend as far,
you can also use Mule to facilitate communication between SaaS
providers.)
3
DataWeave and FlowRefLookup
Beyond transforming and mapping data from one format to another, you
can use an Anypoint DataWeave Transformer to access other flows in a
Mule application to acquire additional information. Use a flow lookup to
acquire information outside the message, then append it to the payload.
4
Steps
Log in to your Salesforce account, then navigate to the Setup tab. Now
click on Customize -> Accounts -> Fieldsunder the Build section on the
left side of the page.
Now click on New under the Account Custom Fields & Relationships
section.
In Step 1 of the new field process, select Text, then click Next to continue.
In Step 2, enter values for your new field as per the table below, then
click Next to continue.
In Step 4, check the Account Layout box, then click Save.
Your new field name appears followed by a double-underscore and a
lowercase "c": Region__c This is the new field to which DataWeave will
map the region data it acquires from another flow.
5
Steps
Open the Example project in Anypoint Studio from Anypoint Exchange. Do
not run the application.
Log in to your Salesforce account. From your account menu (your account
is labeled with your name), select Setup.
In the left navigation bar, under the Personal Setup heading, click to
expand the My Personal Information folder.
Click Reset My Security Token. Salesforce resets the token and emails
you the new one.
Access the email that Salesforce sent and copy the new token onto your
local clipboard.
In your SaaS Integration application in Mule Studio, click the Global
Elements tab.
Double-click the Salesforce global element to open its Global Element
Properties panel. In the Security Token field, paste the new Salesforce
token you copied from the email. Alternatively, configure the global element
in the XML Editor.
Change the contents of the Username and Password fields to your
account-specific values, then click OK to save your changes.
6
CreateNewSalesforceAccountFlow
The File Endpoint polls the input folder for new files every ten seconds.
When it spots a new file, it reads it and passes the content to the Anypoint
DataWeave transformer. This transformer not only converts the format of
the data from CSV to a collection, it automatically maps the input fields
from the CSV file – company_name, company_address, etc. – to output
fields that Salesforce uses in a collection.
The DataWeave also utilizes a flow lookup. Flow lookup accesses another
flow in the application to acquire the sales region for each new account.
DataWeave invokes the LookupSalesRegionFlow which uses the
company_state data to determine into which sales region the account falls.
DataWeave then maps this newly acquired data to the custom field in
Salesforce, Region__c.
7
LookupSalesRegionFlow
This flow consists of a Groovy component and a Logger. The script in the
component uses state information in the message payload to calculate the
sales region to which the account belongs. Invoked by the flow lookup in
DataWeave, this flow exists only to determine a sales region for each
account in the CSV file.
8
Flow
THANK
YOU
THANK
YOU

More Related Content

What's hot

Connecting to salesforce and using database in mule
Connecting to salesforce and using database in muleConnecting to salesforce and using database in mule
Connecting to salesforce and using database in muleRaviShankar Mishra
 
Salesforce Integration using Mule ESB
Salesforce Integration using Mule ESBSalesforce Integration using Mule ESB
Salesforce Integration using Mule ESBSreekanth Kondapalli
 
Integration with sales force
Integration with sales forceIntegration with sales force
Integration with sales forceSon Nguyen
 
Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked inSon Nguyen
 
Integration with microsoft share point
Integration with microsoft share pointIntegration with microsoft share point
Integration with microsoft share pointSon Nguyen
 
Query Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESBQuery Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESBSanjeet Pandey
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlightshimajareddys
 
Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.Yogesh Chandr
 
Create folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbCreate folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbSanjeet Pandey
 
Mule Salesforce Connector
Mule Salesforce ConnectorMule Salesforce Connector
Mule Salesforce ConnectorAnkush Sharma
 
Integration with Microsoft CRM using Mule ESB
Integration with Microsoft CRM using Mule ESBIntegration with Microsoft CRM using Mule ESB
Integration with Microsoft CRM using Mule ESBSanjeet Pandey
 
Mule with salesforce push topic notification copy
Mule with salesforce push topic notification   copyMule with salesforce push topic notification   copy
Mule with salesforce push topic notification copySanjeet Pandey
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with muleF K
 

What's hot (20)

Connecting to salesforce and using database in mule
Connecting to salesforce and using database in muleConnecting to salesforce and using database in mule
Connecting to salesforce and using database in mule
 
Salesforce Integration using Mule ESB
Salesforce Integration using Mule ESBSalesforce Integration using Mule ESB
Salesforce Integration using Mule ESB
 
Integration with sales force
Integration with sales forceIntegration with sales force
Integration with sales force
 
Amazone s3 in mule
Amazone s3 in muleAmazone s3 in mule
Amazone s3 in mule
 
Muleesb
MuleesbMuleesb
Muleesb
 
Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked in
 
Integration with microsoft share point
Integration with microsoft share pointIntegration with microsoft share point
Integration with microsoft share point
 
Query Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESBQuery Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESB
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlights
 
Mule esb stripe
Mule esb stripeMule esb stripe
Mule esb stripe
 
Mule integration with Servicenow
Mule integration with ServicenowMule integration with Servicenow
Mule integration with Servicenow
 
Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.
 
Create folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbCreate folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esb
 
Mule architecture
Mule   architectureMule   architecture
Mule architecture
 
Mule Salesforce Connector
Mule Salesforce ConnectorMule Salesforce Connector
Mule Salesforce Connector
 
Integration with Microsoft CRM using Mule ESB
Integration with Microsoft CRM using Mule ESBIntegration with Microsoft CRM using Mule ESB
Integration with Microsoft CRM using Mule ESB
 
Mule ESB integration with Stripe
Mule ESB integration with StripeMule ESB integration with Stripe
Mule ESB integration with Stripe
 
Mule with salesforce push topic notification copy
Mule with salesforce push topic notification   copyMule with salesforce push topic notification   copy
Mule with salesforce push topic notification copy
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with mule
 
Dataweave 160103180124
Dataweave 160103180124Dataweave 160103180124
Dataweave 160103180124
 

Viewers also liked

Anypoint connectorfor ibm as 400
Anypoint connectorfor ibm as 400Anypoint connectorfor ibm as 400
Anypoint connectorfor ibm as 400himajareddys
 
Mule anypointconnector dev kit
Mule anypointconnector dev kitMule anypointconnector dev kit
Mule anypointconnector dev kithimajareddys
 
Mule anypointenterprisesecurity
Mule anypointenterprisesecurityMule anypointenterprisesecurity
Mule anypointenterprisesecurityhimajareddys
 
Component bindings in mule
Component bindings in muleComponent bindings in mule
Component bindings in muleSindhu VL
 
Mule requestor component
Mule requestor componentMule requestor component
Mule requestor componentSindhu VL
 
Biz talk vs mulesoft
Biz talk vs mulesoftBiz talk vs mulesoft
Biz talk vs mulesoftkeshav Naidu
 
Encrption in mule
Encrption in muleEncrption in mule
Encrption in muleSindhu VL
 
Using mule configuration patterns
Using mule configuration patternsUsing mule configuration patterns
Using mule configuration patternsSindhu VL
 
Bindings of components in mule
Bindings of components in muleBindings of components in mule
Bindings of components in mulesathishmca143
 
Using maven with mule
Using maven with muleUsing maven with mule
Using maven with muleSindhu VL
 
Mule legacy modernization example
Mule legacy modernization exampleMule legacy modernization example
Mule legacy modernization exampleD.Rajesh Kumar
 
Mule esb basics beginners
Mule esb basics beginnersMule esb basics beginners
Mule esb basics beginnersveena naresh
 

Viewers also liked (14)

Anypoint connectorfor ibm as 400
Anypoint connectorfor ibm as 400Anypoint connectorfor ibm as 400
Anypoint connectorfor ibm as 400
 
Mule anypointconnector dev kit
Mule anypointconnector dev kitMule anypointconnector dev kit
Mule anypointconnector dev kit
 
Mule anypointenterprisesecurity
Mule anypointenterprisesecurityMule anypointenterprisesecurity
Mule anypointenterprisesecurity
 
Mule esb
Mule esbMule esb
Mule esb
 
Component bindings in mule
Component bindings in muleComponent bindings in mule
Component bindings in mule
 
Mule requestor component
Mule requestor componentMule requestor component
Mule requestor component
 
Biz talk vs mulesoft
Biz talk vs mulesoftBiz talk vs mulesoft
Biz talk vs mulesoft
 
Encrption in mule
Encrption in muleEncrption in mule
Encrption in mule
 
Using mule configuration patterns
Using mule configuration patternsUsing mule configuration patterns
Using mule configuration patterns
 
Bindings of components in mule
Bindings of components in muleBindings of components in mule
Bindings of components in mule
 
Using maven with mule
Using maven with muleUsing maven with mule
Using maven with mule
 
Mule esb basics
Mule esb basicsMule esb basics
Mule esb basics
 
Mule legacy modernization example
Mule legacy modernization exampleMule legacy modernization example
Mule legacy modernization example
 
Mule esb basics beginners
Mule esb basics beginnersMule esb basics beginners
Mule esb basics beginners
 

Similar to Dataweavewithflowreflookup

Mulesoft - Salesforce Connector
Mulesoft - Salesforce ConnectorMulesoft - Salesforce Connector
Mulesoft - Salesforce ConnectorGuilherme Baccas
 
Salesforce connector Example
Salesforce connector ExampleSalesforce connector Example
Salesforce connector Exampleprudhvivreddy
 
Guide to How Salesforce and Stripe Integration.pptx
Guide to How Salesforce and Stripe Integration.pptxGuide to How Salesforce and Stripe Integration.pptx
Guide to How Salesforce and Stripe Integration.pptxAwsQuality
 
How to integrate salesforce data with azure data factory
How to integrate salesforce data with azure data factoryHow to integrate salesforce data with azure data factory
How to integrate salesforce data with azure data factoryservicesNitor
 
Zendesk Integration With Salesforce .pptx
Zendesk Integration With Salesforce .pptxZendesk Integration With Salesforce .pptx
Zendesk Integration With Salesforce .pptxCloud Analogy
 
Mule NetSuite connectors
Mule  NetSuite connectorsMule  NetSuite connectors
Mule NetSuite connectorsD.Rajesh Kumar
 
Mule net suite connectors
Mule  net suite connectorsMule  net suite connectors
Mule net suite connectorshimajareddys
 
Tableau-Salesforce_Topic5_Setup SSO
Tableau-Salesforce_Topic5_Setup SSOTableau-Salesforce_Topic5_Setup SSO
Tableau-Salesforce_Topic5_Setup SSOMathieu Emanuelli
 
SAP Integration White Paper
SAP Integration White PaperSAP Integration White Paper
SAP Integration White PaperSaleem Rauf
 
Summer '16 Realease notes
Summer '16 Realease notesSummer '16 Realease notes
Summer '16 Realease notesaggopal1011
 
Retrieve microsoft data
Retrieve microsoft dataRetrieve microsoft data
Retrieve microsoft dataSon Nguyen
 
Most Common Challenges in Salesforce Integration
Most Common Challenges in Salesforce Integration Most Common Challenges in Salesforce Integration
Most Common Challenges in Salesforce Integration Solunus, Inc.
 
Salesforce Tableau Integration Guide
Salesforce Tableau Integration GuideSalesforce Tableau Integration Guide
Salesforce Tableau Integration GuideHarryJohnson78
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12Rajesh Khatri
 
Details and Set-up of Other FlexFields in Oracle E-Business Suite
Details and Set-up of Other FlexFields in Oracle E-Business SuiteDetails and Set-up of Other FlexFields in Oracle E-Business Suite
Details and Set-up of Other FlexFields in Oracle E-Business Suiteeprentise
 
Oracle General ledger ivas
Oracle General ledger ivasOracle General ledger ivas
Oracle General ledger ivasAli Ibrahim
 

Similar to Dataweavewithflowreflookup (20)

Mulesoft - Salesforce Connector
Mulesoft - Salesforce ConnectorMulesoft - Salesforce Connector
Mulesoft - Salesforce Connector
 
Salesforce connector Example
Salesforce connector ExampleSalesforce connector Example
Salesforce connector Example
 
Guide to How Salesforce and Stripe Integration.pptx
Guide to How Salesforce and Stripe Integration.pptxGuide to How Salesforce and Stripe Integration.pptx
Guide to How Salesforce and Stripe Integration.pptx
 
How to integrate salesforce data with azure data factory
How to integrate salesforce data with azure data factoryHow to integrate salesforce data with azure data factory
How to integrate salesforce data with azure data factory
 
Salesforce to Netsuite Integration.pptx
Salesforce to Netsuite Integration.pptxSalesforce to Netsuite Integration.pptx
Salesforce to Netsuite Integration.pptx
 
Zendesk Integration With Salesforce .pptx
Zendesk Integration With Salesforce .pptxZendesk Integration With Salesforce .pptx
Zendesk Integration With Salesforce .pptx
 
Mule NetSuite connectors
Mule  NetSuite connectorsMule  NetSuite connectors
Mule NetSuite connectors
 
Mule net suite connectors
Mule  net suite connectorsMule  net suite connectors
Mule net suite connectors
 
Tableau-Salesforce_Topic5_Setup SSO
Tableau-Salesforce_Topic5_Setup SSOTableau-Salesforce_Topic5_Setup SSO
Tableau-Salesforce_Topic5_Setup SSO
 
SAP Integration White Paper
SAP Integration White PaperSAP Integration White Paper
SAP Integration White Paper
 
Summer '16 Realease notes
Summer '16 Realease notesSummer '16 Realease notes
Summer '16 Realease notes
 
Retrieve microsoft data
Retrieve microsoft dataRetrieve microsoft data
Retrieve microsoft data
 
Most Common Challenges in Salesforce Integration
Most Common Challenges in Salesforce Integration Most Common Challenges in Salesforce Integration
Most Common Challenges in Salesforce Integration
 
21121F0097.pptx
21121F0097.pptx21121F0097.pptx
21121F0097.pptx
 
Df12 Performance Tuning
Df12 Performance TuningDf12 Performance Tuning
Df12 Performance Tuning
 
Salesforce Tableau Integration Guide
Salesforce Tableau Integration GuideSalesforce Tableau Integration Guide
Salesforce Tableau Integration Guide
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12
 
Details and Set-up of Other FlexFields in Oracle E-Business Suite
Details and Set-up of Other FlexFields in Oracle E-Business SuiteDetails and Set-up of Other FlexFields in Oracle E-Business Suite
Details and Set-up of Other FlexFields in Oracle E-Business Suite
 
Oracle General ledger ivas
Oracle General ledger ivasOracle General ledger ivas
Oracle General ledger ivas
 
Salesforce crm projects
Salesforce crm projects Salesforce crm projects
Salesforce crm projects
 

More from himajareddys

Exception handling basics in mule
Exception handling basics in muleException handling basics in mule
Exception handling basics in mulehimajareddys
 
Mule integration patterns
Mule    integration patternsMule    integration patterns
Mule integration patternshimajareddys
 
Design considerations in MULE ESB
Design considerations in MULE ESBDesign considerations in MULE ESB
Design considerations in MULE ESBhimajareddys
 
Mule esb flow processing strategies
Mule esb flow processing strategiesMule esb flow processing strategies
Mule esb flow processing strategieshimajareddys
 
Mule architecture styles
Mule architecture stylesMule architecture styles
Mule architecture styleshimajareddys
 
Integration patterns in muleesb
Integration patterns in muleesbIntegration patterns in muleesb
Integration patterns in muleesbhimajareddys
 
Security components in mule esb
Security components in mule esbSecurity components in mule esb
Security components in mule esbhimajareddys
 
Connector for ibm® as400
Connector for ibm® as400Connector for ibm® as400
Connector for ibm® as400himajareddys
 
Netsuite open air connector
Netsuite open air connectorNetsuite open air connector
Netsuite open air connectorhimajareddys
 
Enterprise resources and mule
Enterprise resources and muleEnterprise resources and mule
Enterprise resources and mulehimajareddys
 
Multi saas integrations
Multi saas integrationsMulti saas integrations
Multi saas integrationshimajareddys
 
Mule any pointstudio
Mule any pointstudioMule any pointstudio
Mule any pointstudiohimajareddys
 
Mule integration solutions
Mule  integration solutionsMule  integration solutions
Mule integration solutionshimajareddys
 
Mule saas enablement
Mule  saas enablementMule  saas enablement
Mule saas enablementhimajareddys
 

More from himajareddys (20)

Domain in mule
Domain in muleDomain in mule
Domain in mule
 
Exception handling basics in mule
Exception handling basics in muleException handling basics in mule
Exception handling basics in mule
 
Mule integration patterns
Mule    integration patternsMule    integration patterns
Mule integration patterns
 
Design considerations in MULE ESB
Design considerations in MULE ESBDesign considerations in MULE ESB
Design considerations in MULE ESB
 
Mule esb flow processing strategies
Mule esb flow processing strategiesMule esb flow processing strategies
Mule esb flow processing strategies
 
Mule architecture styles
Mule architecture stylesMule architecture styles
Mule architecture styles
 
Integration patterns in muleesb
Integration patterns in muleesbIntegration patterns in muleesb
Integration patterns in muleesb
 
Security components in mule esb
Security components in mule esbSecurity components in mule esb
Security components in mule esb
 
Cloudhub
CloudhubCloudhub
Cloudhub
 
Mule 3.4 features
Mule 3.4 featuresMule 3.4 features
Mule 3.4 features
 
Mule esb 3.8
Mule esb 3.8Mule esb 3.8
Mule esb 3.8
 
Mule soa
Mule soaMule soa
Mule soa
 
Connector for ibm® as400
Connector for ibm® as400Connector for ibm® as400
Connector for ibm® as400
 
Netsuite open air connector
Netsuite open air connectorNetsuite open air connector
Netsuite open air connector
 
Enterprise resources and mule
Enterprise resources and muleEnterprise resources and mule
Enterprise resources and mule
 
Multi saas integrations
Multi saas integrationsMulti saas integrations
Multi saas integrations
 
Mule any pointstudio
Mule any pointstudioMule any pointstudio
Mule any pointstudio
 
Mule integration solutions
Mule  integration solutionsMule  integration solutions
Mule integration solutions
 
Mule b2 b
Mule  b2 bMule  b2 b
Mule b2 b
 
Mule saas enablement
Mule  saas enablementMule  saas enablement
Mule saas enablement
 

Recently uploaded

Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 

Recently uploaded (20)

Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 

Dataweavewithflowreflookup

  • 1. DataWeave with flowref lookupDataWeave with flowref lookup
  • 2. 2 Connect with Salesforce At times, you may find that you need to connect one or more of your organization's on-premise systems with a SaaS application such as Salesforce. Ideally, these independent systems would talk to each other and share data to enable automation of end-to-end business processes. Use Mule applications to facilitate communication between your on-prem system(s) and Salesforce. (Though this use case does not extend as far, you can also use Mule to facilitate communication between SaaS providers.)
  • 3. 3 DataWeave and FlowRefLookup Beyond transforming and mapping data from one format to another, you can use an Anypoint DataWeave Transformer to access other flows in a Mule application to acquire additional information. Use a flow lookup to acquire information outside the message, then append it to the payload.
  • 4. 4 Steps Log in to your Salesforce account, then navigate to the Setup tab. Now click on Customize -> Accounts -> Fieldsunder the Build section on the left side of the page. Now click on New under the Account Custom Fields & Relationships section. In Step 1 of the new field process, select Text, then click Next to continue. In Step 2, enter values for your new field as per the table below, then click Next to continue. In Step 4, check the Account Layout box, then click Save. Your new field name appears followed by a double-underscore and a lowercase "c": Region__c This is the new field to which DataWeave will map the region data it acquires from another flow.
  • 5. 5 Steps Open the Example project in Anypoint Studio from Anypoint Exchange. Do not run the application. Log in to your Salesforce account. From your account menu (your account is labeled with your name), select Setup. In the left navigation bar, under the Personal Setup heading, click to expand the My Personal Information folder. Click Reset My Security Token. Salesforce resets the token and emails you the new one. Access the email that Salesforce sent and copy the new token onto your local clipboard. In your SaaS Integration application in Mule Studio, click the Global Elements tab. Double-click the Salesforce global element to open its Global Element Properties panel. In the Security Token field, paste the new Salesforce token you copied from the email. Alternatively, configure the global element in the XML Editor. Change the contents of the Username and Password fields to your account-specific values, then click OK to save your changes.
  • 6. 6 CreateNewSalesforceAccountFlow The File Endpoint polls the input folder for new files every ten seconds. When it spots a new file, it reads it and passes the content to the Anypoint DataWeave transformer. This transformer not only converts the format of the data from CSV to a collection, it automatically maps the input fields from the CSV file – company_name, company_address, etc. – to output fields that Salesforce uses in a collection. The DataWeave also utilizes a flow lookup. Flow lookup accesses another flow in the application to acquire the sales region for each new account. DataWeave invokes the LookupSalesRegionFlow which uses the company_state data to determine into which sales region the account falls. DataWeave then maps this newly acquired data to the custom field in Salesforce, Region__c.
  • 7. 7 LookupSalesRegionFlow This flow consists of a Groovy component and a Logger. The script in the component uses state information in the message payload to calculate the sales region to which the account belongs. Invoked by the flow lookup in DataWeave, this flow exists only to determine a sales region for each account in the CSV file.