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