• Lance in Klamath
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
I have 2 custom objects ones a detail record, and the other is a summry record.  I have about 70,000 detail records, and about 12,000 summary records.
Each night I delete all the records from both tables, and re load them using bulk API 2.0.  (auto batch size).

I've been tesing on our Full test sandbox
The 70K records delete in about a minute, and insert in about 3 minutes.
The 12K records delete in about 6 minutes and insert in about 9 minutes.

I know thte batches run in background based on server load, but I've run it ant differtime of day, even on weekends and timing is really consistant.  So why does it take much longer to do the 12K vs the 70K?  and the 70K has a few more colmns than the 12K set. 
I'm trying to use the Username-Password OAuth Authentication Flow to connect to REST

Posting to https://test.salesforce.com/services/oauth2/token
Params
   grant_type = password
   client_id     = from connected app
   client_secret = from connected app
   username = my user name
   password = my password and API token

I'm getting 
   {"error":"invalid_grant","error_description":"authentication failure"}

When I look at my user in salesforce I see this error
    Failed: Login over insecure channel

I'm setting https.protocols = TLSv1,TLSv1.1,TLSv1.2

Any thoughts?

I'm thinking about taking the DEV501 class.  I have not taken the DEV401 class.

 

I'm a great java programmer, and I've done some stuff in salesforce before.  I've created a few APEX triggers and such.

 

My question is: does the 501 class rely heavily on the material from the 401 class?  I'm not really interested in the certifications.

I'm trying to use the Username-Password OAuth Authentication Flow to connect to REST

Posting to https://test.salesforce.com/services/oauth2/token
Params
   grant_type = password
   client_id     = from connected app
   client_secret = from connected app
   username = my user name
   password = my password and API token

I'm getting 
   {"error":"invalid_grant","error_description":"authentication failure"}

When I look at my user in salesforce I see this error
    Failed: Login over insecure channel

I'm setting https.protocols = TLSv1,TLSv1.1,TLSv1.2

Any thoughts?
I have created user using rest api, by making a POST call to the below Url.
https://na24.salesforce.com/services/data/v20.0/sobjects/user

For the newly created users through Api, Welcome email (password confirmation) is not getting triggered.
In SF ui there is an option called "Generate new password and notify user immediately", to notify about the new account has created.
How to achieve the same through Rest Api ?

If i create any user through Salesforce UI, a mail will be sent to the new users mail id, but the same is not working when i create the user through rest Api.

below is the Json parameters passing to create a user.

{"Username": "testemailname1@gmail.com","LastName": "Anand","FirstName": "Preetham","Email": "testemailname1@gmail.com","Alias": "Preetham","CommunityNickname": "testcommnme","IsActive": "true","TimeZoneSidKey": "America/Los_Angeles","LocaleSidKey": "en_US","EmailEncodingKey": "ISO-8859-1","ProfileId": "00a1e000000********S","LanguageLocaleKey": "en_US","UserPermissionsMobileUser": "false","UserPreferencesDisableAutoSubForFeeds": "false","CompanyName": "","Division": "","Department": "TR-App","Title": "SSE","Street": "","City": "","State": "","PostalCode": "","Country": "","Phone": "","Fax": "","MobilePhone": "","UserRoleId": "","ReceivesInfoEmails": "","ReceivesAdminInfoEmails": "","EmployeeNumber": "","DelegatedApproverId": "","ManagerId": "","UserPermissionsMarketingUser": "false","UserPermissionsOfflineUser": "false","UserPermissionsCallCenterAutoLogin": "false","UserPermissionsSFContentUser": "","UserPermissionsKnowledgeUser": "","UserPermissionsInteractionUser": "","UserPermissionsSupportUser": "","ForecastEnabled": "","UserPreferencesActivityRemindersPopup": "","UserPreferencesEventRemindersCheckboxDefault": "","UserPreferencesTaskRemindersCheckboxDefault": "","UserPreferencesReminderSoundOff": "","UserPreferencesApexPagesDeveloperMode": "","UserPreferencesHideCSNGetChatterMobileTask": "","UserPreferencesHideCSNDesktopTask": "","UserPreferencesOptOutOfTouch": "","ContactId": "","CallCenterId": "","Extension": "","FederationIdentifier": "","AboutMe": "","CurrentStatus": ""} 

Please suggest me how to send the email once the user is created through Rest Api.

Note :  i have tried the "Email Administration > Deliverability > Access level" is set to "All Emails".

Thanks in advance,
Preetham