Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: How to set the language of a mail template from NotificationUtil?

$
0
0

Hi vikram!

Sorry for the still inconvenience, but I'm getting this error:

 

Error in method invocation: Static method sendNotification( com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.api.comp.messaging.MailTypeEnumType, java.util.Properties, null, null ) not found in class'com.sap.odp.api.util.NotificationUtil'

 

Im making the code the following way:

 

Properties params = new Properties();

params.put(new String("PHASE_NAME"), faseName);

params.put(new String("DOCUMENT_TYPE"), docType);

params.put(new String("DOCUMENT_NAME"), contractName);

params.put(new String("RECIPIENT_FIRST_NAME"), nombre);

params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());

params.put(new String("START_DATE"), fecha);

params.put(new String("ORG_UNIT"), orgUnit);

params.put(new String("INSTRUCTION"), "");

params.put(new String("DOCUMENT_HEADER_URL"), vinculo);

 

recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal()); // This Changed.

 

( I also tried like this:

IapiAccountIfc recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal());)

 

sender = session.getAccount();

mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);

NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);

 

Thanks again!


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>