Questions tagged [mule4]

Version 4 of Mule, a lightweight enterprise service bus (ESB) and integration framework provided by MuleSoft

Mule is a lightweight enterprise service bus (ESB) and integration framework provided by MuleSoft. According to the documentation, Version 4 aims at simplifying the expression language and reducing management complexity. This way, it shall be possible to deliver applications faster than in earlier versions of the product.

1166 questions
-1
votes
1 answer

Mulesoft 4 Dataweave for loop and key value pair inside EXCEL TO JSON transformation

I have a data weave transformation converting an excel file to JSON, I had to change the value of an element (column of the file) as per the key-value pair values stored in a variable. Please let me know how to achieve this. Below is my data weave…
andy
  • 1
  • 1
-2
votes
1 answer

Bearer Token on HTTP Request

I try to replace the token with a variable so that i dont need to hardcode the token but it seems I cant do it. and this is the output from postman `"You called the function '+' with these arguments: 1: String ("Bearer ") 2: String…
TwinZaia
  • 7
  • 3
-2
votes
2 answers

File Connector use a File Pattern with the list operation

How can I filter the file list in 2 types of files (CSV, XML) just files that has those extensions with a filepattern?
-2
votes
1 answer

Iterate over a directory and extract only file names without reading the payload

I am using the Mule 4.4 community edition on premise. Thanks to help, I have been able to read a large file without consuming memory and processing it, which is all good (here). Now building on this further - my use case is to read all .csv files…
-2
votes
3 answers

Mapping XML element values to element names with DataWeave

I need a DataWeave 2.0 script that complies with the following rules. Rules: BID for PtID Z001 will map to Bpay Tag. BID for PtID Z002 will map to Payment Tag. etc Input XML File: BlockID
Sami
  • 9
  • 2
-2
votes
2 answers

How to inherit parent elements for each existing child Mule 4

There is an array of parent elements that you need to duplicate for each child sku element you have. Input: { "items": [ { "order": "ASD51247", "reference": "271559410", "date": "2022-04-01T22:58:19.077Z", …
-2
votes
2 answers

How to use DataWeave to create a CSV output with headers when the input doesn't has all headers in the first record

i have json array which have not fix length, for example [ { a: 1 }, { a: 1, b: 2 }, { a: 1, c: 3 }, { a: 1, b: 2, d: 4, f: 6 } ] I need to transform them into CSV file with header. Below script only return header of the…
maomifadacai
  • 357
  • 2
  • 4
  • 17
-2
votes
1 answer

Consume graphQL API from Mule 4

I want to consumer graphQl API. I know we need to use http requester to call graphQl. I need some info on forming mutation request using dwl. I was trying to hit this service https://www.predic8.de/fruit-shop-graphql using…
Prudhvi B
  • 144
  • 2
  • 13
-3
votes
2 answers

how to get an array of IDs from Payload

I have a getrecord component which I am getting all Case record from salesforce. My requirement I need to grab all case.ID in one array so that I can pass that array to second query. How I can build a array of IDs. I tried the below code but didnt…
Tamil
  • 115
  • 4
-3
votes
1 answer

I have updated to anypoint 7.11.1 now getting error while running munit

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EA10025-BTSNA-MOBILITYBTSNA-main': Cannot create inner bean '(inner bean)#6697d772' of type [org.mule.module.apikit.Router] while setting bean property…
neha
  • 1
-3
votes
1 answer

error in mule 4 "You cannot compare a value of type :Null"

I am trying to find the max of date from json data. But i am getting below error Message : "You cannot compare a value of type :Null Trace: at reduce (Unknown) at dw::Core::maxBy (line: 5535, column: 3) at main (line: 1, column: 248)"…
gunjan gupta
  • 51
  • 1
  • 12
1 2 3
77
78