CRM-Template-Generator read Response Headers

Status
Not open for further replies.

pitw

Customer
Basic Certified
Joined
Oct 22, 2021
Messages
1
Reaction score
0
Our CRM uses sessions for Auth.
  1. Send Username, Password, Licence and Company to Endpoint ***/Login
  2. On Success we receive a SessionID in the response Headers
  3. With this SessionID we can then query the endpoints for phonennumbers and emails...
Is it possible to save the response header value "SessionID" in a variable ?
W tried with "adapted" Oauth Request from Wizard. The login request is successful but we aren't able to see / store the Header "SessionID"...
 
No, you can't. You can only get values from the response body.
 
  • Like
Reactions: Evolute IT
Thanks, I have the same problem
 
A possible solution is that you create an intermediate web service, that can do this translation for you. This web service could interact with your CRM, and read the response from the headers, and pass it back to 3CX as part of the body...
 
  • Like
Reactions: Evolute IT
A possible solution is that you create an intermediate web service, that can do this translation for you. This web service could interact with your CRM, and read the response from the headers, and pass it back to 3CX as part of the body...
This is what we do.
 
  • Like
Reactions: edossantos
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,474
Latest member
costionofrei