How to send email notifications using person/group picker control RRS feed

  • Question

  • Hi All, I have a requirement where I need to put person/group control on infopath form and let it allow to add both users and groups. At the submission of the form email notifications need to be sent to the all the users selected in person/group picker control. Can anybody please explain me how I can achieve this? I appreciate your suggestions. Thanks, Rahul Babar
    Dot Net, Sharepoint, Infopath Developer
    Thursday, December 15, 2011 12:40 AM


  • Hi Rahul,

    Please add a new field, set is default value using following formula, then you can get all user accounts in this field. Publish the form to SharePoint form library and don’t forget to add the field as a SharePoint column when publish the form.

    eval(eval(Person, 'concat(pc:AccountId, ";")'), "..")

    (Note: Please replace Person by inserting the pc:Person group field and pc:AccountID is the pc:AccountID field under pc:Person group)

    So we can get the accounts in a list column, send emails using workflow using this field.

    Best regards.

    Emir Liu

    TechNet Community Support

    • Marked as answer by Emir Liu Friday, December 23, 2011 1:55 AM
    Friday, December 16, 2011 8:37 AM