Regarding adding recipient folder in update data activity dynamically | Community
Skip to main content
Adobe Employee
June 27, 2022
Question

Regarding adding recipient folder in update data activity dynamically

  • June 27, 2022
  • 3 replies
  • 1281 views

Hi team, 

 

I want to bring the recipient folder in my update data activity dynamically and the folder id should not be hardcoded.

 

Please refer to the following image.

 

Currently, I am adding this recipient folder myself in update the data

 

also, the folder id is hardcoded, an immediate help will be appreciated

 

 

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

3 replies

Amine_Abedour
Community Advisor
Community Advisor
June 27, 2022

Hello @mrityunjay,

 

If you can get the folderId prior to the update activity, store it in an instance variable, and use the variable in your update. something like this:

 

 

 

Br,

Amine

Amine ABEDOUR
Adobe Employee
June 27, 2022

I want to do this through enrichment please help me out

CedricRey
Level 5
June 28, 2022

Hi @mrityunjay 

As the link between recipient and folder has a default value, if you want to place the recipient in the default folder, the simpliest way to do it is to not put anything. The recipient will be placed automatically in the default recipient folder :

    <element defOnDuplicate="true" default="DefaultFolder('nmsRecipient', [@_folder-id])" name="folder" target="xtk:folder" type="link"/>

Otherwise, the Amine's solution is good with a custom queryDef.

Sukrity_Wadhwa
Community Manager
Community Manager
July 12, 2022

Hi @mrityunjay,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!

Sukrity Wadhwa