ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rishi Solanki <rishisolan...@gmail.com>
Subject Re: Not able to gthiet the email address..
Date Tue, 16 Oct 2018 12:29:43 GMT
Hi Madhi,
Ideally it should work, can you please review the data you have prepared.
For better understanding, please share the ContactMech, PartyContactMech
and PartyContactMechPurpose xml data you have prepared to  run your service
and not getting the value.

You can get that data from webtools, by direct browse to those records at
bottom.

--
Rishi Solanki
Sr Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com
www.hotwax.co


On Tue, Oct 16, 2018 at 5:38 PM Madhi Krishnan <
madhi.krishnan@udyogmandir.in> wrote:

> 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