Posted: 3 Jun 2019 14:15 EDT Last activity: 13 May 2020 8:18 EDT
Getting Campaign name on Data Flow
We have customized Pega OOTB data flow CustomerData and inserted one data transform within that to set few parameters for the customers. We need to capture the CampaignName within that data transform which is invoking the data flow at runtime. I have found that on pyworkPage, pyLabel contails the campaign name for campaign id thread.I have run the data transform standalone on Campaign thread, Campaign Name is set correctly on that. But whenever we are running the campaign from marketing portal, Campaign name is not set. I assume as data flow run can't be captured or debugged on thread level like other rules, it's not able to hold the parameter which contains the campaign name. Can you please suggest any alternate way in which we can get the runtime Campaign name within data flow? Thanks in Advance.
***Edited by Moderator Marissa to update platform capability tags****
Hi,Sorry for the delay. Let me elaborate the issue a bit more. We have customized the "CustomerData" data flow which is being called for all campaigns in our application.We are implementing something like, we will call a service for the batch data flows for getting few informations, whereas for realtime we will only run a SQL query.We have already included that within CustomerData Data Flow. the issue in which I am stucked is, how we can conditionally execute this steps, like, how to differentiate between batch and Realtime to execute above steps as it is being called from DataFlow and it runs on ProgramRUN context(DDF), not on WorkObject.I know we have EnableEvents property which is set on pyWorkPage and distinguishes between batch and realtime. BUt this property value is not reachable from DataFlow context.It will be better if someone can have some solution for this, like, if we have some different templates for realtime and batch data flow and that we can configure to implement this.