certinia / apex-mdapi

Apex Wrapper for the Salesforce Metadata API
BSD 3-Clause "New" or "Revised" License
689 stars 976 forks source link

Apex Wrapper Metadata API Takes Time to Reflect the Change #285

Closed falsbelg closed 2 years ago

falsbelg commented 2 years ago

Thanks to this module, I was able to operate metadata via Apex and verified the change of metadata from the Setting screen in the org. However, it turns out that if I try to create a record that is defined by the metadata that is created by the metadata api operation, then I realized the change actually isn't reflected.

The weird workaround of this issues is to just wait for like 20 min. If I retry after 20-min-long wait, then I successfully created a record.

But the 20-min-long wait is not something acceptable for real use-cases. Do you have any idea to resolve this issue? Thanks.