Expand my Community achievements bar.

SOLVED

Synchronizing a programmatically created campaign back to test & target

Avatar

Level 5

My requirement is :

1. to create an external campaign in Target( Not through AEM) -- Done by using saveCampaign API provided by Target

2. Fetching the newly created campaign in AEM and creating corresponding nodes in JCR. -- Done by consuming viewCampaign API and subsequently craeting nodes with the appropriate properties.

3. Now I can see the campaign created in JCR and I could create offers inside it.

4. Now I want this updated campaign to be synched back with the one that was created in Target in step 1.  ( I tried integrating this campaign with Target by updating properties in the campaign through AEM. -- as shown in the screenshot pasted below.)

However in target the campaign is not yet updated to include the offer that I created in step 3.(the campaign is not modified).

I have observed that the campaign created via AEM is in activated state however the one that I created programmatically is in deactivated state, could that be a reason the campaign is not getting updated?

 

Any suggestions in this regards would be a great help.

 

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 8

Hi,

 

Apologies for the delay in responding. I checked on this with the product engineering team and currently this workflow is not supported. In case you feel this workflow is beneficial for other users also, I'd request you to raise an enhancement request. More details on it are present here.

 

Thanks

Nikhil

View solution in original post

6 Replies

Avatar

Level 5

asn_177 wrote...

My requirement is :

1. to create an external campaign in Target( Not through AEM) -- Done by using saveCampaign API provided by Target

2. Fetching the newly created campaign in AEM and creating corresponding nodes in JCR. -- Done by consuming viewCampaign API and subsequently craeting nodes with the appropriate properties.

3. Now I can see the campaign created in JCR and I could create offers inside it.

4. Now I want this updated campaign to be synched back with the one that was created in Target in step 1.  ( I tried integrating this campaign with Target by updating properties in the campaign through AEM. -- as shown in the screenshot pasted below.)

 

However in target the campaign is not yet updated to include the offer that I created in step 3.(the campaign is not modified).

I have observed that the campaign created via AEM is in activated state however the one that I created programmatically is in deactivated state, could that be a reason the campaign is not getting updated?

 

Any suggestions in this regards would be a great help.

 

Thanks in advance.

 

Attaching the image

Avatar

Level 8

Any particular reason why you are creating the Campaign using the API and want it create offers in AEM? Have you referred to this page which talks about creating campaigns and offers in AEM ?

 

Thanks

Nikhil

Avatar

Level 5

Nikhil, Thanks for the reply.

I have craeted the campaign through AEM as suggested by you.

However there could be an environment where Target is integrated with more than one AEM like systems.

idea is in such a set up a campaign created from an  external system could be brought in AEM and modified and synched back.

So essentially target would hold latest campaign data and other peripheral systems like AEM will go on using / modifying it.

is such use case possible?

Thanks in advance for your help.

Avatar

Correct answer by
Level 8

Hi,

 

Apologies for the delay in responding. I checked on this with the product engineering team and currently this workflow is not supported. In case you feel this workflow is beneficial for other users also, I'd request you to raise an enhancement request. More details on it are present here.

 

Thanks

Nikhil

Avatar

Level 8

Thanks for letting me know. Let me check on if and how this use can be achieved and revert.

 

Thanks

Nikhil

Avatar

Level 5

That would be a great help Nikhil.

Thanks in advance.