Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have completed the challenge.
Below are the main components of my PR:
Apex Class- 1."NPSIntegration"
2."NPSIntegrationController"
3."NPSIntegrationService"
4."NPSIntegrationHandler"
5."NPSIntegrationTest"
Flow-"Call_NPS_Service"
Custom Object- "NPS_Order_Email__c", Custom field= "Order__c", Page Layout= "Order Layout"
Metadata for Status Picklist field on Order object = "Fulfilled"
External Credential = "NPS"
Named Credential = "NPS_API"
Permission Set = "NPS API"
PD steps Note- 1.In scratch Org, kindly assign Permission set "NPS API" to the user running API.
2. Create custom Header with below details. Go to "NPS" External Credential-> Related List->New Custom Header
Name = Authorization
Value = {!'Basic ' & BASE64ENCODE(BLOB($Credential.NPS.Username & ':' & $Credential.NPS.Password))}
Sequence = 1.
3. Create Principal with below details. Go to "NPS" External Credential-> Related List->Principal
Paramter name = "NPS External"
Sequence = 1
Identity Type = Named Principal
Parameter 1. Name = Username, Value =tmondo
Parameter 1. Name = Password, Value =Noy84LRpYvMZuETB