Forum Discussion

jdefranclieu's avatar
jdefranclieu
Copper Contributor
Jul 27, 2021

Automatic replies in flow

Hi,

I created a flow to approve activities from a form in a SharePoint list, at the end I setup the automatic replies to be enabled if some conditions were met.

This activities approval are available for everybody, but the auto replies connector is enabling the OOO message just for the flow creator.

How can I enable this connector for the requestor of he form instead of the creator of the flow ?

Thanks

Jerome

4 Replies

  • akashsonare0203's avatar
    akashsonare0203
    Copper Contributor
    You want to update email from should be the user who approved item instead of connector connection id?
    • jdefranclieu's avatar
      jdefranclieu
      Copper Contributor

      Hi,

      I would like to update the "from" of the "automatic replies V2" connector, but this option is not available in it. Do you know how to do that ?

      Thanks

      akashsonare0203 

      • akashsonare0203's avatar
        akashsonare0203
        Copper Contributor

        jdefranclieu 

        Two options are available to change email from.
        1) Use action : Send an email from a shared mailbox : In this action you can update email from to shared mail box id.

        2) Use action : Send an HTTP request to SharePoint : In this action you need to specify following properties

        • Site Address: Use SharePoint Site URL
        • Method: POST
        • Uri: _api/SP.Utilities.Utility.SendEmail
        • Specify following headers
          • Content-Type: application/json;odata=nometadata
          • Accept: application/json;odata=nometadata
        • Specify following JSON in Body
          {
              ‘properties’: {
                  ‘From’: ‘@{body(‘Get_item’)?[‘From’]?[‘Email’]}’,
                  ‘To’:[‘@{triggerBody()?[‘To’]?[‘Email’]}’],
                  ‘Body’: ‘@{variables(‘EmailBody’)}’,
                  ‘Subject’: ‘@{variables(‘EmailSubject’)}’
              }
          }

        In From property you can specify User ID

        By this way you can update Email From.

Resources