cancel
Showing results for 
Search instead for 
Did you mean: 

How to add the Partners in parties involved for the campaign creation via code

Former Member
0 Kudos

Hello Experts,

We have a requirement wherein we are creating the coupon campaign. We need to add few partners under Parties involved. Can anyone help me as this is different from other CRM order creation.

Thanks,

Mayank

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Faisal,

Can y ou please provide the code snippet if possible.

Thanks,

Mayank

faisal_pc
Active Contributor
0 Kudos

Hi Mayank,

I will try a sample code tomorrow and let you know if it works.

Thanks,

Faisal

Former Member
0 Kudos

Thanks Faisal,

I will wait for your response.

Mayank

Former Member
0 Kudos

Hi Faisal,

I recieved a code in my previous thread psted above. We will check and let you know.

Thanks,

Mayank

faisal_pc
Active Contributor
0 Kudos

Hi Mayank,

A working answer is given by .

It's the same way by creating a related entity CPGPartnerRel. Please check the same.

Thanks,

Faisal

Former Member
0 Kudos

Hi Faizal,

I am getting the error in line:

lr_part_entity = lr_partset_entity->create_related_entity( 'CPGPartnerRel' ).

 

lr_part_entity is coming blank.

 

Can you assist .

 

Thanks,

Mayank

Former Member
0 Kudos

Hi Faizal,

The code posted by Manasa works. Thanks for all your help!!

Mayank

Answers (1)

Answers (1)

faisal_pc
Active Contributor
0 Kudos

Hi Mayank,

Could you please give a try with the methods of class CL_CRM_MKTPL_APPL_BASE. I am not sure whether this could be of help. However, I had used this for updating campaigns to target groups.

Please check the method IF_CRM_MKTGS_PAR_DATA_PROVIDER~PARTNER_CREATE.

Thanks,

Faisal

Former Member
0 Kudos

Hi Faisal,

Please look at below thread. I have also posted the same question there. The above class seems no help.

Please assist how i can code using BOL.

Thanks,

Mayank

faisal_pc
Active Contributor
0 Kudos

Hi Mayank,

Hmm...If you are going with BOL coding, you can use the component MKTCPG with Object Campaign. Now create the related entity CPGPartnerSet.

Thanks,

Faisal

Former Member
0 Kudos

Hi Faisal,

Thanks for the response.

I can see CAMPAIGN is the root object. and CPGPARTNERSETREL is the aggregation and to which we have CPGPartnerSet as the dependent object.

Will it work ?

Thanks,

Mayank