Hi Madhi Krishnan,

Can you find records in PartyContactWithPurpose entity using webtools
with contactMechPurposeTypeId as PRIMARY_EMAIL and partyId as 10035?

Thanks and Regards,

*Aditya Sharma* | Enterprise Software Engineer
HotWax Commerce <http://www.hotwax.co/> by HotWax Systems
<http://www.hotwaxsystems.com/>
[image: https://www.linkedin.com/in/aditya-p-sharma/]
<https://www.linkedin.com/in/aditya-p-sharma/>


On Tue, Oct 16, 2018 at 3:36 PM Madhi Krishnan <
madhi.krish...@udyogmandir.in> wrote:

> Hey all..
> Can anyone please help he to solve this below..
>
> public static Map<String,Object> getEmail(DispatchContext ctx,Map<String, ?
> extends Object> context) throws GenericEntityException, SQLException,
> GenericServiceException{
> LocalDispatcher dispatcher=ctx.getDispatcher();
> Map<String,Object> successResult=ServiceUtil.returnSuccess();
> String partyId="10035";
> Map<String, Object> input=UtilMisc.toMap("partyId",partyId);
> Map<String, Object> serviceResult=dispatcher.runSync("getPartyEmail",
> input,360,true);
> String email="";
> if(serviceResult != null) {
> email=(String)serviceResult.get("emailAddress");
> successResult.put("outValue", email);
> }
> else {
> successResult.put("outValue", "Returns a null Value");
> }
> return successResult;
> }
>
> Trying to retrive the email address of a partyId..using the out of the box
> service Named as getPartyEmail...but it's returning a null value for
> email...
>
> Thank You..
>

Reply via email to