Wednesday, January 13, 2016

Sales Cloud to JDE integration - groovy - JDE actiontype not recognized



Hi,

Trying to Create (also update) the JDE E1 addressbook, inputs are taken from OSC , and service call is via groovy script.

Webservice name: Customer And Contact Manager Service
Method : processCustomerAndContactV2

Code:

println " Call B4 record Update";
def processCustomerAndContactV2 =
[
processAddressBookV2:
[
addressBook:
[
businessUnit :'10000001',
entityId :'30000000',
entityName :'TsetRecord',
entityTypeCode :'C',
categoryCodesAddressBook:
[
categoryCode001 :'123',
categoryCode003 :'456',
categoryCode011 :'89',
],
electronicAddresses:
[[
actionType :'1',
//contactId :integerValue,
electronicAddress :abc@mno.com,
electronicAddressClassificationCode :null,
electronicAddressTypeCode :'E',
messageIndicatorCode :'03'
]],
phoneNumbers:
[[
actionType :'1',
areaCode :'123',
// contactId :integerValue,
phoneLineNumber :'1',
phoneNumber :'456789',
phoneTypeCode :'W',
]],
processing:
[
actionType :'2',
processingVersion :'SA570001'
],
],
],
],
call = adf.webServices.AddresBookCreation.processCustomer AndContactV2(processCustomerAndContactV2);
println('Call: '+call);


response recieved:
Client received SOAP Fault from server : CAUSE . . . The action code entered either is not one of the following codes. Valid action codes are:
'1' - Add;
'2' - Change;
'3' - Delete;
RESOLUTION . . . Verify that the program allows the attempted action.

I am not sure why the actiontype is not recognized.

But I am able to create addressbook with this
service: RI_Address Book Manager Service
method: addAddressBook


But unable to create/update any addressbook, who's who, phone, or email address.
Can someone let me know the correct service to be used. also the Let me know why this issue occured.


from JDELIST - JD Edwards® EnterpriseOne Developers http://ift.tt/1N7XYTc
via IFTTT

No comments:

Post a Comment