Unable to update country for recipient through Workflow | Community
Skip to main content
Level 2
March 28, 2019
Solved

Unable to update country for recipient through Workflow

  • March 28, 2019
  • 2 replies
  • 4545 views

Hello,

We have a situation where we need to update the country for a recipient dynamically in the workflow through the update data activity,

Though we map the country field to the value we need, it's not updating.

Scenario:

Each of the recipient may have different country.

can someone please help us on this.

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

The field country is a linked object (nms:country) to the recipient.

Link condition is the  location/@countryCode  which is supposed to contain the ISO2 country code defined in the country table.

i.e. you need to set the country code within the Update Data activity.

2 replies

bisswangAdobe EmployeeAccepted solution
Adobe Employee
March 28, 2019

The field country is a linked object (nms:country) to the recipient.

Link condition is the  location/@countryCode  which is supposed to contain the ISO2 country code defined in the country table.

i.e. you need to set the country code within the Update Data activity.

Adobe Employee
July 3, 2022

There are two attributes iso2 and iso3 for countrycode .How will these two type of codes will be updated in a single countrycode attribute.

Adobe Employee
July 4, 2022

Hi @smritifotedar 

As mentioned in the post, the field in Recipient to update is the location/@countryCode whihc is the ISO2 code...

Thanks

Denis

Adobe Employee
July 3, 2022

Adobe Employee
July 4, 2022

Hi @smritifotedar 

I am a bit confused by your workflow:

You do a query on nms:recipient to get get a list of recipient --> fair enough.

How do you get the country code you want to update these recipients, do you bring it in Additional Data?

The field to update is simply @countryCode in the destination of the Update activity. 

Thanks

Denis

Adobe Employee
July 4, 2022

We do not have country code in the csv data file, but having country column .We want to populate country code from country column in existing attribute , please let me know how can we do the same