Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callout classes #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Callout classes #17

wants to merge 3 commits into from

Conversation

sfgithub1984
Copy link

Callout apex classes

@sfgithub1984
Copy link
Author

sfgithub1984 commented Sep 12, 2023

Hi Team Thermondo,

I would like to thank you for this coding challenge which gave me a valuable coding experience.

Please note that I have added 4 apex classes:

  1. CalloutNPS - Main apex class that contains the Invocable Method
  2. MockHttpResponseGenerator - Test Class
  3. TestDataFactory - Test Class
  4. TestCalloutNPS - Test Class

These are the metadata that were newly added

  1. Flow - By name: Callout to NPS [Record triggered flow ]
  2. Custom Label - By name : BatchSizeNPS [to store the max records that can be sent to callout at a time, in our case 30]
  3. ExternalCredential - By name : BasicAuth
  4. NamedCredential - By name : NPS

These are the metadata where changes were made

  1. PermissionSet with name "Case Feed" [to provide access to the External credential principal]
  2. Standard Field "Status" from the Standard object "Order" [added new value "Fulfilled"]

I am attaching the apex classes and package files for your reference.
Kindly let me know if you have any questions.

Thanks.
CalloutNPS.txt
MockHttpResponseGenerator.txt
TestCalloutNPS.txt
TestDataFactory.txt
Package.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants