Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
6 years, 1 month ago
I am trying to build an integration with outlook because my requirement needs the calendar to be synced to a custom object. I am able to create a connection in apex using grant flow:
user logs in-> gets code-> get token
The problem is I want to schedule a job to auto sync the calendar every day. How can I get the code without going through the login?
May 5, 2017 at 3:47
Request offline scope and store the refresh token and use the refresh flow when the access token expires
May 10, 2017 at 0:36
53.7k 11 11 gold badges 95 95 silver badges 191 191 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only