ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Madhi Krishnan <madhi.krish...@udyogmandir.in>
Subject Re: Not able to gthiet the email address..
Date Tue, 16 Oct 2018 12:07:46 GMT
Hello pritam..
I have already created the contactMech record with  ContactMechTypeId  as
"EMAIL_ADDRESS" and associated it with a party...
and also tried by adding  the contactMechPurpose Date...but its still
returning a null value..


On Tue, Oct 16, 2018 at 5:05 PM Pritam Kute <pritam.kute@hotwaxsystems.com>
wrote:

> Hello Madhi Krishnan,
>
> In addition to the reply from Aditya, if you don't want to add the
> ContactMechPurpose data, you just need to create the ContactMech record
> with ContactMechTypeId "EMAIL_ADDRESS" or "ELECTRONIC_ADDRESS" and
> associate it with the party using PartyContactMech entity.
>
> Thanks and Regards
> --
> Pritam Kute
>
>
> On Tue, Oct 16, 2018 at 4:56 PM Madhi Krishnan <
> madhi.krishnan@udyogmandir.in> wrote:
>
> > Hey Aditiya..
> > Thanks for the reply..
> > No there is no record for party id 10035
> >
> > On Tue, Oct 16, 2018 at 4:34 PM Aditya Sharma <
> > aditya.sharma@hotwaxsystems.com> wrote:
> >
> > > 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.krishnan@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..
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message