on 2022 Apr 24 11:11 PM
partytecnico74
Hi, can you please accept the answer and close the thread?You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try with the below code.
import com.sap.gateway.ip.core.customdev.util.Message;
import groovy.json.JsonSlurper
def Message processData(Message message) {
def body = message.getBody(String)
def request = new JsonSlurper().parseText(body)
def row = ""
def splits
request.each { data ->
row += data.countryofBirth
row += ';'
row += data.personalInfoNav.perPersonal.gender
row += ';'
row += data.personalInfoNav.perPersonal.firstName
row += ';'
row += data.personalInfoNav.perPersonal.lastName
row +=';'
splits = data.email.split('@')
row += splits[0]
row +=';'
row += splits[1]
row += '\n'
}
message.setBody(row)
return message;
}
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.