Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Create workflow to rename folder label

tejashriw155148
Level 4
Level 4

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)

 

tejashriw155148_0-1588597709303.png

 

Thanks,

 

1 Accepted Solution
MarcelSzimonisz
Correct answer by
Community Advisor
Community Advisor

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

 

 

image.png

 

 

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)'

 

 
 

image.png

 

 

View solution in original post

5 Replies
MarcelSzimonisz
Correct answer by
Community Advisor
Community Advisor

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

 

 

image.png

 

 

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)'

 

 
 

image.png

 

 

View solution in original post

tejashriw155148
Level 4
Level 4

Hi @MarcelSzimonisz 

 

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

 
 
 
 
 

renameFolderPNG.PNG

 
 

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,                            

 

 

MarcelSzimonisz
Community Advisor
Community Advisor
You should have added condition in the first query where the Lower([folder/@label]) does not contain india
tejashriw155148
Level 4
Level 4

Hi @MarcelSzimonisz 

 

How can we update subfolder if it already contain India with required format?