Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

[resolved] ReadURL function datamapper using context variable

Hi,
I have a map in data mapper reading files with ReadURL function.
This file name depends on the environnement so I want to build it from context data.
Unfortunately it looks like it is not planned (In WriteURL function on the other hand there is a parameter URL that enable that using GetMapProperty function).
In help documentation, I can read:
"To process multiple Source or Result objects use the ReadUrl or WriteUrl functions. In this case, it's not necessary
to specify the URL. You can assign the Source or Result objects using the MapExecutionContext.addInputSource()
or MapExecutionContext.addOutputResult() methods. This allows multiple Java objects to be read or written in
a single map execution for example."
But I have no idea where and how I have to do that. An example would be very helpful.
Regards.
Eric
Labels (3)
1 Solution

Accepted Solutions
_AnonymousUser
Specialist III
Specialist III
Author

Hi,
I found a solution using ${context.variable} in the READURL function.
Eric

View solution in original post

3 Replies
Anonymous
Not applicable

Hi,
Have you already checked documents about:TalendHelpCenter:Read Functions and 
TalendHelpCenter:Write Functions?
Would you mind setting an example for your use case?
Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III
Author

Hi,
I found a solution using ${context.variable} in the READURL function.
Eric
Anonymous
Not applicable

Hi,
Thanks for your feedback and sharing your solution with us.
Best regards
Sabrina