As far as I undestand, when I try to use Lightning Session Id, I receive an error
This session is not valid for use with the REST API
I have read in other topics that Lightning Session Id has limited access to API.
Is there any way to get full API-access Session Id from Lightning Application to get access to Tooling API or REST API or SOAP API or Metadata API?
Or is there any other direct way to get id of custom object field inside of Lightning Application?