Тёмный

Salesforce Developer Tutorial - How to create a custom REST Resource in Apex 

Coding With The Force
Подписаться 14 тыс.
Просмотров 8 тыс.
50% 1

In this episode we go over how to create your own custom REST resource in apex. We discuss why you might opt to create your own custom REST resource, what a REST resource is, create a REST resource together and then use postman to test our REST resource.
Postman Download: www.postman.com/downloads/
REST Resource GitHub Link: github.com/Coding-With-The-Fo...
Difference between REST resource and REST endpoint: stackoverflow.com/questions/3...
Please consider donating to help continue to improve the content produced for Coding With The Force: www.paypal.com/donate?busines...
Get Coding With The Force Merch Here: my-store-d20559.creator-sprin...
Follow all of our social media here:
Patreon: / codingwiththeforce
Github: github.com/Coding-With-The-Force
Facebook: / codingwiththeforce
Twitter: / coding_force
Instagram: / codingwiththeforce
Salesforce development books I recommend:
Advanced Apex Programming: amzn.to/3lXi8to
Salesforce Lightning Platform Enterprise Architecture: amzn.to/2R0D4BQ
Mastering Salesforce DevOps: amzn.to/3lTtTRN
Apex Design Patterns Book: amzn.to/3DwqljP
Good Non-SF Specific Development Books:
Clean Code: amzn.to/35PuMDU
Clean Architecture: amzn.to/35FYo6A
Design Patterns: Elements of Reusable Object-Oriented Software Book: amzn.to/3LhvHBd
-----------------------------------------------------------------------------------------------------------------------
Table of Contents:
0:00 - Intro
0:46 - Why create a custom REST Resource?
5:12 - What is a REST Resource?
8:58 - How to create a REST Resource
23:40 - Creating a connected app to connect to our REST Resource
30:00 - What is Postman?
31:35 - How to test your REST Resource in Postman
46:14 - Outro
DISCLAIMER: The views and ideas expressed on this RU-vid 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

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@joshevans5461
@joshevans5461 5 месяцев назад
This was a great tutorial. Very informative, thanks!
@JoshMars_
@JoshMars_ Год назад
Great video, really helped me. Thank you very much.
@willcalltickets
@willcalltickets 2 года назад
This was great. Would love to see a video where you grab the access token in an external app.
@windylou72
@windylou72 Год назад
Hi I am so glad this video is still here to view. I am new to API's and I am seeing how one of our off shore dev folks set one up for us recently. In my instance which is Enterprise, I do not have the Access and manager your data (api). As a matter of fact, looking at your screenshot, I do not have any of the options that start with Access and manage. Would anyone know the reason for this. My only good option at this point is the Full access
@pb9075
@pb9075 Год назад
this is insightful
@madalinalexa110
@madalinalexa110 Год назад
Very nice video
@massimotarquini1168
@massimotarquini1168 2 года назад
great content. would you know why when i make the call out from Postman to Salesforce, nothing shows in the logs (when having my dev console open). Like the call is successful yet the log does not show anything. thanks
@JosephVloggs
@JosephVloggs Год назад
hey mate, you might need to add debug logs for the API user you have created
@Peter-pd9hy
@Peter-pd9hy 2 года назад
Hey Matt, I've noticed you use underscores when naming classes. Is this a common practice?
@CodingWithTheForce
@CodingWithTheForce 2 года назад
To be honest I’ve not looked into it much but I believe so. I’ve always preferred underscores as I believe it makes the class names easier to read and ease of understanding is one of the things I strive for the most when I write my code. That way any other dev looking at my code can easily understand what’s happening and don’t need too much of a walkthrough on how it works (if any).
@matthewthehuman1744
@matthewthehuman1744 2 года назад
unfortunately I'm not having any luck following your tutorial (thank you by the way, it's really helpful). I'm running into { "error": "unsupported_grant_type", "error_description": "grant type not supported" } any idea how I can enable password as grant type?
@monstamicz
@monstamicz 2 года назад
have you tried going to the user and resetting the token? if not, do that then try to execute the callout again in Postman
@matthewthehuman1744
@matthewthehuman1744 2 года назад
@@monstamicz wow thank you so much, for offering support a free tutorial. We wound up using jsforce api. Project is already completed.
@monstamicz
@monstamicz 2 года назад
@@matthewthehuman1744 glad to know it all worked out
@ekron8601
@ekron8601 Год назад
how could I create multiples HttGet on the same class?
@JosephVloggs
@JosephVloggs Год назад
I don't believe you would be able to you would have to create a new rest resource with a separate end point (URL)
Далее
Rest API - Best Practices - Design
15:50
Просмотров 101 тыс.
Salesforce API Fundamentals
37:51
Просмотров 54 тыс.