• Abdur Raoof
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hi All, I need to access APIs using CURL request but getting errors. Steps I did,
 
From my Trailhead account -->   Hands-On Orgs --> Any testing App ( My Trailhead Playground 1 )
Created a connected app with full access permissions
Fetched client id, client secret, username, password and security token
Then used in this bellow URL( first tried to get access token )
 
curl https://login.salesforce.com/services/oauth2/token -d 'grant_type=password&client_id=<CLIENT_ID>&client_secret=<client_secret>&username=abdurraoof@wise-koala-kluwgj.com&password=<PASSWORD><SecurityToken>' -H "X-PrettyPrint: 1"
Getting error
{ "error" : "invalid_grant", "error_description" : "authentication failure"}
I have followed many articles and Stackoverflow questions and videos but still facing this issue.
 
API access is allowed on new Trailhead account ? 
Any restriction of account types or something else??
 
Your support will be much appreciated, thanks in advance :)
 
Links I followed
https://www.cloudsciencelabs.com/blog/how-to-generate-an-access-token-to-access-salesforce-org
https://www.youtube.com/watch?v=dC1eo2W7Q7U
https://www.youtube.com/watch?v=-9pe0OQi7LA

Posted question
https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007LnbMhSAJ
Hi All, I need to access APIs using CURL request but getting errors. Steps I did,
 
From my Trailhead account -->   Hands-On Orgs --> Any testing App ( My Trailhead Playground 1 )
Created a connected app with full access permissions
Fetched client id, client secret, username, password and security token
Then used in this bellow URL( first tried to get access token )
 
curl https://login.salesforce.com/services/oauth2/token -d 'grant_type=password&client_id=<CLIENT_ID>&client_secret=<client_secret>&username=abdurraoof@wise-koala-kluwgj.com&password=<PASSWORD><SecurityToken>' -H "X-PrettyPrint: 1"
Getting error
{ "error" : "invalid_grant", "error_description" : "authentication failure"}
I have followed many articles and Stackoverflow questions and videos but still facing this issue.
 
API access is allowed on new Trailhead account ? 
Any restriction of account types or something else??
 
Your support will be much appreciated, thanks in advance :)
 
Links I followed
https://www.cloudsciencelabs.com/blog/how-to-generate-an-access-token-to-access-salesforce-org
https://www.youtube.com/watch?v=dC1eo2W7Q7U
https://www.youtube.com/watch?v=-9pe0OQi7LA

Posted question
https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007LnbMhSAJ
Hi All,

I have around 10,000 images which I want to import to Salesforce. 
These images are grouped on a specific criteria and contain sub folders. 
I want to know which is the best repository to store images - Documents or Files? 

I am trying to understand which one(Documents or Files) will allow images to be available externally, allow folders/sub folders(if possible), easily bulk import.

Please suggest!