Repeating Emails based on an Array

Hi,

I have a CDT with claim information. This cdt has the claim start date and the claimant information such as name and email and the claim expiry date along with other details. We have to retrieve all the claims that exceeded 30 days in the system with claim status still as open and alert the claimant that it is pending.

I have written a rule to get such claims from the database and am able to access them in the Process Design and for the send Email activity after the Script Task, I have enabled multi node from the other tab.

Now, I am not able to customize with each iteration which user the notification should go to and customize the information in the body of the email.

I am trying to see if pv!ClaimInfo_cdt.customerEmailID will work in the To field of the Email smart service, but not sure how to access the index while the multi node is iterating on each record in the CDT array.

Hope my question is clear. I am new to Appian and I am facing this difficulty.

 

Thanks,

Adi

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi  yes I agree, you can use tp!instanceindex but I am having a quick question.

    Will this email body content be same for all users, if so then try sending this email to group of emails instead of MNI because performance wise MNI is not recommended to use unless that's your last choice. But yes if the body contents are different for all users then probably you can go for MNI.

    But assume you have 1000 of users, and you want to send an email to each one of them,  hence try to process it in batch so that it should not impact the server performance.

  • Hi Alok,
    This will be different for each user as the Claim info is different for each user. There will ever only be some 30-100 pending claims that are older than 90 days and are active. So your suggestion on performance do not apply for my specific case even though I will keep this mind in designing future MNIs.

    Thanks,
    Adi
Reply Children
No Data