I could not find any Appian documentation that describes how to add dynamic variables to Integrations/Web APIs for use with a!urlForRecord() and I was wondering if anyone had any guides or advice I would greatly appreciate it!
Discussion posts and replies are publicly visible
I am not sure I understand what you are looking for. Integrations are used to call other systems from Appian. Web APIs are used to receive calls from other systems to Appian. And then there is urlForRecord() ....
This does not fit together in my head.
The recommendation for using partially Portal compatible functions (e.g. urlForRecord()) is to use a Web API and Integration as outlined in greater detail here: https://docs.appian.com/suite/help/24.3/portals-design.html#using-partially-compatible-functions-and-objects-in-a-portalEssentially my question is how to pass in the Record Identifier to the Web API where urlForRecord() is called?
Got it. Let me first ask a question. What are you doing with that URL? I mean, portals are meant to serve anonymous users. This unknown user will not be able to access that record URL.
I was intending on using the URL to prompt a user to sign in and redirect them to a site where logged in users can view more information about a record than is publically available.
I suggest to build the web API first. It should accept the record ID in a URL parameter.
Then create the integration and add a rule input for the record ID. I passes the ID as a URL parameter.
Then you can call that integration in your portal interface.