cancel
Showing results for 
Search instead for 
Did you mean: 

SAP B1 Service layer post Invalid login credential

former_member275826
Participant

Hi All,

I have used below blog code:

https://blogs.sap.com/2014/11/24/b1-service-layer-with-javascript-handling-b1-objects-without-net-no...

I am able to get data successfully from service layer .

But not able to post data using service layer

Giving error:

Invalid login credential



Accepted Solutions (0)

Answers (3)

Answers (3)

PierreBrothier
Contributor

HI Pravin,

I have try the code within the blog, the post requests works fine.

Have you modified the code ? Could you provide more context to understand what goes wrong ?

0 Kudos

Hi Pravin. I have the same problem with the same error message. But i'm using a nodeJs request. Any idea?

former_member275826
Participant
0 Kudos

Hi Pierre,

No, i have not modified anything.

i have just downloaded the code and entered service layer credentials there.

Get request gives proper result , with no problem

Only post is not working. (Error: Invalid login credential)

My SAP Version:

I am using "SAP Business One 10.0 version for SAP HANA (10.00.120) PL: 02 (64-bit)"

PierreBrothier
Contributor
0 Kudos

Hi Pravin,

it's quite strange. I've made other test with 10.0 PL02 for HANA. POST and GET are working well for me.

Strange because call to login is a POST request.