Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint json如何在电子邮件正文中插入列值_Json_Sharepoint - Fatal编程技术网

Sharepoint json如何在电子邮件正文中插入列值

Sharepoint json如何在电子邮件正文中插入列值,json,sharepoint,Json,Sharepoint,我想根据Sharepoint列表中的值生成电子邮件 在电子邮件正文中,我想在一个段落中使用两列值。第1列=顾问,第2列=辅导结果 尝试像这样将这两个部分连接在一起 "txtContent": "We completed coaching for =[$Consultant] please see the following updates + ' ' + [$Coaching Outcomes]" 使用来自的示例 下面是我的完整代码。我无法在不接收格式

我想根据Sharepoint列表中的值生成电子邮件

在电子邮件正文中,我想在一个段落中使用两列值。第1列=顾问,第2列=辅导结果

尝试像这样将这两个部分连接在一起

"txtContent": "We completed coaching for =[$Consultant] please see the following updates + ' ' + [$Coaching Outcomes]" 
使用来自的示例

下面是我的完整代码。我无法在不接收格式错误的情况下将txtContext块集成到电子邮件json中

电子邮件格式取自Microsoft文档-


您不需要添加外部{}

  {
   "$schema":"https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
   "elmType":"div",
   "children":[
      {
         "elmType":"span",
         "style":{
            "padding-right":"8px"
         },
         "txtContent":"@currentField.title"
      },
      {
         "elmType":"a",
         "attributes":{
            "iconName":"Mail",
            "class":"sp-field-quickActions",
            "href":{
               "operator":"+",
               "operands":[
                  "mailto:",
                  "@currentField.email",
                  "?subject=Task status&body=Please see coaching completed.\r\n---\r\n",
                        "@currentField.title",
                        "\r\n",
                  "We completed coaching for =",
                  "[$Consultant]",
                  "please see the following updates ",
                  " [$Coaching Outcomes]"
               ]
            }
         }
      }
   ]
}

最后,我完成了对=[object object]的指导,请查看以下更新[$coaching Outcours]。它没有插值。
  {
   "$schema":"https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
   "elmType":"div",
   "children":[
      {
         "elmType":"span",
         "style":{
            "padding-right":"8px"
         },
         "txtContent":"@currentField.title"
      },
      {
         "elmType":"a",
         "attributes":{
            "iconName":"Mail",
            "class":"sp-field-quickActions",
            "href":{
               "operator":"+",
               "operands":[
                  "mailto:",
                  "@currentField.email",
                  "?subject=Task status&body=Please see coaching completed.\r\n---\r\n",
                        "@currentField.title",
                        "\r\n",
                  "We completed coaching for =",
                  "[$Consultant]",
                  "please see the following updates ",
                  " [$Coaching Outcomes]"
               ]
            }
         }
      }
   ]
}