diff --git a/applications/party/minilang/party/PartyServices.xml b/applications/party/minilang/party/PartyServices.xml
index 57b2621701..fcdebf7783 100644
--- a/applications/party/minilang/party/PartyServices.xml
+++ b/applications/party/minilang/party/PartyServices.xml
@@ -375,6 +375,27 @@ under the License.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/applications/party/servicedef/services_view.xml b/applications/party/servicedef/services_view.xml
index e36dbf1aad..d0d2793519 100644
--- a/applications/party/servicedef/services_view.xml
+++ b/applications/party/servicedef/services_view.xml
@@ -126,6 +126,76 @@ under the License.
+
+ Gets a collection of parties from an exact email address, uses SQL EQUALS
+
+
+
+
+
+ Gets a collection of parties from a part of an email address, uses SQL LIKE
+
+
+
+
+
+ Gets a collection of parties from a part of an UserloginId, uses SQL LIKE
+
+
+
+
+
+ Gets a collection of parties from a first/last name, uses SQL LIKE
+
+
+
+
+
+
+ Gets a collection of parties from a group name, uses SQL LIKE
+
+
+
+
+
+ Gets a list of parties from a party externalId
+
+
+
+
+
+ Gets all parties related to partyIdFrom through the PartyRelationship entity
+
+
+
+
+
+
+ Get Parties Related to a Party
+ - The relatedPartyIdList coming out will include the original partyIdFrom
+ - The includeFromToSwitched and recurse attributes should by "Y" or "N" and default to N.
+ - The useCache attribute should be "true" or "false", defaults to "false"
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
index e2d171fd28..ea574ca9f2 100644
--- a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
+++ b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
@@ -26,6 +26,7 @@ import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.sql.Timestamp;
import java.util.ArrayList;
+import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
@@ -45,6 +46,8 @@ import org.apache.ofbiz.entity.GenericEntity;
import org.apache.ofbiz.entity.GenericEntityException;
import org.apache.ofbiz.entity.GenericValue;
import org.apache.ofbiz.entity.condition.EntityCondition;
+import org.apache.ofbiz.entity.condition.EntityConditionList;
+import org.apache.ofbiz.entity.condition.EntityExpr;
import org.apache.ofbiz.entity.condition.EntityFunction;
import org.apache.ofbiz.entity.condition.EntityOperator;
import org.apache.ofbiz.entity.model.DynamicViewEntity;
@@ -702,6 +705,273 @@ public class PartyServices {
return result;
}
+ /**
+ * Get the party object(s) from an e-mail address
+ * @param dctx The DispatchContext that this service is operating in.
+ * @param context Map containing the input parameters.
+ * @return Map with the result of the service, the output parameters.
+ */
+ public static Map getPartiesFromExactEmail(DispatchContext dctx, Map context) {
+ Map result = new HashMap<>();
+ Delegator delegator = dctx.getDelegator();
+ Collection