mgladman | 2021-09-22 01:08:16 UTC | #1
We are trying to use a standard Salesforce object WorkOrder to be related to an interaction. This is natively supported as a What object in the Task, this can be confirmed via Apex as well.
But in the list of validWhatObjects that it gets back, WorkOrder is missing :frowning:.
We've tried working around this by using Lightning Message Channel, but unfortunately addAssociations is not a supported API, looking at the source code, only the following is supported:
- purecloud.subscribe
- purecloud.user.updatestatus
- purecloud.interaction.updatestate
- purecloud.interaction.addcustomattributes
Also looking at the forum, looks like someone else tried doing something similar: https://developer.genesys.cloud/forum/t/addassociations-via-lightning-message-service-in-salesforce/11191
Can I request that either WorkOrder be added for Service cloud deployments (I don't know why it is being filtered out currently honestly) or expose addAssociations? Or even be able to tell PureCloud that a certain object is associable with tasks as a What?
If anyone is aware of a workaround I could try, I would love to hear it <3 I've pretty much hit a wall now :frowning:
mgladman | 2021-10-10 23:39:08 UTC | #2
We ended up implementing a rudimentary workaround - we created a custom LWC that listened for change events on Task that then executed a lookup for recently created Tasks by that user filtered by Call conditions.
This LWC then listed the Tasks and when a user clicked on it, it overwrote the WhatId with the WorkOrder Id.
This is not a great solution, but it works and it is reasonably user friendly, but not very integrated....
Hope that gives some ideas to some other hopeless soul :P
John_Carnell | 2021-10-12 16:53:50 UTC | #3
Hi Matthew,
Thanks for the solution. I would suggest you also file an Idea in our Ideas portal for any enhancements to a service. The product managers watch the idea portals and then uses the votes associated with an idea to drive prioritization on features.
Thanks, John Carnell Manager, Developer Engagement
mgladman | 2021-10-12 22:04:09 UTC | #4
I'd love to, but I cannot access that portal without a Genesys purchaser account and unfortunately I'm just the poor shmuck to implement the Salesforce <-> Genesys integration :) , not the account owner.
If you could post it on my behalf that would be great!
John_Carnell | 2021-10-13 12:27:43 UTC | #5
HI Matthew,
Thanks for letting me know. I will talk with my product manager and see if she can open it on your behalf.
system | 2021-11-12 12:28:34 UTC | #6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 12080