I have created salesforce lightning app which needs to create trigger dynamically using tooling API.. To work with the tooling API i created connected app with the named credentials and able to create the trigger programatically. Now i packged app and deployed and i shared installation link other user. the other user able to install the app but not able to create the trigger.. it says following error.

An internal server error has occurred\nError ID: 1911010353-43716 (119852647)" is the error

Can anyone suggest me is this error because of absence of named credentials in installed user domain?

it is working in my domain..

  • Are you trying to install this app in Live system? – Pranay Jaiswal May 23 '18 at 12:33
  • I have another domain with another user login. i am installing in that domain.. How to add the named credentials in the package ? can u help me in that – Roster May 23 '18 at 12:36
  • 1
    That error number is unique autonumber, hundreds of things can go wrong during package installing and it will through throw generic error. One reason I got this was when I tried using Tooling API in production/live environment. Tooling API cant be used only in Sandboxes and developer environment. That being said You have to enable debug logs during instalation and see what error it generates in the target org. – Pranay Jaiswal May 23 '18 at 12:40
  • If tooling API can not be used in production environment then how can i create trigger programmatically .. what if my buisiness requirement is to create trigger dynamically. – Roster May 23 '18 at 18:47
  • Why do you need to create trigger in production? It doesn't sound all right.. Can you provide the business use case we can provide a solution that might not involve creating trigger in production. – Pranay Jaiswal May 23 '18 at 18:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.