function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David FekkeDavid Fekke 

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.
ShirishaShirisha (Salesforce Developers) 
Hi David,


Please refer the below blogs for the sample code examples and make changes to the code according to your Endpoint URLs:

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
William Wu 33William Wu 33
Thanks for sharing your reply here keep share your queries here
so anyone from the community who has faced the same issue can also find 
the solution from comments below, keep sharing
xohap xohapxohap xohap ( @Shirisha Pathuri
thanks for your information really you doing good job 
jordan sewingjordan sewing
Thank you for sharing online tips Roller Blinds & Plantation Shutters Central Coast (
thomas richard 5thomas richard 5
You clarified in a nitty gritty path about this and much obliged for sharing this to us. Check this for additional insights regarding the client input survey.
Shawn Brown 8Shawn Brown 8
I tried this method on my website Arceus X ( and it worked perfectly. Thanks a lot guys