Click here to Skip to main content
15,897,166 members

Comments by harsha 4 (Top 5 by date)

harsha 4 11-Apr-22 8:07am View    
thanks for that man, you legend
I know to build url but i am constructing it wrong
thanks for the help
More power to you
harsha 4 11-Apr-22 7:05am View    
@Chris Copeland thanks for the approach

My problem there i asked was, even if i get the url and access token , how do I use them to make a req and hit api in order to successfully pass the req to authorize.

How can i make use of fetch to send the token that i get?

according to this
"The access_token field in the response contains the access token value. API clients pass the access token in the Authorization header (Authorization: Bearer access_token) of each request.

Use the instance_url field value in the response as the Salesforce instance URL in your REST API resource URIs (for example, instance_url/services/data/v42.0/iot/orchestrations)."
harsha 4 1-Mar-22 8:47am View    
thanks chris
harsha 4 1-Mar-22 6:04am View    
const newList = Object.keys(countries)
// get all the countries in an array

is there a way to get the code for all the ones in the new array which has lot of countries?
just curious
harsha 4 1-Mar-22 4:49am View    
thanks for the approach
but if i want to get a iso codes for a bunch of countries, is there a way apart from putting country name everytime?