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****
Can you try and explain why you need the Campaign Name inside the customer data flow ? what's your end goal with that ? what sort of business case are you trying to address ?
One common pattern for customers is to set a "ProgramKeyCode" property (set the value during the campaign design time) and use that value during offer processing. You can refer to that
property in the offer shapes.
Instead of explaining the technical nature of your problem, please explain in terms of business use case, that would give possibilities for more broader recommendations.
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.
Thanks In Advance.
Posted: 2 years ago
Posted: 13 May 2020 7:59 EDT
Andre Genser (AndreG66)
Senior Technology Consultant