cancel
Showing results for 
Search instead for 
Did you mean: 

Email List - List Tag SAP CPQ

akhilesh595
Explorer
0 Kudos
170

Hi CPQ folks,

I was working on Email lists recently and noticed that whenever we insert the List tag to pull all the emails from a custom table it is not working(Email is not getting triggered when list tag pulls multiple emails). Only working when the list tag is pulling single mail id from the custom table.

akhilesh595_0-1737549650672.png

When adding the list tag in the email textbox.

The idea is to maintain the emails in a custom table and pull it into email list so that the notifications will be triggered.

Any idea or suggestion would be appreciated.

Thanks,

Akhilesh.

View Entire Topic
Fancy_Zou
Product and Topic Expert
Product and Topic Expert

Hi,

Your observation is currently a known limitation of the product. To address this, please submit an enhancement request at SAP CPQ | Customer Influence Portal .

In the meantime, here is a verified workaround for your reference:

  1. Create a custom field at the quote level.
  2. Identify an appropriate IronPython scripting event to dynamically populate the custom field with the email addresses of the target recipients, one at a time.
  3. For each email address assigned, use the script to trigger the quote action, which will send the relevant email notification.

This method allows you to dynamically send a single email content to multiple recipients.

For how to execute custom/standard actions in Quote 2.0, you may check Develop - SAP CPQ Migration Guide to Quote 2.0 Engine to locate the guide for migration of "Quote.ExecuteAction(action)".

Best Regards,
Fancy

akhilesh595
Explorer
0 Kudos

Hi Fancy,
Thanks for your response, Since "Quote.ExecuteAction()" method is only available for 1.0. Are you saying to write the script knockout side to trigger the action multiple times ?

Thanks,
Akhilesh.

Fancy_Zou
Product and Topic Expert
Product and Topic Expert

Hi @akhilesh595 ,

I've supplemented the info you need in the answer.

akhilesh595
Explorer
0 Kudos

Hi Fancy,

Thanks for the reference material.
We are supposed to send emails to around 10 emails, 10 API calls in loop will impact the performance 😅.
I am trying to achieve it in one other way (knockout) although it will impact performance. I will let you know if it works.

Thanks for the response.

Thanks,
Akhilesh.

Fancy_Zou
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi, You could also try setting up a custom background job so that it won't impact the concurrent user's operation. The basic concept is invoking the scripting & API outside SAP CPQ using external job scheduling tools, such as Timer on SAP Integration Suite.
akhilesh595
Explorer
0 Kudos
Sure, Scheduling a JOB is a good idea but Knockout approach is working for us as a temporary solution. Hope SAP will introduce a standard solution.