Create workflow to rename folder label | Community
Skip to main content
tejashriw155148
Level 4
May 4, 2020
Solved

Create workflow to rename folder label

  • May 4, 2020
  • 1 reply
  • 7613 views

Hi,

How can I create workflow to update folder label. 

Folders inside country should capitalized first letter and 1 blank space before paranthesis.

 

Eg. of correct - product (India)

Eg. of incorrect - Recipient(India)

 

 

Thanks,

 

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 Marcel_Szimonisz

Select all the folders with parent folder label equals to 'India' and plug it to 'Update data' activity where you update the label.

 

 

Query Activity

  • [parent/@label] == India

 

 

 

 

Update data activity:

  • Operation type: update
  • Record identification : Directly using the targeting dimension
  • Updated dimension to xtk:folder
  • destination label
  • source expression [target/@label] + ' (India)'

 

 
 

 

 

1 reply

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
May 4, 2020

Select all the folders with parent folder label equals to 'India' and plug it to 'Update data' activity where you update the label.

 

 

Query Activity

  • [parent/@label] == India

 

 

 

 

Update data activity:

  • Operation type: update
  • Record identification : Directly using the targeting dimension
  • Updated dimension to xtk:folder
  • destination label
  • source expression [target/@label] + ' (India)'

 

 
 

 

 

tejashriw155148
Level 4
May 5, 2020

Hi @marcel_szimonisz 

 

Thanks for the solution. I ran the workflow and its updating country name instead of rename like

 
 
 
 
 

 
 

It means if subfolder does not contain country name then need to add country name and if country name already exist then it should update with correct naming convension.

 

Thanks,