Skip to content
Snippets Groups Projects
Commit 3cf290b9 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Merge branch '#1047153-fixed-multiple-selection-of-medium-at-commrestriction' into '2020.0'

#1047153 - Fixed multiple selection of a medium for a user at commrestriction.

See merge request xrm/basic!121
parents a35a8127 f5655fba
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,10 @@
<valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/commrestrictionmedium/children/containername_param/valueProcess.js</valueProcess>
<expose v="false" />
</entityParameter>
<entityParameter>
<name>ExcludedKeyIdsSubquery_param</name>
<valueProcess>%aditoprj%/entity/CommRestriction_Entity/entityfields/commrestrictionmedium/children/excludedkeyidssubquery_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityProvider>
......
import("system.question");
import("system.vars");
import("Sql_lib");
import("system.result");
var contactId = vars.get("$field.CONTACT_ID");
var alreadyUsedMediums = new SqlBuilder().select("MEDIUM").from("COMMRESTRICTION").where("COMMRESTRICTION.CONTACT_ID", contactId);
result.string(alreadyUsedMediums);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment