<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anurag  malviya on Medium]]></title>
        <description><![CDATA[Stories by Anurag  malviya on Medium]]></description>
        <link>https://medium.com/@anuragmalviya62?source=rss-bc957ce51e0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8UwI4R2wcmShRzYY47LCeg.png</url>
            <title>Stories by Anurag  malviya on Medium</title>
            <link>https://medium.com/@anuragmalviya62?source=rss-bc957ce51e0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:39:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anuragmalviya62/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Integrating Salesforce REST APIs with OutSystems– OAuth and CRUD Operations]]></title>
            <link>https://medium.com/@anuragmalviya62/integrating-salesforce-rest-apis-with-outsystems-oauth-and-crud-operations-9ac9817ced0e?source=rss-bc957ce51e0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ac9817ced0e</guid>
            <category><![CDATA[outsystems-development]]></category>
            <dc:creator><![CDATA[Anurag  malviya]]></dc:creator>
            <pubDate>Sun, 06 Sep 2026 08:17:46 GMT</pubDate>
            <atom:updated>2026-09-06T08:17:46.002Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone, I recently worked on integrating Salesforce REST APIs with OutSystems. In this post, I would like to share the approach I followed to authenticate with Salesforce and perform CRUD operations on the Salesforce Account object.</p><ol><li><strong>Integration Flow</strong></li></ol><p>The overall flow is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*AJNvPyRGbyIStogECEiVkA.png" /></figure><p>The Access Token generated from Salesforce is then used in the Authorization header for the subsequent API calls.</p><p><strong>2. Generate Salesforce Access Token</strong></p><p>First, I created a REST API method in OutSystems for the Salesforce OAuth endpoint.</p><p><strong>Method</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*uuYJaxymtmS583ag_7AU1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*8kKBs85lKEsP6ICRFKxrpg.png" /></figure><p>The response contains the access token, which is stored in an OutSystems variable and used for the other Salesforce API calls.</p><p>For a real project, client credentials should not be hardcoded. They should be stored securely, for example using appropriate OutSystems configuration/secret management.</p><p><strong>3. Authorization for Salesforce APIs</strong></p><p>For the Account APIs, I used the access token generated in the previous step.</p><p>The Authorization header is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*xQjW0-4z5jic_upYl2CFSw.png" /></figure><p><strong>4. GET Account</strong></p><p>For retrieving Account records, I created a REST API method using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*GUfP0ajiV0lJqeLvLEQJCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*a6XFCLpZ5YF9-XCXwEhcYQ.png" /></figure><p><strong>5. Create Account</strong></p><p>To create an Account, I used the Salesforce Account endpoint:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*L_zuJSX0WXotN1dtHzC4mw.png" /></figure><p>In OutSystems, I created a structure representing the Account request and passed it as the request body.</p><p>The structure can contain fields such as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*F63Ar6Dswl2weWWGbtcLPQ.png" /></figure><p>Salesforce returns the newly created Account ID in the response.</p><p><strong>6. Update Account</strong></p><p>For updating an existing Account, I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*wXKeAejqE7h-BA1IPLf8-g.png" /></figure><p>Only the fields that need to be updated need to be included in the request.</p><p><strong>7. Delete Account</strong></p><p>For deleting an Account, I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*YqnywkC8oy9sHB7OT8t6jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*P0hTjIClNVW5fUHsTvsTeA.png" /></figure><p><strong>8. Suggested OutSystems Structure</strong></p><p>I organized the Salesforce integration approximately like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*S9xHRRNoGMDb-50k9o8vlg.png" /></figure><p>The business logic can then call these REST methods through Server Actions.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*A6PU6Vspdi1TQppJrads-w.png" /></figure><p><strong>9. Important Points</strong></p><p>A few things that I found important during the integration:</p><p>Do not hardcode Salesforce Record IDs. Pass them as dynamic input parameters.</p><p>Use the correct Content-Type.</p><p>OAuth token request → application/x-www-form-urlencoded</p><p>Salesforce CRUD requests with JSON → application/json</p><p>Use the Access Token in the Authorization header:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*zvhxzaHXPuXNscHBR9Uh1A.png" /></figure><p><strong>10. Final Flow</strong></p><p>The complete integration flow is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*t4Xz5PILlrjKdMFZD4lh7g.png" /></figure><p>This approach allowed me to perform Create, Read, Update, and Delete operations on Salesforce Account records from OutSystems using Salesforce REST APIs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ac9817ced0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>