Expand my Community achievements bar.

SOLVED

Lookup on an different table to fetch data

Avatar

Level 5

Hi All,

 

In a workflow, that I have created to send emails, I get the initial data from an external table, which I enrich with the ACC Recipients table. After the enrichment, I get the "Country" of the contacts, which is need to query on another external table, which will give me the value against each contact. This value along with other recipients value, I need to be present in the Email Delivery, that I send next.

 

The issue is if I add another enrichment after the Recipient enrichment, I get the value but the Delivery fails as it expects Recipient Schema. 

 

Can you please suggest some solution to achieve this, where I can fetch the hash value, and also send the delivery

 

Regards,

DG

 

 

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 6

After the "Enrich" when you retrieve the corresponding recipient :

CedricRey_0-1657271452639.png

CedricRey_1-1657271476466.png

(Sorry for the screenshot, don't have access to english instance, only french at the moment, but you should understand)

View solution in original post

14 Replies

Avatar

Community Advisor

Hello @dipendu_g 

 

You can use the change dimension activity to use the recipient schema for delivery,


     Manoj
     Find me on LinkedIn

Avatar

Level 5

The Recipient Schema is not showing up in the Change Dimension Activity

 

Regards,

DG

Avatar

Community Advisor

Then you will have to use the enrichment activity to reconcile the data with the recipient on the basis of your email or another identifier.


     Manoj
     Find me on LinkedIn

Avatar

Level 5

Hi Manoj,

 

Step 1 - Gettig Data from External Table

Step 2 - Enriching with Recipient

Step 3 - Using Recipient country to fetch data from another table (external)

Step 4 - Change Dimension to revert back targeting dimension to Recipient - ( I am unable tp see the Recipient dimesnion here )

Step 5 - Email Delivery

If you see, I am enriching the data on Step 3, again, I need to enrich back ?

 

Regards,

DG

Avatar

Community Advisor

@dipendu_g 

 

You already have the recipient from the enrichment from step 2. Where did that go in the next steps?


     Manoj
     Find me on LinkedIn

Avatar

Level 5

On Step 2, When I enrich my Targeting Dimension is now Recipient. After that when I enrich again, the TD changes to that Table.

But in Change Dimension, I am unable to go back to the Recipient TD

 

Hope, I could understand your question and answer it 

 

Regards,

DG

Avatar

Level 6

Hi @dipendu_g ,

If you send the email from the workflow, and don't need to keep the datas after the sending, you can use temporary datas, from the workflow, with the next syntax :

<%= targetData.mydata %>

where "myData" is the name of the data in the workflow (you can use alias into the query or enrich activity, for more convenient manipulation).

 

Cedric

Avatar

Level 5

Hi Cedric,

 

I have an external table with the following columns

Contact MailInstitutionScore
aa@bb.comInstitution 150
aa1@bb.comInstitution 175
aa2@bb.comInstitution 285

 

In Step 2 I enrich this with Recipients to get the Country

 

This country I need to lookup on another external table to fetch the url, 

CountryUrl
Australiahttps://xxx.yyy.com#aus
New Zealandhttps://aaa.bbb.com#nz

 

In the final email, I need all the fields, contact ( to send mail ), institution, score and url

Request if you can tell the way to achieve the same

Regards,

DG

 

Avatar

Level 6

If the initial datas come from an external source (for exemple a file), as @_Manoj_Kumar_  said, you'll have to change the dimension to retrieve the corresponding recipients. Ensure that the "keep extra datas" is checked (2nd tab 'Result').

This way, you'll send email to nms:recipient (and not to targets defined in an external file). And you can use the temporary datas with the "targetData.XXX" syntax. The "XXX" must be the name of the attribute or element (and not the label) in the temporary schema in the incoming transition of the delivery activity. That's why it could be better to use aliases.

Avatar

Level 5

@CedricRey , At what stage I need to use the CD activity. the CD activity was not identifying the Recipients for me. Will you be able to guide me

 

Regards,

DG

Avatar

Correct answer by
Level 6

After the "Enrich" when you retrieve the corresponding recipient :

CedricRey_0-1657271452639.png

CedricRey_1-1657271476466.png

(Sorry for the screenshot, don't have access to english instance, only french at the moment, but you should understand)

Avatar

Level 5

Hi Cedric,

 

Sorry, but I am unable to get this screen.

dipendu_g_0-1657272722983.png

 

I am unable to see this

 

Regards,

DG

Avatar

Level 5

Hi Cedric,

 

I got it now. Thanks a lot to help me and show me the screenshot.

Really appreciate

 

Regards,

DG