@Remon van Ramele Hello and welcome to Microsoft Q&A.
I understand you aren't sure how to put together a 2-step operation for getting XML from REST api.
For you first step, use a Web activity, not a copy activity. The benefit of using Web activity, is you can directly reference the output, unlike most Copy Activity.
To make things easier, let us put a Set Variable between the Web activity and the Copy activity. To this Set Variable we will give an expression something like @activity('Get Session token').output.value['soap:Envelope']['soap:Body'].OpenSessionResponse.OpenSessionResult.SessionID
Without a ready api to test again, I'm not 100% sure the envelope and body are needed. I put them in bracket notation so I could quote in case the :
caused problems.
Once you have the id (including the { }
) in the variable, inserting it into the body of your request becomes easier, taking the form of @{variables('tokenVar')}
. The outer { }
serve to tell ADF where the expression ends and the literal text resumes. Also converts the contents to string.
<soap1:SessionID>@{variables('tokenVar'}</soap1:SessionID>