cancel
Showing results for 
Search instead for 
Did you mean: 

Externalize Parameters: how to fetch value dynamically

Former Member
0 Kudos

Hi Experts

I have Timer start event(i harcoded payload for testing)to HCI to SFTP scenario where i want to put the receiver credential name dynamically from the incoming payload.

My incoming structure is:

<header>
<hedfield>sftpuser1</hedfield>
</header>
<invoices>
<invfieid1>testinv1</invfieid1>
<invfieid2>testinv2</invfieid2>
</invoices>
<images>
<imgfield2>SGkgdGhpcyBpcyBiYXNlIDY0IGVuY29kZWQ=</imgfield2>
</images>

and i want to pick the receiver credential name from <hedfield>sftpuser1</hedfield> of header field in the payload so i changed the below external parameter as follows.

Receiver channel external parameter

But everytime i set {{Receiver_credential_name_2}} as //header/hedfield it resets the value at runtime to my old saved credential that i used in past.

Am i not doing it the correct way. Please help.

Regards

Naina

MortenWittrock
Active Contributor
0 Kudos

Hi Naina. In the spirit of the community, please remember to also follow up on your open questions. Regards, Morten.

Former Member
0 Kudos

Hi Morten

This is where you are suggesting camel parameters, but for private key alias and credentials i coudnt see anything matching hence a new question

Naina

MortenWittrock
Active Contributor

I am talking about your open questions in general. When you follow up, indicating what worked and what didn't, accepting answers, closing questions, you add value to the community, as well as respect the time of those community peers, who took the time to answer your questions.

Former Member
0 Kudos

see Morten just now i did, and will always do in future

thanks for your help

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Naina,

I tried the way like you said. But it does not work. Could you provide more details,like the iFlow details, you create the new header in which component or script etc. ?

Thanks very much

Best Regards

Kevin

Former Member
0 Kudos

Hi Naina,

In the externalized parameters tab there is a save button you should click on it in order to save the new value.

But I don't know if the value could accept XPath expressions or not.

Please let us know if you solve your problem.

Best regards,
Mohamed Amine.

Former Member
0 Kudos

Hi Amin

Directly it did not work, so i added the incoming payload first in header and then called header in externalized parameter:

added LoginID in header

called header in EP:

Regards

Naina

Former Member

Were you able to acces the SFTP dynamically using ${header.cred} ? the value changes ?