We were looking for some options to allow commenti...
# general
e
We were looking for some options to allow commenting/conversations on transactions in NetSuite. SuiteSocial seemed pretty poor and possibly on the way out. We looked embedding other more modern solutions and wanted to share one option we came up with for those that use Office 365. I found an old article from 10 years ago about a partnership between Yammer and NetSuite and appears that SuiteSocial was originally planned to be built on Yammer. I'm guessing Oracle must have pulled the plug when Microsoft bought them, but some of you might know otherwise. If anyone is interested here's what we came up with. Still a work in progress so if anyone has any ideas for improvement, please share. We just drop this in an inline html field to display a Yammer thread specific to the transaction.
Copy code
<div id="embedded-feed" style="height:800px; width:1024px;"></div>
  <script type="text/javascript" src="<https://canary-azure.assets-yammer.com/assets/platform_embed.js>"></script>
  <script type="text/javascript">
      /*
      * Build simple URL that will work across view/edit modes
      * and can handle additional query strings appended.
      * Otherwise, a new conversation will be initiated for each unique URL
      */
      const params = new URLSearchParams(location.search);
      const thisUrl = window.location.href.split('?')[0] + '?id=' + params.get('id');

      /*
      * Embed yammer feed. Some of these settings
      * are O365 account specific. You should confirm
      * settings with your O365 administrator.
      */
      yam.connect.embedFeed({
          container: "#embedded-feed",
          network: "<ENTER YOUR YAMMER NETWORK ID>",
          feedType: "open-graph",
          config: {
              use_sso: true,
              header: false,
              footer: false,
              promptText: "Discuss this transaction",
              showOpenGraphPreview: false,
              hideNetworkName: false,
              theme: "light",
              defaultGroupId: "<ENTER YOUR YAMMER COMMUNITY ID AFTER CONVERTING FROM BASE64>"
          },
          objectProperties: { 
              url: thisUrl.toString(),
              fetch: false,
              type: "page"
          }
      });
  </script>
m
This is really neat. Thanks for sharing. Managed to set this up for my org in 5 mins. If we make any changes I'll let you know
👏 1