Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

Pass values back to the calling workflow

Avatar

Level 2

Using Adobe Classic, I have a requirement to call an API to get some PII data into the Marketing server at runtime.

For this, I am creating a workflow that will accept the input parameters, take its value and call the API and get the data back.

The way I am solutioning it is, that any workflow can call this workflow by making an External Signal call and get the PII back.

The challenge is how do I pass the values from this workflow to the calling workflow? Has anyone done this before?

Is there a better way to do this?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi rohank73357397,

You should instead work with a sub-workflow activity.

Limitation is that the sub-workflow activity can only stick to one targeting dimension.

Regards,
Vipul

View solution in original post

4 Replies

Avatar

Correct answer by
Employee Advisor

Hi rohank73357397,

You should instead work with a sub-workflow activity.

Limitation is that the sub-workflow activity can only stick to one targeting dimension.

Regards,
Vipul

Avatar

Level 2

Hi Vipul,

Thanks for your response.

I will try the sub-workflow activity today.

Avatar

Level 2

Hey Vipul,

Just tried the sub-workflow but was not able to figure out the output. Is there any sample/tutorial that is available online where I can check? I could see the only reference to sub-workflows here https://docs.campaign.adobe.com/doc/AC/en/WKF_Repository_of_activities_Order_activities.html#Sub-wor...

Avatar

Level 2

Hi Vipul,

I tried the sub-workflow and it worked. I was able to pass the variables from one to another.

Here is the what I did:

Created an workflow to get input as a Long URL parameter from the calling workflow.

Call an API to shorten the URL and then return the short URL back to the calling workflow.

The API workflow is as follows:

1563954_pastedImage_0.png

Then I created the source workflow in which I used the sub-workflow:

It sets the value of strText in Start and then calls a Subworkflow which does the job and returns the short URL which I am printing in the JS.

1563955_pastedImage_1.png

Note: I had to use instance.var.strText in my Start of the calling workflow to pass the values to the sub-workflow.

However I was able to use vars.shortURL in the Javascript after the values were returned from the sub-workflow.