Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.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
Json 删除Microsoft团队可操作消息中的“查看更多内容”(所有内容的默认视图)_Json_Microsoft Teams_Office365connectors - Fatal编程技术网

Json 删除Microsoft团队可操作消息中的“查看更多内容”(所有内容的默认视图)

Json 删除Microsoft团队可操作消息中的“查看更多内容”(所有内容的默认视图),json,microsoft-teams,office365connectors,Json,Microsoft Teams,Office365connectors,我已经成功创建了一个脚本,可以通过传入的hooks连接器发布到microsoft团队,但是当它发布消息时,潜在的操作总是隐藏在“查看更多”标记后面。是否有办法强制始终显示此内容 参考代码: $data = array( '@type' => "MessageCard", '@context' => "http://schema.org/extensions", 'themeColor' => "1B2C58", '

我已经成功创建了一个脚本,可以通过传入的hooks连接器发布到microsoft团队,但是当它发布消息时,潜在的操作总是隐藏在“查看更多”标记后面。是否有办法强制始终显示此内容

参考代码:

$data = array(
        '@type' => "MessageCard",
        '@context' => "http://schema.org/extensions",
        'themeColor' => "1B2C58",
        'summary' => "BOT has closed a sale!",
        'sections' => array(
        0 => array(
            'activityTitle' => $username . " has closed a sale!",
            'facts' => array(
            0 => array(
                'name' => "Customer",
                'value' => $accname), 
            1 => array(
                'name' => "Product",
                'value' => $interestTitle . " - " . $opTypeArray[$opType] . $extra), 
            2 => array(
                'name' => "Sales Value",
                'value' => $value . " (excl. VAT)"), 
            3 => array(
                'name' => "Purchase order",
                'value' => $poInput),
                ),
            'markdown' => True
            ),
        ),
        'potentialAction' => array(
            0 => array(
                '@type' => "ActionCard",
                'name' => "Add a comment",
                'inputs' => array(
                0 => array(
                    '@type' => "TextInput",
                    'id' => "comment",
                    'title' => "Enter your comment",
                    'isMultiline' => true),
                    ),
                    ),
            1 => array(
                '@type' => "OpenUri",
                'name' => "View Opportunity on ADM",
                'targets' => array(
                0 => array(
                    'os' => "default",
                    'uri' => "https://...." . $ops),
                    ),
                    ),
            2 => array(
                '@type' => "OpenUri",
                'name' => "View Quotation",
                'targets' => array(
                0 => array(
                    'os' => "default",
                    'uri' => "https://....". $newUrl),
                        ),
                    ),
                ),
            );

我们添加了一项功能,如果消息中有操作,则不显示“查看更多”按钮。这将很快提供给我们的所有用户


谢谢。

此功能有更新吗?我希望能够完全消除“查看更多”、“全部展开”、“来自…的回复”以及任何其他阻止Microsoft团队中所有内容自动展开/显示的内容。