Discussions

Ask a Question

Custom Messaging: Sending Messages with Attachments... but, how?

![](https://files.readme.io/9a49eec-image.png) I have successfully obtained my uploadSignedUri and I now want to upload my attachment. How? the link in the documentation takes you to the "Generate Upload URI" so that's no help. I understand that to upload the attachment i POST multipart/formdata containing the attachment in the mediaFile field. when i do that, i get 400 "the request was rejected because no multipart boundary was found". I have some working code to copy by Andrew Prokop and my non working code it very similar to his. He's using axios, which I believe abstracts some of the handling of formdata and so my pure javascript code is probably missing some details here - what details? this call appears to be completely undocumented. I have tried a number of variations in the call and only succeeded in changing the error message. my code runs client side and i've just picked the file with: x = showOpenFilePicker() off the local disk. i then have: x[0].getFile().then( f=>ulFile( text, f)); and (skipping obtaining the upload URL) in ulFile I have: ``` let formdata = new FormData(); formdata.append( 'mediaFile', f); let ulOpts = { method: 'POST', headers: { 'Content-Type': 'multipart/form-data', 'Accept': 'application/json' }, body: formdata } console.log( "Media Upload to: " + ulObj.uploadSignedUri); console.log( "Media Upload opts: " + JSON.stringify( ulOpts, undefined, 4)); fetch( ulObj.uploadSignedUri, ulOpts).then( r=> r.json()).then( o=> ulFile3( o)); ``` Any ideas??

Async Messaging: customer ends session: how to end agent session?

I have successfully developed a “chat” application using Async Messaging and an intermediary NodeJS service that allows a customer on a website to chat with an agent. When the customer is done they want to end the session. I call Disconnect Dialog: <https://developers.avayacloud.com/avaya-experience-platform/reference/disconnectproviderdialog> which completes successfully but doesn’t end the agent session in Workspaces (as can be achieved using the chat sdk) – it apparently does nothing. Is this the intended behavior, or a bug? If it’s intended – how can I end the agent session? ![](https://files.readme.io/de89620-image.png)

drop 67 API changes...?

according to the release notes drop 67 was supposed to include some additional API calls to allow create and update of engagements. all of drop 67 (and 68)'s content seems to have been delivered into production but I'm not seeing the new APIs in the documentation... were the API changes pulled from the drop? or, is it just the documentation updates lagging behind the software release?
ANSWERED

Can't use messaging widget

When we try to assign the messaging widget as our main widget for messaging in layout manager it reverts back to chat widget even though AXP administration says successfully saved.

errors using @avaya/axp-client-sdk-core

<https://avayaexperienceplatform.github.io/omni-sdk-js/modules/_avaya_axp_client_sdk_core.html> says to import as follows: `import { AxpClientSdk } from '@avaya/axp-client-sdk-core';` when i do that, i get: `Uncaught SyntaxError: Cannot use import statement outside a module` if i add type="module" to my script declaration, i get `Uncaught TypeError: Failed to resolve module specifier "@avaya/axp-client-sdk-core". Relative references must start with either "/", "./", or "../`" if i add "./" in front of "@avaya", i get: `GET http://127.0.0.1:8080/@avaya/axp-client-sdk-core net::ERR_ABORTED 404 (Not Found)` there's some trick to importing these sdks into my application but i can't work it out...
ANSWERED

Inconsistent behavour with digital APIs for Chat

If I create a chat using the chat SDK (v0.1.53), I can successfully call the digital transcript list messages api (passing the engagement ID for the chat from AxP Orchestration). If I call the Digital channel - Engagements get engagement API, passing the same engagement ID, it returns 404 - Engagement not found. Is this the expected behavior? Transcript API sample GET <https://na.api.avayacloud.com/api/digital/transcript/v1/accounts/CRIZWE/engagements/b9a4fab1-3421-4291-a81c-d597368a5b86/messages> returns 200 ok and expected data Get Engagement API sample GET <https://na.api.avayacloud.com/api/digital/channel/v1/accounts/CRIZWE/engagements/b9a4fab1-3421-4291-a81c-d597368a5b86> returns a 404 { "type": "<https://developers.avayacloud.com/onecloud-ccaas/docs/error-handling#resource-not-found">, "title": "Resource Not Found", "status": 404, "detail": "Engagement not found" } Cheers, Wilfred
ANSWERED

API method for inserting message in a mail reply

Hi out there, which API method can be used to insert a message/template into the reply-field of an e-mail? I have tried insertMessageResponse() without luck. It works on chat tho, but not for e-mail.
ANSWERED

Problem with console.log'ing when using "Email Widget AXP" widget

Hi, a very weird issue. I have developed a widgeten for messaging, which works great. Now I need to adjust it for e-mail. But when I place it beside the Email Widget AXP it doesn't show up anything in the console in devtools. Which working great when using it beside the Chat widget. Anyone have any idea what could cause this ?
ANSWERED

Hubspot CRM

Hi Does anyone know in the AEP with link to Hubspot CRM as cannot see a list of CRM that can use AEP
ANSWERED

chat SDK init() fails 404 not found

starting yesterday afternoon, my chat client stopped working. I'm using sdk 0.1.53 (directly, not via the sample widget). the logs show: AvayaCCaaSChatSDK.init() called (integrationId = fbea297d-dedf-4071-9f94-0a8315b6264e, reconnectionTimeout = 120, idleTimeout = 300, idleShutdownGraceTimeout = 30, logLevel = DEBUG) Using sessionId from Session Storage (sessionId = "ebfc6024-463b-499d-9a40-9f897114cc05", ) GET <https://na.cc.avayacloud.com/sdk/digital/chat/v1/integrations/fbea297d-dedf-4071-9f94-0a8315b6264e/sessions/ebfc6024-463b-499d-9a40-9f897114cc05> 404 (Not Found) I have checked my integrationId and it's correctly administered, so I'd guess it's that sessionId (obtained from "Session Storage" that's not being found. how do i fix that? coincidentally the problem started yesterday afternoon as the latest drop rolled out. ``` AvayaCCaaSChatSDK.init( { hostURL: baseURL, integrationId: libertyDemoChatIntegration, token: tokenJWT, appkey: myAppKey }, { reconnectionTimeout: 120, idleTimeout: 300, idleShutdownGraceTimeout: 30, logLevel: "DEBUG" } ); ```