From user-return-54411-archive-asf-public=cust-asf.ponee.io@ofbiz.apache.org Tue Oct 16 12:06:41 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A7FD1180649 for ; Tue, 16 Oct 2018 12:06:40 +0200 (CEST) Received: (qmail 28137 invoked by uid 500); 16 Oct 2018 10:06:39 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 28124 invoked by uid 99); 16 Oct 2018 10:06:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2018 10:06:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D6635C0CCC for ; Tue, 16 Oct 2018 10:06:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.969 X-Spam-Level: * X-Spam-Status: No, score=1.969 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=udyogmandir-in.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id fLD6oamumkRl for ; Tue, 16 Oct 2018 10:06:36 +0000 (UTC) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 578875F386 for ; Tue, 16 Oct 2018 10:06:35 +0000 (UTC) Received: by mail-ot1-f54.google.com with SMTP id l1so21909997otj.5 for ; Tue, 16 Oct 2018 03:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udyogmandir-in.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=g4hoLR0qVEMA/FEJGsa6rWFc/KjvTM0WPNY5kz0Tbzo=; b=LtL6J+XTh+6d+ABRWh1TSxMzkEuSPUgaavqc/DnQBby3FJUdCdvHisjZNY/OuBO46q cDIipoFezicweJSbhqSzsl2z5UqBovfKBoimdiScHIELSQoryCA2LPCIVpc1zZKeEFKa H6NiLJuDe12YvJ3KIDOhbGww2Zr9BaGbKHGinMBSSOQq2aOLx8fnjql6tTTbu4m4hwQ7 DIXcm5zCKmmf4PtzUAMfTbF28Z3VlM8f2TJI6xCPC7E+sKVBoouJjxvbFqzK+AvKDNio DCvDge/Ljdqy6TsCaHozygHN5jR1ZMXLtjFJvV8VHVZR9bVWrzqUa91ix7Rldf/vxJ3B yz1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=g4hoLR0qVEMA/FEJGsa6rWFc/KjvTM0WPNY5kz0Tbzo=; b=EdrzcVSp6Y7LArjFeuSJrfAcCYeBq4fKbjhKjBDcyzbBeSLlMZuugP0vIup/pNfe+l hS5TTuscYM6qkwXvBkhJFoWEsxAZX/e+IZr8h3MeT0Z88eLnnlRRizpON+9Q9/kiVa2U M1VFjpgkCknIlKXlsnu2Z/zqdnVWZkh4eqf1flNOB4OhYssR9gGpj5MTItI5v3hnQeZR yKPHrQqhEF1J4hv3Jk3vvqTgLJtAJTrpWQA1udsrlTxGCPbLeL6FedvKnN2Wv8dJmz7I 8atQOI2tJFOvKYoDyO6WZZq/SCv8wzSTot5hFNlGNVwI0m5Kfyq5hvJRnx7Rv6CxKjPa XkFA== X-Gm-Message-State: ABuFfoh72srim3STbGBH1bkl4F3X1J6X8G/xzW3cvMsTF0uUoLNSO15o QDV6T+v9YIKXDsHtcq/qnNge+CtXm+ucTregUN7W54koq1o= X-Google-Smtp-Source: ACcGV63z3I4XVSqd9uIWh66e+gc7IAWElteKxdmxPfAEjd+k+012kVGvOKEyNYLxTp7/TaBwXOhMccDHwc0Ph4YZ/0g= X-Received: by 2002:a9d:4c90:: with SMTP id m16mr12533834otf.124.1539684388083; Tue, 16 Oct 2018 03:06:28 -0700 (PDT) MIME-Version: 1.0 From: Madhi Krishnan Date: Tue, 16 Oct 2018 15:36:16 +0530 Message-ID: Subject: Not able to gthiet the email address.. To: user@ofbiz.apache.org Content-Type: multipart/alternative; boundary="00000000000004aff4057855b568" --00000000000004aff4057855b568 Content-Type: text/plain; charset="UTF-8" Hey all.. Can anyone please help he to solve this below.. public static Map getEmail(DispatchContext ctx,Map context) throws GenericEntityException, SQLException, GenericServiceException{ LocalDispatcher dispatcher=ctx.getDispatcher(); Map successResult=ServiceUtil.returnSuccess(); String partyId="10035"; Map input=UtilMisc.toMap("partyId",partyId); Map 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.. --00000000000004aff4057855b568--