{ "call": [ { "name": "call1", "connection": "userAuth", "url": "https://xxxxxxx/services/data/v58.0/sobjects/User/${account?.accountID}", "httpMethod": "PATCH", "httpParams": "{\"FirstName\":\"${user?.getFirstname()!=null?user?.getFirstname():account?.customproperty2}\",\"LastName\":\"${user?.getLastname()!=null?user?.getLastname():account?.customproperty2}\",\"Alias\": \"${if(user?.customproperty61!=null && user?.customproperty61.length()>8){user?.customproperty61.toLowerCase().substring(0,8)}else if(user?.customproperty61!=null && user?.customproperty61?.length()<=8){user?.customproperty61.toLowerCase()}else{if(user?.lastname.toString().replaceAll(' ','').length()<=7){user?.firstname?.substring(0,1)+user?.lastname.substring(0,user?.lastname.length())}else{user?.getFirstname().substring(0,1)+user?.getLastname().substring(0,7)}}}\",\"Email\":\"${user.email!=null?user.email:''}\",\"CompanyName\": \"${user.companyname!=null?user.companyname:''}\",\"CommunityNickname\": \"${user?.customproperty61.concat('.xxx')}\",\"EmailEncodingKey\": \"UTF-8\"}", "httpHeaders": { "Authorization": "${access_token}", "Accept": "application/json" }, "httpContentType": "application/json", "successResponses": { "statusCode": [ 201, 200, 204 ] }, "unsuccessResponses": { "statusCode": [ 400, 403, 401, 404, 409, 501, 500 ] } } ] }