+ 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,

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
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 https://www.mcdvoice.onl/
 
xohap xohapxohap xohap
postalexperience.com/pos (https://postalexperiencecompos.tech/) @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 (https://www.factoryblindsplantationshutters.com.au/blinds-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.https://thumzap.com/
Shawn Brown 8Shawn Brown 8
I tried this method on my website Arceus X (https://arceusx.com/) and it worked perfectly. Thanks a lot guys