2023.1.X Environment Endpoint not working?

Can anyone help me test if its my system or just in general if environment endpoint is gone in 2023.1.X?

In 2021 we use environment all the time to figure out (via API) which Company plant etc a use has access to. The Help in 2023 says it should still be there, but we are getting 404. I’ve tested in two different systems with the same result.

https://TLD/YourEpicorInstance/api/v2/environment?api-key<yourapikey>

Response from this normally looks like this, I could use some corroboration on this since this is a huge issue.

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Generated schema for Root",
  "type": "object",
  "properties": {
    "Companies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "Company": {
            "type": "string"
          },
          "Plants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "Company",
          "Plants"
        ]
      }
    }
  },
  "required": [
    "Companies"
  ]
}

:batsignal: @klincecum

404 Not Found

v2023.1.7

oh f*…ck well… now what…

@Rich @pferrington @Olga @timshuwy :batsignal: #HALP

We use this everywhere in our API’s to determine user access. The help in 2023 says it should still be there :tired_face:

We are going live with 2023 on Monday and… it seems now I have a way larger than zero number of apps that I thought would be just fine that will need some… massaging :sob::sob::sob:

Is there a new alternative to /environment?

404

2023.1.10 SaaS

It looks like it was removed somewhere in 2022… However the REST API Guide still shows it.

1 Like

Yeah so the entire Environment Controller has been removed in 2023 (and maybe prior) which leaves no way for you to get a list of user’s Companies / Plants in V2 without hacky work-arounds.

Opening a support ticket on this but i guarantee you they’ll tell me to submit an idea.

Update Case: CS0003828367

1 Like

Sorry Jose

or… has it… :smiling_imp:

1 Like

Thanks for the case number. I’m tracking this internally and I can assure you it is being treated as a regression, not a new idea.

6 Likes

Morgan Freeman Applause GIF by The Academy Awards

1 Like

@Epic_Santiago may 1000 elephants fertilize your pumpkin patch with their droppings. That was a fast turnaround.

@josecgomez good that you made that hot-patch with @jgiese.wci so you dont have to rebuild all your webapps that use it, until Epicor fixes the Controller.

1 Like

Well now I want to hear about that. :rofl: :smiling_imp:

It’s gross and a hack work-around until I can get a real fix. Nothing to share, I wouldn’t want anyone trying to use it cause its… :nauseated_face::nauseated_face:

I mean… You could be kinder about it than that lol it’s actually pretty elegant if I do say so myself! It’s better than my IIS rewrite idea to EFX!

I think it was amazeballs, elegant, beautiful and breath-taking.

AS in i haven’t taken a breath since I put it in :joy::joy::joy:

For you to say that makes me nervous :rofl:

He’s a worry wart, pay no attention to him. For what it’s worth the API assemblies live in “Assemblies” and “Bin” exact copies. Strange times we live in.

Interesting…