Channelid - what is it for? why is it there?

I’m trying to add parts to Salesforce and want to have a link back to the Epicor Part Detail. I have the URL from the config to display part details. One of the query parameters is “channelid”.

It doesn’t seem to do anything, but it has to be there. If I take it out of the url, then I get a blank Epicor screen. If I set it to a random number - it works. If I set it to a guid - it works. If I set it to a single letter - it works.

So the question is, what is it and why does it need to be present?

Below is from KB0121721 from EpicCare:

ChannelID = When creating a Share Link, you will note that a randomly generated GUID is supplied for the ChannellD. At the time this KB was created, Development has stated that the GUID for ChannelID is not a requirement and it has no bearing on security. If creating a template for a dynamic URL to a form, it is acceptable to use a zero “0” as the value for the ChannelID parameter. It’s possible in a future release that the ChannelD parameter will no longer be a part of the direct link URL. Using the URL example above, the following URL will also be acceptable (note channelid=0)

5 Likes

Thank you sir.

On 11.2.200.11and it seems I need a valid channelID for some links and not others.

eg ChannelID=0 works jumping to case entry:

https://myServer/myEnv/apps/erp/home/#/view/CRGO6200/Erp.UI.HelpDeskEntry?channelid=0&layerNames=CW_CASE_ENTRY2&company=KNZ&site=MfgSys&pageId=HelpDeskForm&pageChanged=true&KeyFields.HDCaseNum=30019

But doesn’t when jumping to project entry:
https://myServer/myEnv/apps/erp/home/#/view/PJGO1040/Erp.UI.ProjectEntry?channelid=0&useBroadcast=1&layerNames=CWTest,CW_MACHINEOWNER&company=KNZ&site=MfgSys&KeyFields.Revision=1&pageId=Details&pageChanged=true&KeyFields.ProjectID=152

Just loads a blank screen, if I put a guid from another tab in ther it works:

More epicor mysteries.

I am not totally sure, but I believe that this is only important to link two tabs in the browser together… for the publish/subscribe (but I could be wrong). This allows you to right click on one item (part number) and open the part screen, and then those two screens are linked. The part on the second screen will change. My theory is that the channel is how we keep these two linked together.

2 Likes

Thanks Tim, one of our developers was looking at it through the chrome debugger and saw websockets in use, so guess its something to do with that, as you describe.