Hey there, Salesforce Learners!
Feeling a bit restless? No Worries today I am bringing a Fun Game for all of you so we can learn Flow shiniest feature with Spring '23 and Summer '23 in the fun way.
Lets dive into the new learnings:
So as Topic describes HTTP callout using Flow , we need to create a flow. Yes , you are absolutely correct. But wait first there's a little bit of setup to be done.
Step 1 : Our journey kicks off with a crucial step
Create a Permission Set for making callouts. Go ahead and choose a catchy name for your Permission Set & Assign this Permission Set to the chosen User who's excited on this incredible adventure with us.
Step 2 : Create an External Named Credentials
This is a crucial step that will empower our flow to communicate seamlessly with the external world.
( To start, type "Named Credential" into the Quick Find box, and we can see external credential option).
Give it a name and Choose the protocol that aligns with your specific needs – whether it's OAuth, Password, or even a Custom method.
With "Custom" we are going to integrate our external systems seamlessly. Click that save button and watch as your Named Credential takes its first breath.You can see Principal section appears below. Lets dive into it now.
Step 3: Create Principle, once we create an External Credential below Principle section is appears. So With a click of the "New" button, you set the Principal with basic details – a name, an identity.
Note: In Spring '23 we were directly able to map the Permission set , but in Summer '23 Permission Set needs to map to Principal.
A curious twist awaits as we navigate the seasons of Spring '23 and Summer '23. In the blossoming Spring, the path was direct – a simple section mapping of Permission Sets was present which used to map Permission Set. However, in the radiant Summer, a new rule comes. Permission Sets needs to map to the Principal. Let's see how to assign that as well.
Step 4: Add Principle to the Permission Set.
Go to permission set and select the permission set which we have created in Step 1. Now we can see option called 'External Credential Principal Access' in Apps section. Select this and add External Credential which we have created in Step 2 from the list.
Step 5: Create Named Credentials.Step 2: Most important factor in Flow to make HTTP Callouts is Action. Add Action Element. Now we can see button called Create HTTP Callout. Select it and new popup will appear.
- Give the callout's specifics here. The URL for which we are going to create a callout will automatically appear after we choose the Named Credential.
Since we wish to access the URL and obtain the info from the source. It was the GET Method.
Add the URL Path /api/activity/ to the Set URL Path section. Below that is an option labeled "Provide Sample Response." Select "new" and enter a sample JSON input.(When we utilize URL Path parameters to access a URL, we receive JSON data that can be used in this sentence.)
After reviewing the JSON, all fields are mapped according to their respective datatypes. We can alter it if necessary.
Comments
Post a Comment