Optional attributes in ACS workflows

Avatar

Avatar

Kornel_Keseru

Avatar

Kornel_Keseru

Kornel_Keseru

25-09-2017

Hello!

I'm trying to build reusable workflow templates in Adobe Campaign Standard that can handle variable input structure (without having to reconfigure certain workflow steps every time the input changes).

For example, in the the Extract file step I want to be able to cope with optional attributes (that may or may not be present on the input transition), and default them to empty string for the output.

I thought that an expression like this - for the missing 'optionalAttribute' - could handle the attribute that is not always present, and write out an empty string:

Case(When(NULL != optionalAttribute, optionalAttribute),Else(""))

But the workflow fails with the following error:

- 'optionalAttribute' element unknown

I understand, that to ensure consistency, we should always configure a fixed structure for input files and transitions, but being able to handle the case like above would make our workflows easier to reuse.

Is it possible to write an expression for e.g. the Extract file step, that handles the case above?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

florentlb

Total Posts

(val/1000)?string[".0"]}K

Likes

233

Correct Answer

239

Avatar

florentlb

Total Posts

(val/1000)?string[".0"]}K

Likes

233

Correct Answer

239
florentlb

10-10-2017

Hi Kornel,

This seems unlikely to work from my understanding. Activities work with defined schemas, so I'm not sure how it can work with a structure that can change between 2 executions.

As of now, you cannot use such variables with ACS anyway.

I'd recommend creating a workflow template that you'd be able to adapt manually for each case (that would limit the manual actions to take).

Hope this helps,

Florent

Answers (0)