• GJS Greg
  • NEWBIE
  • 0 Points
  • Member since 2018
  • GJS

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 8
    Replies
Hi all,

Is there any documentation on Javascript support for Channel Menu yet?
All existing chat functions aren't available anymore like pre-populating fields, extra prechat form details, mapping fields to SF chat transcript, offline chat support?
After I installed it with the existing code I noticed JS errors and I guessed that the functions changed from 
embedded_svc.settings.XXXXX

to:

embedded_svc.menu.settings.XXXXX
Which removed the JS errors but the fucntions don't work so it's like they haven't brought across these existing features. 
I can't believe this was released to market without any support and documentation and for functionality to go backwards and make it impossible to use the menu.

Hi,

before the spring'20 version, chat had been implemented, along with the channel menu. Everything worked perfectly. The code looked like this:
 

<script type='text/javascript' src='https://service.force.com/embeddedservice/menu/fab.min.js'></script>

<script type='text/javascript'>
	var initESW = function(gslbBaseURL) {
		embedded_svc.menu.chat.settings.prepopulatedPrechatFields = {
            FirstName: "{{fName}}",
            LastName: "{{lName}}",
            Email: "{{email}}",
            Telefone: "{{phone}}"
        };
		
		
		embedded_svc.menu.init(
			'https://xxxxxxx.my.salesforce.com',
			'https://d.xxxxxxxxxxxxxx.salesforceliveagent.com/chat',
			gslbBaseURL,
			'xxxxxxxxxxxx',
			'Channel_Menu'
		);
		
	};

	if (!window.embedded_svc || !window.embedded_svc.menu) {
		var s = document.createElement('script');
		s.setAttribute('src', 'https://xxxxxxx.my.salesforce.com/embeddedservice/menu/fab.min.js');
		s.onload = function() {
			initESW(null);
		};
		document.body.appendChild(s);
	} else {
		initESW('https://service.force.com');
	}
</script>
 

After the update stopped working. An undefined object error now occurs. Investigating, I imagine that this happens because now the channel menu options are dynamic and can be changed by the client side.

Any suggestions or examples to fill in the pre-form data?

Hi all,

Is there any documentation on Javascript support for Channel Menu yet?
All existing chat functions aren't available anymore like pre-populating fields, extra prechat form details, mapping fields to SF chat transcript, offline chat support?
After I installed it with the existing code I noticed JS errors and I guessed that the functions changed from 
embedded_svc.settings.XXXXX

to:

embedded_svc.menu.settings.XXXXX
Which removed the JS errors but the fucntions don't work so it's like they haven't brought across these existing features. 
I can't believe this was released to market without any support and documentation and for functionality to go backwards and make it impossible to use the menu.
Do we have any documentation on Javascript support for Channel Menu.  We are looking for  JavaScript documentation for Web snap ins. 

Hi guys! 

I am in task of adding/assigning topic/s to specific knowledge article and found out this chatter REST API Topic and Article Assignments 
and looks like this is the one I need? 

Okay, so upon testing and following the steps on this documentation, I encountered an error Response error Invalid value for article topic operation type: AssignTopicsToArticle error 400

Here is my actual url 

https://marvingf-dev-ed.my.salesforce.com/services/data/v40.0/connect/communities/0DB7F000000fy3WWAQ/topics/data-category-groups/MarvinGroup/data-categories/Marv Category/articles

https://marvingf-dev-ed.my.salesforce.com/services/data/v40.0/connect/communities/0DB7F000000fy3WWAQ/topics/data-category-groups/MarvinGroup/data-categories/Marv Category/articles


and this is my request body
Header: Content-Type = application/json

{ "operation": "AssignTopicsToArticle", "topicNames": ["API", "Chatter REST API", "ConnectApi"] }

Error Response:

[ { "errorCode": "POST_BODY_PARSE_ERROR", "message": "Invalid value for article topic operation type: AssignTopicsToArticle" } ]

I already set up the following; 

* community website
* created a data categories
* Enabled Topics for object

Maybe I forgot to config something? or Is there an alternative ways to assign a topics for specific article using REST API? thanks!

Regards,
Marvin