Search This Blog

Tuesday, July 11, 2023

Functions in MuleSoft

You can define your own dataweave functions using the fun declaration in the header of a dwl script.

Sunday, August 7, 2022

Patterns code in Mule4

 pattern:

1

12

123

1234

Code:

%dw 2.0
output application/json
var a = ["1","2","3","4"]
---
a map ( (a reduce ($++$$) ) splitBy "" -- (a[-1 to ($$+1)] default []) orderBy $ joinBy "" )



Check Whether number is Palindrome or Not using Mule4 Dataweave code

 Code:

Palindrome:

%dw 2.0
output application/json
var a = 4
---
if((a as String == (a as String)[-1 to 0])) "palindromeNumber " else "notPalindromeNumber"




NotPalindrome:

%dw 2.0
output application/json
var a = 56
---
if((a as String == (a as String)[-1 to 0])) "palindromeNumber " else "notPalindromeNumber"



print Multiplication Table 0 to N Table using Mule4 Dataweave code

 Code: 

%dw 2.0

output application/json

var table=1
---
1 to 10 map(table ++ "*" ++ ($$+1) ++ "=" ++ table * $)


what is CRM ?why we use CRM connecter

A CRM, in the most basic sense, helps you to manage your customer relationships. CRM stands for Customer Relationship Management. And, as the name suggests, a CRM helps you manage your relationships with your customers. It’s all about how you talk to them, keep track of them, follow-up on deals, send support messages and everything else.

Boosts your productivity: A CRM increases your company’s efficiency by allowing you to review all customer engagements, including quotes, invoices, phone calls, and service calls from a single location. This approach increases productivity and makes up for small team sizes because you eliminate the need to have to otherwise search for this data.

What are the connectors used to connect in between the experience api to process api and system api’s?

HTTP request connector is used to call different APIs from one another. As APIs are exposed as REST services in the API Led approach.

Anypoint Exchange:

  The Mulesoft tool for exchange offers you numerous prebuilt private & public assets, through which you can communicate with any other system with the help of existing connectors or build a custom connector




Anypoint Exchange provides the benefit of being able to discover, share, and incorporate assets and resources into your applications. Anypoint Exchange helps you create API developer portals, view and test APIs, simulate data to APIs (Mocking Service), create assets, and use API Notebooks to describe and test API functions.