You need to sign in to do that
Don't have an account?

Need to be able to call the Rest UI API from inside of APEX for an app exchange package
I need to be able to call the Rest UI API from inside of APEX for an app exchange package.
Right now I am able to set up a callout that I can set up from inside of my development org using the Connected app, Auth. Provider and Named Credential, but this solution only works in my development org, I need to be able to make UI API calls from inside of our app exchange package.
Right now I am able to set up a callout that I can set up from inside of my development org using the Connected app, Auth. Provider and Named Credential, but this solution only works in my development org, I need to be able to make UI API calls from inside of our app exchange package.
Greetings!
Please refer the below blogs for the sample code examples and make changes to the code according to your Endpoint URLs:
https://apexcoder.com/2016/12/13/how-to-created-and-use-apex-rest-services-in-salesforce/
https://www.jitendrazaa.com/blog/salesforce/call-salesforce-rest-api-from-apex/
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri
so anyone from the community who has faced the same issue can also find
the solution from comments below, keep sharing https://www.mcdvoice.onl/
thanks for your information really you doing good job