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

问题描述 投票:0回答:1

我已经成功创建了一个脚本,通过传入的钩子连接器发布到微软团队,但是当它发布消息时,潜在的操作总是隐藏在“查看更多”标签后面。有没有办法强制它始终显示?

参考代码:

$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),
                        ),
                    ),
                ),
            );
json microsoft-teams office365connectors
1个回答
1
投票

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

谢谢。

© www.soinside.com 2019 - 2024. All rights reserved.