Skip to main content
janc5277
October 4, 2024
Question

Save a value to rule input on interface load

  • October 4, 2024
  • 7 replies
  • 0 views

I'm trying to invoke the a!save() function when an interface loads. Is there any way to save a value into a rule input of an interface without any user interaction? 

I've noticed this statement on a forum somewhere "Rule Inputs and local variables in an Appian Interface can only be updated as a direct consequence of a user interaction.".

What I'm wondering about is if there is any way to mock user interaction to force a save into the ruleinput? My value is saved in the localVariable.

Any suggestions would be greatly appreciated.

Jan

7 replies

stefanhelzle0001
October 4, 2024

That's not possible.

But when you explain your use case, I am sure we can help you with some ideas.

peter.lewis
Employee
October 4, 2024

Agreed with Stefan - one common work around is that you can set a default value for your rule inputs in the value of your activity class parameter in your process model, or you can also use local variables on the form and then save the results at the end into a rule input.

mathieud0001
October 5, 2024

I think this is the best suggestion.

mikes0011
Brainy
October 4, 2024

What purpose would this serve?

janc5277
janc5277Author
October 4, 2024

The interface calls a specific REST API endpoint and we want to be able to output the data we got from the API to the parent interface without any user interaction. 

mikes0011
Brainy
October 4, 2024

My default suggestion would be that you should do the API call in the parent interface in that case.  If it's supposed to start out there, then why not make it actually start out there?