How to get current program/campaign name? | Community
Skip to main content
marcinkacz
Level 3
August 2, 2017

How to get current program/campaign name?

  • August 2, 2017
  • 2 replies
  • 6758 views

Hi,

I'm  building workflow in campaign. I want to add alert activity there. I would like to include some dynamic data in this alert. I know how to add workflow label - <%= instance.label %>. But how can I include:

- campaign label/name

- program label/name

- plan label/name

- plan's folder label/name

Do you have any ideas?

Thank you,

Marcin

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

_nkur
Level 2
August 2, 2017

You need to use task variable for it, below an example for campaign label.

<%= task.workflow.operation.label %>

marcinkacz
Level 3
August 3, 2017

Thank you for your response. Unfortunately this code returns empty value. I have tried with "task.workflow.operation.internalName" - result is the same. Will you be so kind and write me more about this syntax? Or maybe do you know where I can find some documentation?

Thank you,

Marcin

david--garcia
Level 10
August 3, 2017

If you use the following loop you can get an idea of the object keys available to you.

In the objects value, try also; task, task.workflow

Shall give you something like

so by doing logInfo(instance.label); It gives me the workflow title (screenshot https://db.tt/c1JVowRuhd )

Try playing around with these objects, not sure how to get the campaign name, because i am testing it on a normal workflow.

vraghav
Adobe Employee
Adobe Employee
August 11, 2017

Following thread will help you.

Re: Variables in File Name