SAP Business One V10 Integration issue

Status
Not open for further replies.

Rynhardt81

New User
Joined
Dec 14, 2022
Messages
1
Reaction score
0
Hi,

I am trying to get 3cx integration working with our SAP business one V10 ERP system but cannot seem to get the authentication right.
In postman, I have to use Oauth2.0 with variable CompanyDB,Username and Password inserted in the header and the Grant type set to Password credentials. This allows the post to go through and a SessionId is returned and all subsequent requests work.

I have tried numerous template creations and custom creations with the 3CX generator but cannot get it to authenticate.

1671016688259.png

1671016758224.png

Return header
1671016788800.png

Please advise
 
This is not standard OAuth2, so you will need to adjust the template after the wizard completes.

You will need to use a scenario based authentication. There you can specify those custom headers in the request element. You can check the ConnectWise template for your reference, where you will see how we specify custom headers in the request:
XML:
<Request SkipIf="[IIf([FoundRecordCount]&gt;0,True,False)]" Url="https://[Domain]/login/companyinfo/[CompanyName]" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json">
    <Headers>
        <Value Key="clientId">f66de42b-efaf-4ed6-a542-c1211c03d3ab</Value>
    </Headers>
</Request>
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.

Forum statistics

Threads
112,322
Messages
591,889
Members
165,470
Latest member
Robert Lee