Forum Discussion
Invalid Auth Header from Web Activity for SalesForce
The permissions issue in SalesForce was resolved and verified yesterday, so the process works in Postman now. However, I am still receiving the INVALID_AUTH_HEADER response when implementing inside of the web activity in Fabric. See the below...
Hi kxwillis ,
I would like to understand how are you sending Bearer token in Fabric Web Activity?
Can you please refer the below similar threads -
Ingest data form a rest API with Oauth2 - Microsoft Fabric Community
Solved: retrieve token api call with content type x-www-fo... - Microsoft Fabric Community
Hope this is helpful. Do let me know incase of further queries.
- kxwillis2 years agoRegular Visitor
I am retreiving the token from the web activity immediately preceeding this step and am passing the token from the output of the preceeding web activity.
- Anonymous2 years agoNot applicable
Hi kxwillis
Can you please share the screen shot of web activity web1 when you executed the pipeline?
As the above error says authentication, I would like to understand whether it is passing actual bearer token or not.- kxwillis2 years agoRegular Visitor
Below is the output of web activity 1 and the input of webactivity 2
OUTPUT OF WEB ACTIVITY 1{"access_token": "00D5Y000001bchT!AQEAQDaYCiIjOZKYySRwnpsY3CloFGzEiTc0abZNK60LiEtqJWnRAvEHwrX363RTqbqwNz.[rest of token]","signature": "[signature]","instance_url": "https://contessahealth1.my.salesforce.com","id": "https://login.salesforce.com/id/[idvalue]","token_type": "Bearer","issued_at": "1716566138903","ResponseHeaders": {"Date": "Fri, 24 May 2024 15:55:38 GMT","Set-Cookie": "CookieConsentPolicy=0:1; path=/; expires=Sat, 24-May-2025 15:55:38 GMT; Max-Age=31536000; secure;LSKey-c$CookieConsentPolicy=0:1; path=/; expires=Sat, 24-May-2025 15:55:38 GMT; Max-Age=31536000; secure;BrowserId=ENrFgBnmEe-_7qNw1875lg; domain=.salesforce.com; path=/; expires=Sat, 24-May-2025 15:55:38 GMT; Max-Age=31536000","Strict-Transport-Security": "max-age=63072000; includeSubDomains","X-Content-Type-Options": "nosniff","X-Robots-Tag": "none","Cache-Control": "no-store, must-revalidate, no-cache, max-age=0, private","Vary": "Accept-Encoding","Transfer-Encoding": "chunked","Expires": "Thu, 01 Jan 1970 00:00:00 GMT","Content-Type": "application/json; charset=UTF-8"},"executionDuration": 0}INPUT OF WEB ACTIVITY 2{"method": "POST","headers": {"Authorization": "Bearer 00D5Y000001bchT!AQEAQDaYCiIjOZKYySRwnpsY3CloFGzEiTc0abZNK60LiEtqJWnRAvEHwrX363RTqbqwNz.[rest of token]","Content-Type": "application/json","Accept": "application/json"},"relativeUrl": "/services/data/v51.0/jobs/query","body": {"operation": "query","query": "SELECT Id FROM Account WHERE RecordType.Name <> 'Provider Account'"}}Screenshot of pipeline execution below