Sorry if I'm missing something obvious/another tread on this topic, but I haven't been able to find anything related after digging for a while and banging my head against the wall on this. Is there a way to natively pass variables into an integrations relative path?
The goal is to have some user input field for that variable to pass through to the external endpoint, who's required format is along the lines of:
base_path / relative_path / {variable} / relative_path2
I'm looking to avoid as much custom code as possible, but any help/advice would be appreciated!
Discussion posts and replies are publicly visible
Not sure if I'm missing anything in your request but the relative path can definitely handle integration object rule inputs. But when you say "natively" and then also "avoid custom code" I then also suspect that the answer I'm about to give isn't what you were looking for. So firstly, no, without doing some code you cannot pass variables into the relative path.
BUT...Appian has "Edit as Expression" which is native to the platform and the code needed is exceedingly straightforward. So you can get your desired outcome with very little code (and personally I wouldn't class this as custom code and I would also call it native functionality).
So first, you'd need to "Edit as Expression" on the right hand side of the relative path field.
Then in the expression editor that pops up you construct your desired relative path including rule inputs.
Once you click ok you can then see the relative path code and when you put values into the rule inputs the URL preview will show you the fully constructed URL.
That looks perfect, thank you so much for the quick response!I also probably wouldn't call this custom code (and would call it native functionality) My search skills have seemingly degraded over the last couple of years, and/or my eyesight is failing faster than I thought and I wasn't able to find this. Thanks again!