Generating random identifiers for objects created prior to enabling random identifier

Hello!

Trying to update existing objects with a random identifier as described in this documentation.
Mutations | Appfarm Documentation

I have enabled GraphQL, Auxiliary Endpoints and enabled all CRUD permissions related to GraphQL for the Object Class.
Tried in both the Dev and Test environments without success.

This is the code i am using. Similar to the example shown in the documentation.

mutation {
  populateBuiltinPropertyCompany(propertyId: af_randomId, maxUpdates: 300) {
    updatedCount
  }
}

This is the result.

{
  "errors": [
    {
      "message": "Value \"af_randomId\" does not exist in \"CompanyBuiltinProperties\" enum.",
      "locations": [
        {
          "line": 2,
          "column": 46
        }
      ]
    }
  ]
}

In the Explorer i see that propertyId only gives undefined as an option.

Which is also reflected in this picture.

Is there something else i need to do before i see af_randomId in propertyId?

Hi Stian!

First of all, welcome to the Appfarm community!

It seems like you have discovered a bug. I’ve filed a report with our development team and hopefully it will be resolved quickly.

Have a great weekend!

1 Like

Hi again! This bug has been fixed in version 119.