Skip to content
Snippets Groups Projects
Commit 68905d40 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Merge branch 'marketing_2001556_campaignstep_export' into '2021.2'

[Projekt: xRM-Marketing][TicketNr.: 2001566][[Kampagne ] Exportfunktion für Teilnehmer einer Stufe]

See merge request xrm/basic!1552
parents c188781a d5add0a1
No related branches found
No related tags found
No related merge requests found
...@@ -413,6 +413,10 @@ ...@@ -413,6 +413,10 @@
<iconId>VAADIN:AT</iconId> <iconId>VAADIN:AT</iconId>
<stateProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/group/children/newbulkmail/stateProcess.js</stateProcess> <stateProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/group/children/newbulkmail/stateProcess.js</stateProcess>
</entityActionField> </entityActionField>
<entityActionField>
<name>Export_action</name>
<onActionProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/group/children/export_action/onActionProcess.js</onActionProcess>
</entityActionField>
</children> </children>
</entityActionGroup> </entityActionGroup>
<entityField> <entityField>
......
import("ExportTemplate_lib");
import("system.vars");
var selection = vars.get("$sys.selection");
if(selection.length == 0) //no selection -> use Filtercondition;
{
selection = vars.get("$sys.filter");
}
ExportTemplateUtils.addParticipants(JSON.stringify(selection), vars.get("$sys.currentcontextname"));
\ No newline at end of file
...@@ -1031,6 +1031,16 @@ Dependency.mapping = function () ...@@ -1031,6 +1031,16 @@ Dependency.mapping = function ()
"isObservable" : true "isObservable" : true
}, },
"getUIDsfn" : Dependency.defaultFunctionForRelation("TASKLINK", "OBJECT_ROWID", "CAMPAIGNSTEPID", "CampaignStep", "CAMPAIGNSTEP") "getUIDsfn" : Dependency.defaultFunctionForRelation("TASKLINK", "OBJECT_ROWID", "CAMPAIGNSTEPID", "CampaignStep", "CAMPAIGNSTEP")
},
"CampaignParticipant_entity" :
{
"options" :
{
"isExportable" : true,
"isObservable" : false
},
"getUIDsfn" : Dependency.defaultFunctionForRelation("CAMPAIGNPARTICIPANT", "CAMPAIGNSTEP_ID", "CAMPAIGNSTEPID", null, "CAMPAIGNSTEPID", "CAMPAIGNPARTICIPANTID"),
"fieldsToLoad" : ["CAMPAIGNSTEPID"]
} }
}, },
"Lead_entity" : "Lead_entity" :
......
...@@ -503,6 +503,7 @@ ExportTemplateUtils.exportableEntities = function () ...@@ -503,6 +503,7 @@ ExportTemplateUtils.exportableEntities = function ()
"Offer_entity", "Offer_entity",
"Organisation_entity", "Organisation_entity",
"Person_entity", "Person_entity",
"Salesproject_entity" "Salesproject_entity",
"CampaignStep_entity"
]; ];
} }
\ 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