Salesforce Developer Tutorial (Integrations): How to Send POST Requests In Apex

Опубликовано: 16 Октябрь 2024
на канале: Coding With The Force
10,345
145

In this episode we go over how to send POST requests in Apex. It can be really confusing to send a POST request the first time you have to do it for an integration. In this video we go over, how to use wrapper classes to help assist us in creating the body of the outbound request, how to serialize our data to send out, how to use named credentials and much more.

Please consider donating to help continue to improve the content produced for Coding With The Force: https://www.paypal.com/donate?busines...

Get Coding With The Force Merch Here: https://my-store-d20559.creator-sprin...


GitHub Repo:
https://github.com/Coding-With-The-Fo...

JSON Class Documentation: https://developer.salesforce.com/docs...

Get Postman Here: https://www.postman.com/
JSON2Apex Heroku App: http://json2apex.herokuapp.com/

Follow all of our social media here:

Patreon:   / codingwiththeforce  
Github: https://github.com/Coding-With-The-Force
Facebook:   / codingwiththeforce  
Twitter:   / coding_force  
Instagram:   / codingwiththeforce  

Salesforce development books I recommend:

Advanced Apex Programming: https://amzn.to/3lXi8to
Salesforce Lightning Platform Enterprise Architecture: https://amzn.to/2R0D4BQ
Mastering Salesforce DevOps: https://amzn.to/3lTtTRN
Apex Design Patterns Book: https://amzn.to/3DwqljP


Good Non-SF Specific Development Books:

Clean Code: https://amzn.to/35PuMDU
Clean Architecture: https://amzn.to/35FYo6A
Design Patterns: Elements of Reusable Object-Oriented Software Book: https://amzn.to/3LhvHBd

-------------------------------------------------------------------------------------------------------------------------

Table of Contents:

0:00 - Intro
0:21 - Go vote for the next video!
0:47 - Why is learning about POST requests important?
2:35 - Explaining RestResources and the endpoint we're calling
5:30 - Explanation of how Connected Apps, Auth. Providers and Named Credentials work
15:35 - Building/Explaining how to do a POST request
29:35 - Using JSON2Apex to create wrapper classes
33:45 - Outro

DISCLAIMER: The views and ideas expressed on this YouTube channel and blog are based on past development experiences and may not always work for your particular scenarios. The advice in these videos may also become outdated as technology advances. They should be used as examples for educational purposes only. Using any shown solutions in your own org is not advisable since they are example scenarios.

#salesforce #salesforcedeveloper #salesforceadmin