Questions tagged [mulesoft]

This tag is not clearly aligned with a specific MuleSoft product. If the question is related to the Mule ESB or Mule Runtime product please use the mule-esb tag instead.

MuleSoft is a company name, not a product.

MuleSoft was acquired by Salesforce in 2018.

MuleSoft produces the Anypoint Platform, which consists of:

  • Anypoint Exchange
  • Anypoint Security
  • Anypoint Analytics
  • Anypoint Studio
  • Mule runtime engine
  • etc.
1619 questions
2
votes
1 answer

Use p() function mule to fetch secure property in dataweave 2.0

I have a encrypted value in my property file using mule secure property eg: password = !#$#%%%f (encrypted) I want to dynamically fetch this value unencrypted using the p function in dataweave based on the input parameter passed in the request I…
user3428616
  • 65
  • 4
  • 14
2
votes
1 answer

how to handle http connector response code

Currently in mule, I have a flow process that makes an http connection to elasticsearch. We are using the scroll api and all connections are fine. I am trying to create a flow to handle the 404 status code which would be returned in the event that…
dataviews
  • 2,466
  • 7
  • 31
  • 64
1
vote
1 answer

How to save predefined table data in Mulesoft

Is it recommended to save the below data in transform message or under src/main/resources and call it while doing transformation? product_id product_name category_id 1 Pear 50 2 Banana 50 3 Orange 50 4 Apple 50 I currently put it…
Magda
  • 13
  • 2
1
vote
1 answer

How to generate a csv with a double pipe delimiter?

I want to generate a CSV output based on "||" as separator. I tried concatenation and other different approaches but I'm not able to achieve the desired output. Input payload: [ { "details": "products' details; LED; 10-34V; 90 CRI;…
james11
  • 55
  • 6
1
vote
1 answer

How to generate the custom xml headers?

I'm looking to fix an issue in my script which is not generating the expected xml headers and closing tag as expected. See the shared below details. Input Payload: { "result": { "data": [ [ "jane", …
james11
  • 55
  • 6
1
vote
1 answer

how to transform given xml to json output?

I have an input payload which is coming as xml. I'm looking for a json output in the format of object as shared below. Input Payload:
james11
  • 55
  • 6
1
vote
1 answer

My mock is not returning the payload I want (mock response), it is returning the real payload

I´m developing a munit test but It is failing, because when it makes a call to another api, it is expecting a new Id, but for the test I cannot make several new Ids, as I understand this is a simulation, that´s why we use mock responses. But is…
Itzel Moo
  • 11
  • 2
1
vote
1 answer

How to do a substring in set variable

I am new to mulesoft I have a flow variable named logPrefix with value "Id1 - 123 - Id2 - 456" I want to use the set-variable component and change the value of this variable to "Id1 - 123". Note that I don't want to do this vars.logPrefix[0 to 8] I…
abhaybhatia
  • 599
  • 1
  • 7
  • 16
1
vote
0 answers

Mulesoft FTP Connector - File timestamps look incorrect

We are using mule-ftp-connector version 1.8.2. When Listing a dir with the List component the typedAttributes["timestamp"] value looks off. E.g File on ftp server has a datetime of 06/02/2023 08:26:52 this is shown in filezilla ftp client and also…
Vish
  • 346
  • 2
  • 13
1
vote
1 answer

How to get "interval data" out of MuleSoft

I am a complete novice to MuleSoft admin and monitoring. We are seeing performance issues in an API provider that vary in intensity during different intervals of the day. In looking at the Report tab on the MuleSoft admin page, It appears that…
1
vote
1 answer

Make HTTPS GET request using http connector in Mule with SSL certificates

I have .crt and privatekey.pem keys which can be used for making HTTPS GET API request. We can't use these certificates directly in mulesoft for making https API requests. As far I know it supports Trust store configuration and Key store…
1
vote
0 answers

password credentials grant type usage in HTTP Requestor of Mulesoft

I need to access an API which requires password credentials grant type to be used in authentication. But Mulesofts HTTP Request config supports only OAuth2 Authorization Code Grant Type Authentication and OAuth2 Client Credentials Grant Type…
Shree
  • 13
  • 2
1
vote
0 answers

Unable to use external java JAR library into mulesoft datawave

I'm trying to use a java library on my mule application. Following this tutorial, i successfully imported and invoked the extended StringUtils class in Datawave. But when i do the same for my own library, it fails. Here the steps o followed from the…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
1
vote
1 answer

How to update Currency Symbols dynamically for each fields based on provided Country

With this static payload, how will I able to change those currency symbols based on the country provided in the request [ { "orderId": "11111101", "details": { "TotalPrice": { "NetPrice__c": 11.11, …
JayR
  • 15
  • 4
1
vote
3 answers

MuleSoft Dataweave- Combining Key Value Pairs from Different Objects with Same Keys

I have a payload of an array of objects. Within each object contains a key that has values that are also arrays of objects. I am trying to combine all of the keys that match, and condense down to an array of the values at the smallest level. Here is…
ndtorre
  • 13
  • 2