Zelter Ady
Zelter Ady

Reputation: 6338

Read post data from angular 10 application

I have an angular 10 application that can be opened (in an iframe) inside another application (Salesforce CRM). The external application (Salesforce CRM) passes some data to my application, but it does that as POST. How do I access this data from my application?

Upvotes: 0

Views: 213

Answers (1)

eyescream
eyescream

Reputation: 19622

You're making a "canvas app"? (No, not <canvas> html tag, this stuff: https://developer.salesforce.com/docs/atlas.en-us.platform_connect.meta/platform_connect/canvas_framework_intro.htm)

Iframes on steroids. And the POST you hope to read is users identity info including session id so you can read SF data via API?

Your Salesforce admin should have option in the "connected app" to send you stuff via POST ("signed request") or GET ("OAuth2 webflow"). enter image description here

Might be simpler for you to read the OAuth data from the url. See https://developer.salesforce.com/docs/atlas.en-us.platform_connect.meta/platform_connect/canvas_app_authentication.htm and https://salesforce.stackexchange.com/questions/29548/calling-rest-api-in-canvas-with-oauth-webflow-get

Upvotes: 1

Related Questions