How to get custom object id dynamically. I have created one button on UI called Create custom field and on click of that button, I want to redirect it to that custom object field creation page(object manager->field and relationships-> new). I cannot give hardcoded id to that link and also it's not taking API name. for API name its showing insufficient privileges. Is it possible using tooling API? and How?
yes instead of getting the id of the object and redirecting the page to create a custom field, you can create a field using Tooling api itself. I have written a lightning component to create custom object fields for any object (Whichever is accessible to create custom fields). Let me know if you need the code.